Class TwoWindingsTransformerConversion
- All Implemented Interfaces:
EquipmentAtBoundaryConversion
Cgmes conversion for transformers (two and three windings) is divided into four stages: load, interpret, convert and set.
Load
Native CGMES data is loaded from the triple store query and is put in the CGMES model object (CgmesT2xModel).
Interpret
CgmesT2xModel data is mapped to a more general two windings transformer model (InterpretedT2xModel)
according to a predefined configured alternative. It is an elemental process as the only objective is to put
Cgmes data in the fields of the general two windings transformer model.
All possible alternatives and the default one are defined in conversion class. See Conversion
InterpretedT2xModel supports ratioTapChanger and phaseTapChanger at each end. Shunt admittances can be defined at both ends and
allows to specify the end of the structural ratio.
Convert
Converts the interpreted model (InterpretedT2xModel) to the converted model object (ConvertedT2xModel).
The ConvertedT2xModel only allows to define ratioTapChanger and phaseTapChanger at end1.
Shunt admittances and structural ratio must be also at end1.
To do this process the following methods are used:
moveTapChangerFrom2To1: To move a tapChanger from end2 to end1
combineTapChanger: To reduce two tapChangers to one
moveRatioFrom2To1: To move structural ratio from end2 to end1
Finally shunt admittance of both ends are added to end1. This step is an approximation and only
will be possible to reproduce the exact case result if Cgmes shunts are defined at end1 or
are split and the LoadflowParameter splitShuntAdmittance option is selected.
See TapChangerConversion
Set
A direct map from ConvertedT2xModel to IIDM model
- Author:
- Luma Zamarreño <zamarrenolm at aia.es>, José Antonio Marqués <marquesja at aia.es>
-
Field Summary
Fields inherited from class com.powsybl.cgmes.conversion.elements.AbstractIdentifiedObjectConversion
id, name
Fields inherited from class com.powsybl.cgmes.conversion.elements.AbstractObjectConversion
context, p, ps, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAliasesAndProperties
(Identifiable<?> identifiable) protected static <C extends Connectable<C>>
voidaddCgmesReferences
(C transformer, TapChanger tc) void
convert()
void
protected static void
setToIidmPhaseTapChanger
(TapChanger ptc, PhaseTapChangerAdder ptca, Context context) protected static void
boolean
valid()
Methods inherited from class com.powsybl.cgmes.conversion.elements.AbstractConductingEquipmentConversion
boundaryNode, calculateVoltageAndAngleInBoundaryBus, calculateVoltageAndAngleInBoundaryBus, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectivityNodeId, convertedTerminals, convertInsideBoundary, convertToDanglingLine, convertToDanglingLine, findPairingKey, findPairingKey, insideBoundary, isBoundary, nodeId, nodeId, nodeIdPropertyName, p0, q0, stateVariablesPowerFlow, substation, topologicalNodeId, voltageLevel
Methods inherited from class com.powsybl.cgmes.conversion.elements.AbstractIdentifiedObjectConversion
complete, id, identify, identify, identify, identify, iidmId, iidmName, name, what
-
Constructor Details
-
TwoWindingsTransformerConversion
-
-
Method Details
-
valid
public boolean valid()- Overrides:
valid
in classAbstractConductingEquipmentConversion
-
convert
public void convert()- Specified by:
convert
in classAbstractObjectConversion
-
convertAtBoundary
public void convertAtBoundary()- Specified by:
convertAtBoundary
in interfaceEquipmentAtBoundaryConversion
-
getDanglingLine
- Specified by:
getDanglingLine
in interfaceEquipmentAtBoundaryConversion
-
setToIidmRatioTapChanger
-
setToIidmPhaseTapChanger
protected static void setToIidmPhaseTapChanger(TapChanger ptc, PhaseTapChangerAdder ptca, Context context) -
setContextRegulatingDataRatio
protected RegulatingControlMappingForTransformers.CgmesRegulatingControlRatio setContextRegulatingDataRatio(TapChanger tc) -
setContextRegulatingDataPhase
protected RegulatingControlMappingForTransformers.CgmesRegulatingControlPhase setContextRegulatingDataPhase(TapChanger tc) -
addAliasesAndProperties
- Overrides:
addAliasesAndProperties
in classAbstractConductingEquipmentConversion
-
addCgmesReferences
-