Package com.powsybl.iidm.network
Interface TwoWindingsTransformer
- All Superinterfaces:
Branch<TwoWindingsTransformer>
,Connectable<TwoWindingsTransformer>
,Extendable<TwoWindingsTransformer>
,Identifiable<TwoWindingsTransformer>
,PhaseTapChangerHolder
,RatioTapChangerHolder
public interface TwoWindingsTransformer
extends Branch<TwoWindingsTransformer>, Connectable<TwoWindingsTransformer>, RatioTapChangerHolder, PhaseTapChangerHolder
A two windings power transformer.
The equivalent π model used is:
b, g, r, x shall be specified at the side 2 voltage.
b and g unit is siemens, r and x unit is ohm.
Characteristics
Attribute | Type | Unit | Required | Defaut value | Description |
---|---|---|---|---|---|
Id | String | - | yes | - | Unique identifier of the transformer |
Name | String | - | yes | - | Human-readable name of the transformer |
Rnom | double | Ω | yes | - | The nominal series resistance at the side 2 of the transformer |
Xnom | double | Ω | yes | - | The nominal series reactance at the side 2 of the transformer |
Gnom | double | S | yes | - | The nominal magnetizing conductance at the side 2 of the transformer |
Bnom | double | S | yes | - | The nominal magnetizing susceptance at the side 2 of the transformer |
V1nom | double | kV | yes | - | The rated voltage at side 1 |
V2nom | double | kV | yes | - | The rated voltage at side 2 |
RatedS | double | MVA | no | - | The normal apparent power |
b, g, r, x, ρ and α variables in the model can be computed with
the following Java code supposing transfo
is an instance of
TwoWindingsTransformer
.
r = transfo.getR() * (1 + (transfo.getRatioTapChanger() != null ? transfo.getRatioTapChanger().getCurrentStep().getR() / 100 : 0) + (transfo.getPhaseTapChanger() != null ? transfo.getPhaseTapChanger().getCurrentStep().getR() / 100 : 0)); x = transfo.getX() * (1 + (transfo.getRatioTapChanger() != null ? transfo.getRatioTapChanger().getCurrentStep().getX() / 100 : 0) + (transfo.getPhaseTapChanger() != null ? transfo.getPhaseTapChanger().getCurrentStep().getX() / 100 : 0)); g = transfo.getG() * (1 + (transfo.getRatioTapChanger() != null ? transfo.getRatioTapChanger().getCurrentStep().getG() / 100 : 0) + (transfo.getPhaseTapChanger() != null ? transfo.getPhaseTapChanger().getCurrentStep().getG() / 100 : 0)); b = transfo.getB() * (1 + (transfo.getRatioTapChanger() != null ? transfo.getRatioTapChanger().getCurrentStep().getB() / 100 : 0) + (transfo.getPhaseTapChanger() != null ? transfo.getPhaseTapChanger().getCurrentStep().getB() / 100 : 0)); rho = transfo.getRatedU2() / transfo.getRatedU1() * (transfo.getRatioTapChanger() != null ? transfo.getRatioTapChanger().getCurrentStep().getRho() : 1); * (transfo.getPhaseTapChanger() != null ? transfo.getPhaseTapChanger().getCurrentStep().getRho() : 1); alpha = (transfo.getPhaseTapChanger() != null ? transfo.getPhaseTapChanger().getCurrentStep().getAlpha() : 0);A 2 windings transformer is connected to 2 voltage levels (side 1 and side 2) that belong to the same substation.
To create a 2 windings transformer, see TwoWindingsTransformerAdder
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.iidm.network.Branch
Branch.Overload, Branch.Side
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getB()
Get the nominal magnetizing susceptance specified in S at the secondary voltage side.double
getG()
Get the nominal magnetizing conductance specified in S at the secondary voltage side.default Substation
double
getR()
Get the nominal series resistance specified in Ω at the secondary voltage side.default double
Get the normal apparent power rating in MVA (optional).double
Get the primary winding rated voltage in kV.double
Get the secondary winding rated voltage in kV.default IdentifiableType
getType()
Get identifiable type.double
getX()
Get the nominal series reactance specified in Ω at the secondary voltage side.setB
(double b) Set the nominal magnetizing susceptance specified in S at the secondary voltage side.setG
(double g) Set the nominal magnetizing conductance specified in S at the secondary voltage side.setR
(double r) Set the nominal series resistance specified in Ω at the secondary voltage side.default TwoWindingsTransformer
setRatedS
(double ratedS) Set the normal apparent power rating in MVA (optional).setRatedU1
(double ratedU1) Set the secondary winding rated voltage in kV.setRatedU2
(double ratedU2) Set the secondary winding rated voltage in kV.setX
(double x) Set the nominal series reactance specified in Ω at the secondary voltage side.Methods inherited from interface com.powsybl.iidm.network.Branch
checkPermanentLimit, checkPermanentLimit, checkPermanentLimit1, checkPermanentLimit1, checkPermanentLimit2, checkPermanentLimit2, checkTemporaryLimits, checkTemporaryLimits, checkTemporaryLimits1, checkTemporaryLimits1, checkTemporaryLimits2, checkTemporaryLimits2, getActivePowerLimits, getActivePowerLimits1, getActivePowerLimits2, getApparentPowerLimits, getApparentPowerLimits1, getApparentPowerLimits2, getCurrentLimits, getCurrentLimits1, getCurrentLimits2, getLimits, getNullableActivePowerLimits, getNullableActivePowerLimits1, getNullableActivePowerLimits2, getNullableApparentPowerLimits, getNullableApparentPowerLimits1, getNullableApparentPowerLimits2, getNullableCurrentLimits, getNullableCurrentLimits1, getNullableCurrentLimits2, getNullableLimits, getOperationalLimits1, getOperationalLimits2, getOverloadDuration, getSide, getTerminal, getTerminal, getTerminal1, getTerminal2, isOverloaded, isOverloaded, newActivePowerLimits1, newActivePowerLimits2, newApparentPowerLimits1, newApparentPowerLimits2, newCurrentLimits1, newCurrentLimits2
Methods inherited from interface com.powsybl.iidm.network.Connectable
getTerminals, remove
Methods inherited from interface com.powsybl.commons.extensions.Extendable
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, newExtension, removeExtension
Methods inherited from interface com.powsybl.iidm.network.Identifiable
addAlias, addAlias, addAlias, addAlias, getAliases, getAliasFromType, getAliasType, getId, getNameOrId, getNetwork, getOptionalName, getParentNetwork, getProperty, getProperty, getPropertyNames, hasAliases, hasProperty, hasProperty, isFictitious, removeAlias, removeProperty, setFictitious, setName, setProperty
Methods inherited from interface com.powsybl.iidm.network.PhaseTapChangerHolder
getOptionalPhaseTapChanger, getPhaseTapChanger, hasPhaseTapChanger, newPhaseTapChanger
Methods inherited from interface com.powsybl.iidm.network.RatioTapChangerHolder
getOptionalRatioTapChanger, getRatioTapChanger, hasRatioTapChanger, newRatioTapChanger
-
Method Details
-
getSubstation
Optional<Substation> getSubstation() -
getNullableSubstation
-
getR
double getR()Get the nominal series resistance specified in Ω at the secondary voltage side. -
setR
Set the nominal series resistance specified in Ω at the secondary voltage side. -
getX
double getX()Get the nominal series reactance specified in Ω at the secondary voltage side. -
setX
Set the nominal series reactance specified in Ω at the secondary voltage side. -
getG
double getG()Get the nominal magnetizing conductance specified in S at the secondary voltage side. -
setG
Set the nominal magnetizing conductance specified in S at the secondary voltage side. -
getB
double getB()Get the nominal magnetizing susceptance specified in S at the secondary voltage side. -
setB
Set the nominal magnetizing susceptance specified in S at the secondary voltage side. -
getRatedU1
double getRatedU1()Get the primary winding rated voltage in kV. -
setRatedU1
Set the secondary winding rated voltage in kV. -
getRatedU2
double getRatedU2()Get the secondary winding rated voltage in kV. -
setRatedU2
Set the secondary winding rated voltage in kV. -
getRatedS
default double getRatedS()Get the normal apparent power rating in MVA (optional). -
setRatedS
Set the normal apparent power rating in MVA (optional). -
getType
Description copied from interface:Identifiable
Get identifiable type.- Specified by:
getType
in interfaceIdentifiable<TwoWindingsTransformer>
- Returns:
- the identifiable type
-