Unit System and Conventions¶

Naming Conventions

Parameters are always named in the form of <parameter>_<unit>, such as:

 Parameter read as vm_pu $$v_m [pu]$$ loading_percent $$loading [\%]$$ pl_mw $$p_l [mw]$$ r_ohm_per_km $$r [\Omega / km]$$

Constraint parameters are always named with max or min as the prefix to the variable which is constrained, for example:

 Parameter read as min_vm_pu $$v_m^{min} [pu]$$ max_loading_percent $$loading^{max} [\%]$$ max_p_mw $$p^{max} [mw]$$ min_q_mvar $$q^{min} [kvar]$$

It is advised to keep consistent with these naming conventions when extending the framework and introducing new parameters.

Three Phase System

For the three phase system, the following conventions apply:

• voltage values are given as phase-to-phase voltages
• current values are given as phase currents
• power values are given as three-phase power flows

The power equation in the three phase system is therefore given as $$S = \sqrt3 \cdot V \cdot I$$.

All power values are given in MW / MVA / MVar except the iron losses of transformers which are given in MW (pfe_mw).

Per Unit System

Bus voltages are given in the per unit system. The per unit values are relative to the phase-to-phase voltages defined in net.bus.vn_kv for each bus.

The rated apparent power for the per unit system can be defined with the net.sn_mva parameter when creating an empty network. The default value is $$S_{N} = 1 MVA$$. The value should not be relevant in most applications since all power values are given in physical units.

Signing System

There are three elements that have power values based on the generator viewpoint (positive active power means power consumption), which are:
• gen
• sgen
• ext_grid
For all other bus elements the signing is based on the consumer viewpoint (positive active power means power consumption):
• bus
The frequency can be defined when creating an empty network. The frequency is only used to calculate the shunt admittance of lines, since the line reactance is given directly in ohm per kilometer. The frequency is also relevant when calculating the peak factor $$\kappa$$ in the short circuit calculation.