-
Notifications
You must be signed in to change notification settings - Fork 40
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
CGMES export. Preserve original class of generators. Fix synchronous machine type. Fix operating mode #2726
CGMES export. Preserve original class of generators. Fix synchronous machine type. Fix operating mode #2726
Conversation
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
…_operatingMode_issue_2707
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
…_operatingMode_issue_2707
…_operatingMode_issue_2707
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java
Outdated
Show resolved
Hide resolved
…_operatingMode_issue_2707
…_operatingMode_issue_2707
I think it is better to keep duplicated code since it is more readable. |
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/EquipmentExportTest.java
…_operatingMode_issue_2707 Signed-off-by: marqueslanauja <51124986+marqueslanauja@users.noreply.github.com>
…_operatingMode_issue_2707
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/Conversion.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/SteadyStateHypothesisExport.java # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/EquipmentExportTest.java # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/ExportXmlCompare.java # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/SteadyStateHypothesisExportTest.java
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
…_operatingMode_issue_2707
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/elements/EquivalentInjectionConversion.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/elements/EquivalentInjectionEq.java
…_operatingMode_issue_2707
…_operatingMode_issue_2707
…_operatingMode_issue_2707
…_operatingMode_issue_2707
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 4 New issues |
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/Conversion.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/EquipmentExport.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/SteadyStateHypothesisExport.java # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/EquipmentExportTest.java
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
…_operatingMode_issue_2707
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.
Mostly cosmetic changes, to align usage of string and const where possible.
.../src/main/java/com/powsybl/cgmes/conversion/elements/ExternalNetworkInjectionConversion.java
Outdated
Show resolved
Hide resolved
...ersion/src/main/java/com/powsybl/cgmes/conversion/elements/SynchronousMachineConversion.java
Outdated
Show resolved
Hide resolved
cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java
Outdated
Show resolved
Hide resolved
cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/EquipmentExport.java
Outdated
Show resolved
Hide resolved
...onversion/src/main/java/com/powsybl/cgmes/conversion/export/SteadyStateHypothesisExport.java
Outdated
Show resolved
Hide resolved
...onversion/src/main/java/com/powsybl/cgmes/conversion/export/SteadyStateHypothesisExport.java
Outdated
Show resolved
Hide resolved
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
We added the generatorOrMotor kind. |
…_operatingMode_issue_2707
...ersion/src/main/java/com/powsybl/cgmes/conversion/export/elements/EquivalentInjectionEq.java
Show resolved
Hide resolved
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/elements/SynchronousMachineConversion.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/EquipmentExport.java
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/elements/SynchronousMachineConversion.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/EquipmentExport.java # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/SteadyStateHypothesisExport.java # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/EquipmentExportTest.java
…_operatingMode_issue_2707 Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/EquipmentExport.java # cgmes/cgmes-conversion/src/test/java/com/powsybl/cgmes/conversion/test/export/ExportXmlCompare.java
cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java
Show resolved
Hide resolved
…_operatingMode_issue_2707
…_operatingMode_issue_2707
…_operatingMode_issue_2707
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java
Show resolved
Hide resolved
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.
The change has been verified using a big network to ensure we do not introduce any regression in performance
…_operatingMode_issue_2707
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes one of the issues described in #2707
What kind of change does this PR introduce?
Feature
What is the current behavior?
The cgmes classes
EquivalentInjection
,ExternalNetworkInjection
andSynchronousMachine
, during the import process, are converted into generators. During the cgmes export process, all the IIDM generators are exported asSynchronousMachines
, therefore the original cgmes classes are not preserved.Also, during the cgmes export process, the
SynchronousMachineKind
andSynchronousMachineOperatingMode
are always calculated based on theminP
,maxP
, andtargetP
attributes.What is the new behavior (if this is a feature change)?
The cgmes original class is preserved during the cgmes export process, therefore generators are exported as
EquivalentInjection
,ExternalNetworkInjection
andSynchronousMachine
in concordance with their original class.Original
SynchronousMachineKind
andSynchronousMachineOperatingMode
are also preserved if they are compatible with the current attributes of the generator, in another case, the calculated values are exported.To avoid Infinite values during reimport, minP, maxP, minQ, and maxQ attributes are not exported when they are assigned to the default values (
Double.MIN_VALUE
andDouble.MAX_VALUE
).Does this PR introduce a breaking change or deprecate an API?
Other information: