Skip to content

Bus

Use the Bus class to represent a node that other types of components (generator, line, etc.) attach to.

API Reference

Bus

Bases: BaseComponent[T]

Fundamental node where all components attach.

PyPSA user guide for this component.

v_nom: float | None = None

Nominal voltage.

coordinates: Coordinates = Field(default_factory=Coordinates)

Coordinates. The Spatial Reference System Identifier (SRID) can be set in n.srid.

carrier: str = Field(default='AC', min_length=1)

Carrier, such as "AC", "DC", "heat" or "gas".

unit: str | None = 'MW'

Unit of the bus' carrier if the implicitly assumed unit ("MW") is inappropriate (e.g. "t/h"). Only descriptive. Does not influence any PyPSA functions.

location: str | None = None

Location of the bus. Does not influence the optimisation model but can be used for aggregation with n.statistics.

v_mag_pu_set: float | Series[T] = 1.0

Voltage magnitude set point, per unit of v_nom.

BusBaseDynamicResults

Bases: BaseDynamicResults

p: ComponentKeyed[pandas.DataFrame]

Active power at bus (positive if net generation at bus).

BusOptimizationDynamicResults

Bases: BusBaseDynamicResults

marginal_price: ComponentKeyed[pandas.DataFrame]

Shadow price from energy balance constraint.

BusPfDynamicResults

Bases: BusBaseDynamicResults

v_mag_pu: ComponentKeyed[pandas.DataFrame]

Voltage magnitude, per unit of v_nom.

v_ang: ComponentKeyed[pandas.DataFrame]

Voltage angle.

BusNonlinearPfDynamicResults

Bases: BusPfDynamicResults

q: ComponentKeyed[pandas.DataFrame]

Reactive power (positive if net generation at bus).