Package com.powsybl.iidm.network
Interface ShuntCompensator
-
- All Superinterfaces:
Connectable<ShuntCompensator>
,Extendable<ShuntCompensator>
,Identifiable<ShuntCompensator>
,Injection<ShuntCompensator>
- All Known Implementing Classes:
ShuntCompensatorAdapter
public interface ShuntCompensator extends Injection<ShuntCompensator>
A shunt compensator.Characteristics
Attribute Type Unit Required Defaut value Description Id String - yes - Unique identifier of the shunt compensator Name String - yes - Human-readable name of the shunt compensator bPerSection double S yes - The Positive sequence shunt (charging) susceptance per section MaximumSectionCount integer - yes - The maximum number of sections that may be switched on CurrentSectionCount integer - yes - The current number of section that may be switched on RegulatingTerminal Terminal - no The shunt compensator's terminal The terminal used for regulation TargetV double kV only if VoltageRegulatorOn is set to true - The voltage target TargetDeadband double kV only if VoltageRegulatorOn is set to true - The deadband used to avoid excessive update of controls VoltageRegulatorOn boolean - no false The voltage regulating status ShuntCompensatorAdder
- Author:
- Geoffroy Jamgotchian
- See Also:
ShuntCompensatorAdder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double
getB()
Get the susceptance (in S) of the shunt in its current state i.e. the sum of the sections' susceptances for all sections in service.double
getB(int sectionCount)
Get the susceptance (in S) for a given activated sections count i.e. the sum of the sections' susceptances from 1 to sectionCount.double
getG()
Get the conductance (in S) of the shunt in its current state i.e. the sum of the sections' conductances for all sections in service.double
getG(int sectionCount)
Get the conductance (in S) for a given activated sections count i.e. the sum of the sections' conductances from 1 to sectionCount.int
getMaximumSectionCount()
Get the maximum number of sections that can be in serviceShuntCompensatorModel
getModel()
Get the shunt model.<M extends ShuntCompensatorModel>
MgetModel(Class<M> modelType)
ShuntCompensatorModelType
getModelType()
Get the model type of the shunt compensator (linear or non-linear)default Terminal
getRegulatingTerminal()
Get the terminal used for regulation.int
getSectionCount()
Get the count of sections in service.default double
getTargetDeadband()
Get the shunt compensator's deadband (in kV) used to avoid excessive update of discrete control while regulating.default double
getTargetV()
Get the shunt compensator's voltage target in kV if it exists.default boolean
isVoltageRegulatorOn()
Get the shunt compensator's regulating status.default ShuntCompensator
setRegulatingTerminal(Terminal regulatingTerminal)
Set the terminal used for regulation.ShuntCompensator
setSectionCount(int sectionCount)
Change the count of sections in service.default ShuntCompensator
setTargetDeadband(double targetDeadband)
Set the shunt compensator's deadband (in kV) used to avoid excessive update of discrete control while regulating.default ShuntCompensator
setTargetV(double targetV)
Set the shunt compensator's voltage target in kV.default ShuntCompensator
setVoltageRegulatorOn(boolean voltageRegulatorOn)
Set the shunt compensator's regulating status.-
Methods inherited from interface com.powsybl.iidm.network.Connectable
getTerminals, getType, 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, getName, getNameOrId, getNetwork, getOptionalName, getProperties, getProperty, getProperty, getPropertyNames, hasAliases, hasProperty, hasProperty, isFictitious, removeAlias, setFictitious, setProperty
-
Methods inherited from interface com.powsybl.iidm.network.Injection
getTerminal
-
-
-
-
Method Detail
-
getSectionCount
int getSectionCount()
Get the count of sections in service. Please note sections can only be sequentially in service i.e. the first sectionCount sections are in service.It is expected to be greater than one and lesser than or equal to the maximum section count.
Depends on the working variant.
- See Also:
VariantManager
-
getMaximumSectionCount
int getMaximumSectionCount()
Get the maximum number of sections that can be in service
-
setSectionCount
ShuntCompensator setSectionCount(int sectionCount)
Change the count of sections in service. Please note sections can only be sequentially in service i.e. the first sectionCount sections are in service.Depends on the working variant.
- Parameters:
sectionCount
- the number of sections wanted to be put in service- Returns:
- the shunt compensator to chain method calls.
- See Also:
VariantManager
-
getB
double getB()
Get the susceptance (in S) of the shunt in its current state i.e. the sum of the sections' susceptances for all sections in service. Return 0 if no section is in service (disconnected state).- See Also:
Depends on the working variant.
,VariantManager
-
getG
double getG()
Get the conductance (in S) of the shunt in its current state i.e. the sum of the sections' conductances for all sections in service. If the conductance of a section in service is undefined, it is considered equal to 0. Return 0 if no section is in service (disconnected state).- See Also:
Depends on the working variant.
,VariantManager
-
getB
double getB(int sectionCount)
Get the susceptance (in S) for a given activated sections count i.e. the sum of the sections' susceptances from 1 to sectionCount. Return O if sectionCount is equal to 0 (disconnected state).- Parameters:
sectionCount
- count of wanted activated sections. Must be in [0; maximumSectionCount]. Else, throws aValidationException
.
-
getG
double getG(int sectionCount)
Get the conductance (in S) for a given activated sections count i.e. the sum of the sections' conductances from 1 to sectionCount. If the conductance of a section is undefined, it is considered equal to 0. Return 0 if sectionCount is equal to 0 (disconnected state).- Parameters:
sectionCount
- count of wanted activated sections. Must be in [0; maximumSectionCount]. Else, throws aValidationException
.
-
getModelType
ShuntCompensatorModelType getModelType()
Get the model type of the shunt compensator (linear or non-linear)
-
getModel
ShuntCompensatorModel getModel()
Get the shunt model.
-
getModel
<M extends ShuntCompensatorModel> M getModel(Class<M> modelType)
-
getRegulatingTerminal
default Terminal getRegulatingTerminal()
Get the terminal used for regulation.
-
setRegulatingTerminal
default ShuntCompensator setRegulatingTerminal(Terminal regulatingTerminal)
Set the terminal used for regulation. If null is passed as regulating terminal, the regulation is considered local.
-
isVoltageRegulatorOn
default boolean isVoltageRegulatorOn()
Get the shunt compensator's regulating status.Depends on the working variant.
- See Also:
VariantManager
-
setVoltageRegulatorOn
default ShuntCompensator setVoltageRegulatorOn(boolean voltageRegulatorOn)
Set the shunt compensator's regulating status.Depends on the working variant.
- See Also:
VariantManager
-
getTargetV
default double getTargetV()
Get the shunt compensator's voltage target in kV if it exists. Else return NaN.Depends on the working variant.
- See Also:
VariantManager
-
setTargetV
default ShuntCompensator setTargetV(double targetV)
Set the shunt compensator's voltage target in kV.Depends on the working variant.
- See Also:
VariantManager
-
getTargetDeadband
default double getTargetDeadband()
Get the shunt compensator's deadband (in kV) used to avoid excessive update of discrete control while regulating. This attribute is necessary only if the shunt compensator is regulating.Depends on the working variant.
- See Also:
VariantManager
-
setTargetDeadband
default ShuntCompensator setTargetDeadband(double targetDeadband)
Set the shunt compensator's deadband (in kV) used to avoid excessive update of discrete control while regulating. This attribute is necessary only if the shunt compensator is regulating. It must be positive.Depends on the working variant.
- See Also:
VariantManager
-
-