Asymmetric Static Generator

Note

Static generators should always have a positive p_mw value, since all power values are given in the generator convention. If you want to model constant power consumption, it is recommended to use a load element instead of a static generator with negative active power value.

Create Function

pandapower.create.create_asymmetric_sgen(net, bus, p_a_mw=0, p_b_mw=0, p_c_mw=0, q_a_mvar=0, q_b_mvar=0, q_c_mvar=0, sn_a_mva=nan, sn_b_mva=nan, sn_c_mva=nan, sn_mva=nan, name=None, index=None, scaling=1.0, type='wye', in_service=True, **kwargs)

Adds one static generator in table net[“asymmetric_sgen”].

Static generators are modelled as negative PQ loads. This element is used to model generators with a constant active and reactive power feed-in. Positive active power means generation.

Parameters:
  • net (pandapowerNet) – The net within this static generator should be created

  • bus (int | integer) – The bus id to which the static generator is connected

  • p_a_mw (float) – The active power of the static generator : Phase A

  • p_b_mw (float) – The active power of the static generator : Phase B

  • p_c_mw (float) – The active power of the static generator : Phase C

  • q_a_mvar (float) – The reactive power of the sgen : Phase A

  • q_b_mvar (float) – The reactive power of the sgen : Phase B

  • q_c_mvar (float) – The reactive power of the sgen : Phase C

  • sn_a_mva (float) – Nominal power of the sgen: Phase A

  • sn_b_mva (float) – Nominal power of the sgen: Phase B

  • sn_c_mva (float) – Nominal power of the sgen: Phase C

  • sn_mva (float) – Nominal power of the sgen

  • name (str | None) – The name for this sgen

  • index (int | integer | None) – Force a specified ID if it is available. If None, the index one higher than the highest already existing index is selected.

  • scaling (float) – An OPTIONAL scaling factor to be set customly. Multiplies with p_mw and q_mvar of all phases.

  • type (Literal['wye', 'delta']) – Three phase Connection type of the static generator: wye/delta

  • in_service (bool) – True for in_service or False for out of service

Returns:

The ID of the created sgen

Return type:

int | integer

Example

>>> create_asymmetric_sgen(net, 1, p_b_mw=0.12)

Input Parameters

net.asymmetric_sgen

Parameter

Datatype

Value Range

Explanation

name

string

name of the static generator

type

string

naming conventions:
“PV” - photovoltaic system
“WP” - wind power system
“CHP” - combined heating and power system

type of generator

bus*

integer

index of connected bus

p_a_mw*

float

\(\leq\) 0

active power of the static generator : Phase A[MW]

q_a_mvar*

float

reactive power of the static generator : Phase A [MVar]

p_b_mw*

float

\(\leq\) 0

active power of the static generator : Phase B[MW]

q_b_mvar*

float

reactive power of the static generator : Phase B [MVar]

p_c_mw*

float

\(\leq\) 0

active power of the static generator : Phase C[MW]

q_c_mvar*

float

reactive power of the static generator : Phase C [MVar]

sn_mva

float

\(>\) 0

rated power ot the static generator [MVA]

scaling*

float

\(\geq\) 0

scaling factor for the active and reactive power

in_service*

boolean

True / False

specifies if the generator is in service.

*necessary for executing a power flow calculation
**optimal power flow parameter

Electric Model

Static Generators are modelled as PQ-buses in the power flow calculation:

alternate Text

The PQ-Values are calculated from the parameter table values as:

\begin{align*} P_{sgen} &= p\_mw \cdot scaling \\ Q_{sgen} &= q\_mvar \cdot scaling \\ \end{align*}

Note

The apparent power value sn_mva is provided as additional information for usage in controller or other applications based on pandapower. It is not considered in the power flow!

Result Parameters

net.asymmetric_sgen

Parameter

Datatype

Explanation

p_a_mw

float

resulting active power demand after scaling : Phase A [MW]

q_a_mvar

float

resulting reactive power demand after scaling : Phase A [MVar]

p_b_mw

float

resulting active power demand after scaling : Phase B [MW]

q_b_mvar

float

resulting reactive power demand after scaling : Phase B [MVar]

p_c_mw

float

resulting active power demand after scaling : Phase C [MW]

q_c_mvar

float

resulting reactive power demand after scaling : Phase C [MVar]

The power values in the net.res_sgen table are equivalent to \(P_{sgen}\) and \(Q_{sgen}\).