-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reactive power control mode to ratio tap changers #2758
Conversation
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/RatioTapChanger.java
Outdated
Show resolved
Hide resolved
psse/psse-converter/src/main/java/com/powsybl/psse/converter/TransformerConverter.java
Outdated
Show resolved
Hide resolved
psse/psse-converter/src/main/java/com/powsybl/psse/converter/TransformerConverter.java
Outdated
Show resolved
Hide resolved
ucte/ucte-converter/src/main/java/com/powsybl/ucte/converter/UcteExporter.java
Outdated
Show resolved
Hide resolved
cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java
Outdated
Show resolved
Hide resolved
...onversion/src/main/java/com/powsybl/cgmes/conversion/export/SteadyStateHypothesisExport.java
Outdated
Show resolved
Hide resolved
...s-conversion/src/test/java/com/powsybl/cgmes/conversion/test/network/compare/Comparison.java
Outdated
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/RatioTapChanger.java
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/RatioTapChanger.java
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ValidationUtil.java
Outdated
Show resolved
Hide resolved
@@ -97,27 +101,63 @@ public RatioTapChangerImpl setLoadTapChangingCapabilities(boolean loadTapChangin | |||
|
|||
@Override | |||
public double getTargetV() { | |||
return targetV.get(network.get().getVariantIndex()); | |||
if (regulationMode != RegulationMode.VOLTAGE) { | |||
throw new IllegalAccessError("Regulation mode must be in voltage to access to target V"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a constant for message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message not needed anymore, changed to return Double.NaN if regulation mode is not voltage
loadflow/loadflow-api/src/main/java/com/powsybl/loadflow/LoadFlowParameters.java
Outdated
Show resolved
Hide resolved
e445e33
to
1777df6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mainly iIDM ser/deser-ialization to be fixed with backward compatibility support
some cleanup to do
...s-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/EquipmentExportTest.java
Outdated
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/RatioTapChanger.java
Outdated
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/RatioTapChanger.java
Outdated
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/RatioTapChangerAdder.java
Outdated
Show resolved
Hide resolved
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ValidationUtil.java
Outdated
Show resolved
Hide resolved
...low-validation/src/test/java/com/powsybl/loadflow/validation/TransformersValidationTest.java
Outdated
Show resolved
Hide resolved
psse/psse-converter/src/main/java/com/powsybl/psse/converter/TransformerConverter.java
Outdated
Show resolved
Hide resolved
ucte/ucte-converter/src/main/java/com/powsybl/ucte/converter/UcteExporter.java
Outdated
Show resolved
Hide resolved
ucte/ucte-converter/src/main/java/com/powsybl/ucte/converter/UcteImporter.java
Outdated
Show resolved
Hide resolved
iidm/iidm-serde/src/main/java/com/powsybl/iidm/serde/AbstractTransformerSerDe.java
Outdated
Show resolved
Hide resolved
iidm/iidm-serde/src/main/resources/xsd/iidm_equipment_V1_12.xsd
Outdated
Show resolved
Hide resolved
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
Signed-off-by: parvy <pierre.arvy@artelys.com>
bfcbf77
to
3ffa7c5
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #2769
What kind of change does this PR introduce?
Feature: Add a regulation mode "reactive power" to ratio tap changers
What is the current behavior?
Ratio tap changers can only regulate voltage
What is the new behavior (if this is a feature change)?
Ratio tap changers can regulate either voltage or reactive power
Does this PR introduce a breaking change or deprecate an API?
Partially backward compatible as follows:
regulationMode
is introduced, with possible valuesVOLTAGE
orREACTIVE_POWER
.getRegulationMode
/setRegulationMode
targetV
becomesregulationValue
,getRegulationValue
/setRegulationValue
getTargetV
andsetTargetV
, acting as shortcuts as follows:But if you have defined your own IIDM implementation, you should implement the following methods:
RatioTapChanger
implementations:RegulationMode getRegulationMode()
RatioTapChanger setRegulationMode(RatioTapChanger.RegulationMode regulationMode)
double getRegulationValue()
RatioTapChanger setRegulationValue(double regulationValue)
Besides,
ValidationUtil.checkRatioTapChangerRegulation
methods take an additional parameter:regulationMode
, the regulation mode (note thattargetV
parameter was also renamed inregulationValue
).Other information: