Class AbstractLfGenerator
java.lang.Object
com.powsybl.openloadflow.network.AbstractPropertyBag
com.powsybl.openloadflow.network.impl.AbstractLfInjection
com.powsybl.openloadflow.network.impl.AbstractLfGenerator
- All Implemented Interfaces:
LfGenerator
,PropertyBag
- Direct Known Subclasses:
LfBatteryImpl
,LfDanglingLineGenerator
,LfGeneratorImpl
,LfStaticVarCompensatorImpl
,LfVscConverterStationImpl
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.network.LfGenerator
LfGenerator.GeneratorControlType, LfGenerator.ReactiveRangeMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LfAsymGenerator
protected LfBus
protected double
protected String
protected ControlledSide
protected String
protected static final double
protected LfGenerator.GeneratorControlType
protected final LfNetwork
protected double
protected double
Fields inherited from class com.powsybl.openloadflow.network.impl.AbstractLfInjection
initialTargetP, targetP
Fields inherited from class com.powsybl.openloadflow.network.AbstractPropertyBag
properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkActivePowerControl
(String generatorId, double targetP, double minP, double maxP, double plausibleActivePowerLimit, boolean useActiveLimits, LfNetworkLoadingReport report) static boolean
checkTargetV
(String generatorId, double targetV, double nominalV, LfNetworkParameters parameters, LfNetworkLoadingReport report) protected boolean
checkVoltageControlConsistency
(LfNetworkParameters parameters, LfNetworkLoadingReport report) getAsym()
getBus()
double
double
getMaxQ()
double
getMinQ()
double
getRangeQ
(LfGenerator.ReactiveRangeMode rangeMode) protected abstract Optional<com.powsybl.iidm.network.ReactiveLimits>
double
double
boolean
boolean
boolean
void
setAsym
(LfAsymGenerator asym) void
void
setCalculatedQ
(double calculatedQ) void
setDisabled
(boolean disabled) void
setGeneratorControlType
(LfGenerator.GeneratorControlType generatorControlType) void
setParticipating
(boolean participating) protected void
setReactivePowerControl
(com.powsybl.iidm.network.Terminal regulatingTerminal, double targetQ) void
setTargetP
(double targetP) protected void
setVoltageControl
(double targetV, com.powsybl.iidm.network.Terminal terminal, com.powsybl.iidm.network.Terminal regulatingTerminal, LfNetworkParameters parameters, LfNetworkLoadingReport report) toString()
Methods inherited from class com.powsybl.openloadflow.network.impl.AbstractLfInjection
getInitialTargetP, getTargetP
Methods inherited from class com.powsybl.openloadflow.network.AbstractPropertyBag
getProperty, removeProperty, setProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.powsybl.openloadflow.network.LfGenerator
getDroop, getId, getInitialTargetP, getMaxP, getMinP, getParticipationFactor, getSlope, getTargetP, getTargetQ, isParticipating, setSlope, updateState
Methods inherited from interface com.powsybl.openloadflow.network.PropertyBag
getProperty, removeProperty, setProperty
-
Field Details
-
DEFAULT_DROOP
protected static final double DEFAULT_DROOP- See Also:
-
network
-
bus
-
calculatedQ
protected double calculatedQ -
targetV
protected double targetV -
generatorControlType
-
controlledBusId
-
controlledBranchId
-
controlledBranchSide
-
remoteTargetQ
protected double remoteTargetQ -
asym
-
-
Constructor Details
-
AbstractLfGenerator
-
-
Method Details
-
getOriginalId
- Specified by:
getOriginalId
in interfaceLfGenerator
-
getBus
- Specified by:
getBus
in interfaceLfGenerator
-
setBus
- Specified by:
setBus
in interfaceLfGenerator
-
isFictitious
public boolean isFictitious()- Specified by:
isFictitious
in interfaceLfGenerator
-
setTargetP
public void setTargetP(double targetP) - Specified by:
setTargetP
in interfaceLfGenerator
-
getTargetV
public double getTargetV()- Specified by:
getTargetV
in interfaceLfGenerator
-
getGeneratorControlType
- Specified by:
getGeneratorControlType
in interfaceLfGenerator
-
setGeneratorControlType
- Specified by:
setGeneratorControlType
in interfaceLfGenerator
-
hasRemoteReactivePowerControl
public boolean hasRemoteReactivePowerControl()- Specified by:
hasRemoteReactivePowerControl
in interfaceLfGenerator
-
getRemoteControlReactiveKey
- Specified by:
getRemoteControlReactiveKey
in interfaceLfGenerator
-
getReactiveLimits
-
getMinQ
public double getMinQ()- Specified by:
getMinQ
in interfaceLfGenerator
-
getMaxQ
public double getMaxQ()- Specified by:
getMaxQ
in interfaceLfGenerator
-
getRangeQ
- Specified by:
getRangeQ
in interfaceLfGenerator
-
getCalculatedQ
public double getCalculatedQ()- Specified by:
getCalculatedQ
in interfaceLfGenerator
-
setCalculatedQ
public void setCalculatedQ(double calculatedQ) - Specified by:
setCalculatedQ
in interfaceLfGenerator
-
getControlledBus
- Specified by:
getControlledBus
in interfaceLfGenerator
-
setVoltageControl
protected void setVoltageControl(double targetV, com.powsybl.iidm.network.Terminal terminal, com.powsybl.iidm.network.Terminal regulatingTerminal, LfNetworkParameters parameters, LfNetworkLoadingReport report) -
checkVoltageControlConsistency
protected boolean checkVoltageControlConsistency(LfNetworkParameters parameters, LfNetworkLoadingReport report) -
checkTargetV
public static boolean checkTargetV(String generatorId, double targetV, double nominalV, LfNetworkParameters parameters, LfNetworkLoadingReport report) -
setReactivePowerControl
protected void setReactivePowerControl(com.powsybl.iidm.network.Terminal regulatingTerminal, double targetQ) -
getControlledBranch
- Specified by:
getControlledBranch
in interfaceLfGenerator
-
getControlledBranchSide
- Specified by:
getControlledBranchSide
in interfaceLfGenerator
-
getRemoteTargetQ
public double getRemoteTargetQ()- Specified by:
getRemoteTargetQ
in interfaceLfGenerator
-
setParticipating
public void setParticipating(boolean participating) - Specified by:
setParticipating
in interfaceLfGenerator
-
checkActivePowerControl
public static boolean checkActivePowerControl(String generatorId, double targetP, double minP, double maxP, double plausibleActivePowerLimit, boolean useActiveLimits, LfNetworkLoadingReport report) -
toString
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabled
in interfaceLfGenerator
-
setDisabled
public void setDisabled(boolean disabled) - Specified by:
setDisabled
in interfaceLfGenerator
-
getAsym
- Specified by:
getAsym
in interfaceLfGenerator
-
setAsym
- Specified by:
setAsym
in interfaceLfGenerator
-