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 | None = None

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.

BusOptimizationDynamicResults

Bases: _BusDynamicResults

marginal_price: pandas.DataFrame

Shadow price from energy balance constraint.

BusPfDynamicResults

Bases: _BusDynamicResults

v_mag_pu: pandas.DataFrame

Voltage magnitude, per unit of v_nom.

v_ang: pandas.DataFrame

Voltage angle.

BusNonlinearPfDynamicResults

Bases: BusPfDynamicResults

q: pandas.DataFrame

Reactive power (positive if net generation at bus).