Export¶
The export of an IIDM grid model to a UCTE-DEF file is a direct conversion: every supported network element is converted into its UCTE-DEF equivalent. Further information about the format can be found in the UCTE-DEF format specification.
Limitations¶
Supported equipments: The export fails with a UcteException if the network contains any of the following elements,
which have no UCTE-DEF equivalent: shunt compensators, static VAR compensators, batteries, LCC or VSC converter
stations, HVDC lines, or three-winding transformers.
Follows UCTE-DEF import: Export is possible if the file was imported with the same format. For instance, if you import a UCTE-DEF file in PowSyBl, you can update some elements and then export it back to UCTE-DEF format. However, exporting to UCTE-DEF format a file imported from another format most often leads at best to incorrect file content, at worst to an exporter failure. Some examples are listed here after.
At most one load and one generator per bus: The export fails with a UcteException if a bus has more than one
load or more than one generator
connected to it. See node conversion below for how the node’s load and generation attributes are
sourced from the load and the generator.
Transformers Tap Changers: UCTE-DEF format assumes neutral tap position to be centered at position zero. If your IIDM model contains tap changers not fitting this requirement, the export will not fail but the resulting UCTE file will be incorrect without warning.
Options¶
These properties can be defined in the configuration file in the import-export-parameters-default-value module.
ucte.export.naming-strategy
The ucte.export.naming-strategy property is an optional property that defines the naming strategy to be used for UCTE
export.
Default naming strategy (Default) expects the network elements’ ID to be totally compatible with UCTE-DEF norm (e.g.,
a network initially imported from a UCTE-DEF file), and throws an exception if any network element does not respect the
norm. It does not do any ID modification.
ucte.export.combine-phase-angle-regulation
The ucte.export.combine-phase-angle-regulation property is an optional property that defines, for a two-winding
transformer that has both a ratio and a phase tap changer, whether the ratio tap changer’s current step should be folded
into the exported angle regulation δu. This only applies to ASYM angle regulations. See
angle regulation below.
Its default value is false.
From IIDM to UCTE¶
Node conversion¶
Every bus of the network’s bus/breaker view is converted into a
UCTE node, using the naming strategy to compute its UCTE node code. The export fails with a UcteException if more than
one load, or more than one generator, is connected to the bus.
The table below maps every UCTE-DEF node attribute to its source in IIDM. Unless stated otherwise, an attribute with no IIDM source is left undefined in the exported node.
UCTE-DEF attribute |
Source in IIDM |
Computation |
|---|---|---|
Node code |
Bus |
Computed by the naming strategy. |
Geographical name |
Bus |
Used as-is. |
Node status |
Bus fictitiousness |
|
Node type |
Connected generator’s voltage regulation; whether the bus is the network’s slack bus |
Derived from the connected generator’s voltage regulation and whether the bus is the network’s slack bus. Further information in Node type. |
Voltage reference (kV) |
Connected generator’s target voltage ( |
Used as-is; left undefined if there is no generator, or its |
Active load (MW) |
Connected load’s |
Used as-is; |
Reactive load (MVar) |
Connected load’s |
Used as-is; |
Active power generation (MW) |
Connected generator’s target active power ( |
Opposite of |
Reactive power generation (MVar) |
Connected generator’s target reactive power ( |
Opposite of |
Minimum permissible active power generation (MW) |
Connected generator’s |
Opposite of |
Maximum permissible active power generation (MW) |
Connected generator’s |
Opposite of |
Minimum permissible reactive power generation (MVar) |
Connected generator’s reactive limits, evaluated at its target active power |
Opposite of the minimum reactive limit; left undefined if it is equal to |
Maximum permissible reactive power generation (MVar) |
Connected generator’s reactive limits, evaluated at its target active power |
Opposite of the maximum reactive limit; left undefined if it is equal to |
Static of primary control (%) |
(none) |
Always left undefined. |
Nominal power for primary control (MW) |
(none) |
Always left undefined. |
Three-phase short-circuit power (MVA) |
(none) |
Always left undefined. |
X/R ratio |
(none) |
Always left undefined. |
Power plant type |
Connected generator’s |
Derived from the connected generator’s |
Node type¶
The node type is 0 (PQ node) by default. It is set to 2 (PU node) if the bus has a connected generator with voltage
regulation on. It is set to 3 (global slack node) if the bus is the network’s
slack bus, which takes precedence over the PU case. 1 (Q and θ
constant) is never produced by the export. See the
UCTE-DEF specification
for the full node type convention.
Power plant type¶
The powerPlantType property of the connected generator (typically set at import time) is used if present; otherwise,
the energy source of the generator is converted to a UCTE power plant type according to the following table:
IIDM Energy source |
UCTE Power plant type |
|---|---|
Hydro |
|
Nuclear |
|
Thermal |
|
Wind |
|
Other sources |
|
See the convention for power plant types in UCTE-DEF specification:
Line conversion¶
Every switch (as a busbar coupler), line, unpaired boundary line, and tie line of the network is converted into one or more UCTE lines, using the naming strategy to compute each line’s node codes and order code. A boundary line or a tie line additionally creates an X-node.
The table below maps every UCTE-DEF line attribute to its source in IIDM. Unless stated otherwise, an attribute with no IIDM source is left undefined in the exported line.
UCTE-DEF attribute |
Source in IIDM |
Computation |
|---|---|---|
Node codes (1, 2) and order code |
Id of the switch, line, or boundary line (each side’s boundary line id, for a tie line) |
Computed by the naming strategy from the element’s id. |
Status |
Switch open/closed state; branch/boundary line fictitiousness and connection state; boundary line |
See Line status below. |
Resistance R (Ω) |
Line’s/boundary line’s |
Used as-is; |
Reactance X (Ω) |
Line’s/boundary line’s |
Used as-is; |
Susceptance B (μS) |
Line’s |
|
Current limit I (A) |
Switch’s |
See Current limit below. |
Element name |
|
Used as-is; left undefined if the property is absent. |
Line status¶
The status follows the UCTE-DEF specification’s convention for element status:
0: real element in operation8: real element out of operation1: equivalent element in operation9: equivalent element out of operation2: busbar coupler in operation7: busbar coupler out of operation
It is derived as follows:
Switch:
2if closed,7if open.Line, two-winding transformer, and each side of a tie line:
0/8(real) if not fictitious,1/9(equivalent) if fictitious; the_IN_OPERATIONvariant if the branch’s two terminals (or the tie line side’s single terminal) are connected, the_OUT_OF_OPERATIONvariant otherwise.Boundary line: if its
isCouplerproperty istrue, it is exported as a busbar coupler,2if its terminal is connected,7otherwise; if not, it follows the same real/equivalent convention as a line, based on its fictitiousness and terminal connection state.
Current limit¶
Switch: taken from the
currentLimitproperty if it can be parsed as an integer; otherwise left undefined, and a warning is reported.Line and two-winding transformer: if a permanent current limit is defined on both sides, the smaller of the two is used; otherwise, the one that is defined is used, if any; left undefined if neither side has one.
Boundary line (and each side of a tie line): the boundary line’s own permanent current limit, if defined; left undefined otherwise.
X-nodes¶
An unpaired boundary line is converted into an X-node and a UCTE line connecting it to the corresponding real node. A tie line is converted into an X-node and two UCTE lines, one for each side, using the same rules as for a standalone boundary line.
The X-node is a UCTE node; the table below maps every UCTE-DEF node attribute to its source for an X-node, following the same conventions as node conversion above.
UCTE-DEF attribute |
Source in IIDM |
Computation |
|---|---|---|
Node code |
Boundary line’s pairing key, or id if it has none (tie line: pairing key) |
Computed by the naming strategy. |
Geographical name |
Boundary line’s |
Used as-is; for a tie line, merged from both boundary lines, see Tie line properties. |
Node status |
Boundary line’s |
|
Node type |
Unpaired boundary line’s generation part voltage regulation |
|
Voltage reference (kV) |
Unpaired boundary line’s generation part target voltage |
Used as-is, only if the generation part regulates voltage; left undefined otherwise, and always for a tie line’s X-node. |
Active load (MW) |
Unpaired boundary line’s |
Used as-is; |
Reactive load (MVar) |
Unpaired boundary line’s |
Used as-is; |
Active power generation (MW) |
Unpaired boundary line’s generation part target active power |
Opposite sign; |
Reactive power generation (MVar) |
Unpaired boundary line’s generation part target reactive power |
Opposite sign; |
Min./max. permissible active/reactive power generation |
Unpaired boundary line’s generation part min/max limits |
Same sign and sentinel-based undefined rules as node conversion; only set if the generation part regulates voltage; always undefined for a tie line’s X-node. |
Static of primary control (%) |
(none) |
Always undefined. |
Nominal power for primary control (MW) |
(none) |
Always undefined. |
Three-phase short-circuit power (MVA) |
(none) |
Always undefined. |
X/R ratio |
(none) |
Always undefined. |
Power plant type |
(none) |
Always undefined. |
Tie line properties¶
A tie line originates from 2 boundary lines. Geographical name and element name are values carried in IIDM by custom properties (further information on how they are sourced in UCTE import). Although we expect both sides of the line to carry the same value for the same property, there can be discrepancies.
If both boundary lines have the same value, it is used in the exported tie line.
If one of the boundary lines has an empty value, the other boundary line’s value is used.
If both boundary lines have different values, the exported tie line field remains empty.
Two-winding transformer conversion¶
Every two-winding transformer of the network is converted into a UCTE transformer.
The table below maps every UCTE-DEF transformer attribute to its source in IIDM.
UCTE-DEF attribute |
Source in IIDM |
Computation |
|---|---|---|
Node codes (1, 2) and order code |
Transformer id |
Computed by the naming strategy from the transformer’s id. |
Status |
Transformer fictitiousness and connection state |
See Line status. |
Resistance R (Ω) |
Transformer’s |
Used as-is. |
Reactance X (Ω) |
Transformer’s |
Used as-is. |
Susceptance B (μS) |
Transformer’s |
Used as-is. |
Current limit I (A) |
Transformer’s permanent current limits (both sides) |
See Current limit. |
Element name |
|
Used as-is; left undefined if the property is absent. |
Rated voltage 1 (kV, non-regulated winding) |
Transformer’s |
Used as-is; swapped with rated voltage 2, see Rated voltages. |
Rated voltage 2 (kV, regulated winding) |
Transformer’s |
Used as-is; swapped with rated voltage 1, see Rated voltages. |
Nominal power (MVA) |
|
Parsed as a double; left undefined if the property is absent, and a warning is reported. |
Conductance G (μS) |
Transformer’s |
Used as-is. |
Rated voltages¶
Because UCTE-DEF has the regulated winding on side 2, while IIDM has it on side 1, the rated voltages are swapped on
export: the UCTE transformer’s rated voltage 1 (non-regulated winding) is the transformer’s ratedU2, and its rated
voltage 2 (regulated winding) is its ratedU1.
If the transformer has a ratio and/or a phase tap changer, a regulation is exported.
Phase regulation¶
If the transformer has a ratio tap changer, it is converted into a phase regulation.
The table below maps every UCTE-DEF phase regulation attribute to its source in IIDM.
UCTE-DEF attribute |
Source in IIDM |
Computation |
|---|---|---|
δu (%) |
Ratio tap changer’s tap steps’ ρ |
Computed from the ρ of the two extreme taps, see formula in δu formula. |
n (number of taps) |
Ratio tap changer’s high tap position |
Used as-is. This assumes the tap changer’s neutral position is |
n’ (tap position) |
Ratio tap changer’s current tap position |
Used as-is. Same assumption as above. |
Voltage set point U (kV) |
Ratio tap changer’s target voltage ( |
Used as-is; left undefined if the ratio tap changer has no target voltage. |
δu formula¶
where \(n\) is the number of taps, \(\rho_{min}\) the ρ of the lowest tap position and \(\rho_{max}\) the ρ of the highest tap position.
Angle regulation¶
If the transformer has a phase tap changer, it is converted into an angle regulation.
The table below maps every UCTE-DEF angle regulation attribute to its source in IIDM.
UCTE-DEF attribute |
Source in IIDM |
Computation |
|---|---|---|
Regulation type |
Phase tap changer’s tap steps’ ρ |
|
δu (%) |
Phase tap changer’s tap steps’ α and/or ρ |
See the formulas in SYMM regulation δu formula and ASYM regulation δu formula. |
Angle θ (°) |
Phase tap changer’s tap steps’ α and/or ρ |
Fixed at |
n (number of taps) |
Phase tap changer’s high tap position |
Used as-is. This assumes the tap changer’s neutral position is |
n’ (tap position) |
Phase tap changer’s current tap position |
Used as-is. Same assumption as above. |
Regulation power P (MW) |
Phase tap changer’s |
Opposite of |
SYMM regulation δu formula¶
For a SYMM regulation, the angle is fixed at 90° and the δu (%) is computed from the α of the two extreme taps:
ASYM regulation δu formula¶
For an ASYM regulation, the δu (%) and the angle are computed from the distance, in the complex plane, between the
points \(\frac{1}{\rho} e^{-i\alpha}\) of the two extreme taps. If the
ucte.export.combine-phase-angle-regulation
option is enabled and the transformer also has a ratio tap changer, the computed δu (%) is divided by the ρ of the ratio
tap changer’s current step.
Note: the sign of α is inverted in both cases, because the phase tap changer is on side 2 in the UCTE-DEF specification, and on side 1 in IIDM.
Reporting¶
When a ReportNode is provided to the export, one report node is created per
conversion step (buses and switches, boundary lines, lines, tie lines, transformers) and per exported file, and the
following situations are reported with a WARN severity:
a switch has no usable
currentLimitproperty (see Current limit),a two-winding transformer has no usable nominal power (see two-winding transformer conversion).