Skip to content
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

Merged
merged 50 commits into from
Sep 18, 2023
Merged

[Shortcircuit] Add new parameters #2638

merged 50 commits into from
Sep 18, 2023

Conversation

colinepiloquet
Copy link
Member

@colinepiloquet colinepiloquet commented Jul 6, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

…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>
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
@colinepiloquet colinepiloquet changed the title [Shortcircuit] Add subTransientCoefficient parameters [Shortcircuit] Add new parameters Jul 28, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

84.6% 84.6% Coverage
0.0% 0.0% Duplication

colinepiloquet and others added 6 commits July 31, 2023 10:57
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>
@colinepiloquet colinepiloquet requested a review from olperr1 August 7, 2023 11:24
colinepiloquet and others added 4 commits August 7, 2023 14:19
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>
olperr1 and others added 4 commits August 11, 2023 16:32
Signed-off-by: Olivier Perrin <olivier.perrin@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>
parameters.readExtensions(platformConfig);

return parameters;
}

private static List<VoltageRangeData> getCoefficientsFromConfig(ModuleConfig config, PlatformConfig platformConfig) {
Copy link
Member Author

@colinepiloquet colinepiloquet Sep 7, 2023

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>
Copy link
Member

@annetill annetill left a 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.

@annetill annetill requested review from jonenst and removed request for geofjamg and rolnico September 13, 2023 09:49
with-neutral-position: true
initial-voltage-profile-mode: "CONFIGURED"
voltage-range-data: "voltage-range-data.json"
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use optionalVoltageRangeDataPath.ifPresent(...) instead

Copy link
Member Author

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?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

89.9% 89.9% Coverage
0.0% 0.0% Duplication

colinepiloquet and others added 3 commits September 18, 2023 10:35
Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
@geofjamg geofjamg merged commit 99c847f into main Sep 18, 2023
5 checks passed
@geofjamg geofjamg deleted the add_subtransient_coefficient branch September 18, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants