-
Notifications
You must be signed in to change notification settings - Fork 43
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
[Shortcircuit] Add new parameters #2638
Conversation
…ters Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/ShortCircuitConstants.java
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/ShortCircuitParameters.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/ShortCircuitParameters.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
parameters.readExtensions(platformConfig); | ||
|
||
return parameters; | ||
} | ||
|
||
private static List<VoltageRangeData> getCoefficientsFromConfig(ModuleConfig config, PlatformConfig platformConfig) { |
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.
@jonenst if you could check this piece of code, it would be great
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/ShortCircuitParameters.java
Show resolved
Hide resolved
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
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.
Thanks Coline for this work! Next step is documentation in the website.
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/FaultParameters.java
Outdated
Show resolved
Hide resolved
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/VoltageRangeData.java
Outdated
Show resolved
Hide resolved
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/VoltageRangeData.java
Outdated
Show resolved
Hide resolved
shortcircuit-api/src/main/java/com/powsybl/shortcircuit/VoltageRangeData.java
Outdated
Show resolved
Hide resolved
with-neutral-position: true | ||
initial-voltage-profile-mode: "CONFIGURED" | ||
voltage-range-data: "voltage-range-data.json" |
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.
Is it working with an absolute path or a relative path?
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.
I think that the JSON file should be in the same folder as the config file. So basically this field should just have the name of the file.
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.
With CGMES boundaries, we put the files in general in a folder inside de .itools
. It should work for this too, in order to create a folder but for short-circuit.
parameters.readExtensions(platformConfig); | ||
|
||
return parameters; | ||
} | ||
|
||
private static List<VoltageRangeData> getVoltageRangeDataFromConfig(ModuleConfig config, PlatformConfig platformConfig) { | ||
Optional<Path> optionalVoltageRangeDataPath = config.getOptionalPathProperty("voltage-range-data"); | ||
if (optionalVoltageRangeDataPath.isPresent()) { |
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 optionalVoltageRangeDataPath.ifPresent(...) instead
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.
But it won't work with the return value no?
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Yes #2643 + subtransientCoefficient
What kind of change does this PR introduce?
Feature
What is the current behavior?
A lot of parameters are missing
No coefficient for calculation subtransient reactance in subtransient studies
What is the new behavior (if this is a feature change)?
New parameter to calculate the subtransient reactance = subTransientCoefficient * transient reactance
Does this PR introduce a breaking change or deprecate an API?