Class VoltageRegulationUtils
java.lang.Object
com.powsybl.iidm.modification.util.VoltageRegulationUtils
-
Method Summary
Modifier and TypeMethodDescriptiongetRegulatingGenerators
(Network network, Bus controlledBus) Get the stream of all generators of the network controlling voltage at controlled bus.static Stream<ShuntCompensator>
getRegulatingShuntCompensators
(Network network, Bus controlledBus) Get the stream of all shunt compensators of the network controlling voltage at controlled bus.static OptionalDouble
getTargetVForRegulatingElement
(Network network, Bus controlledBus, String regulatingElementId, IdentifiableType identifiableType) A method to find an acceptable target voltage for a regulating element to be connected.
-
Method Details
-
getRegulatingGenerators
Get the stream of all generators of the network controlling voltage at controlled bus. -
getRegulatingShuntCompensators
public static Stream<ShuntCompensator> getRegulatingShuntCompensators(Network network, Bus controlledBus) Get the stream of all shunt compensators of the network controlling voltage at controlled bus. -
getTargetVForRegulatingElement
public static OptionalDouble getTargetVForRegulatingElement(Network network, Bus controlledBus, String regulatingElementId, IdentifiableType identifiableType) A method to find an acceptable target voltage for a regulating element to be connected. Only generators and shunt compensators are yet supported. As a first version, we don't consider heterogeneous voltage controls.- Parameters:
controlledBus
- the controlled bus of the regulating terminal of the regulating elementregulatingElementId
- the id of the regulating element- Returns:
- the targetV, or
OptionalDouble.empty()
if no acceptable targetV has been found
-