-
Notifications
You must be signed in to change notification settings - Fork 12
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 CONFIGURED
initial voltage profile and voltage ranges
#759
base: main
Are you sure you want to change the base?
Conversation
2dec5a4
to
950fc05
Compare
cpp/pypowsybl-cpp/bindings.cpp
Outdated
.value("CONFIGURED", pypowsybl::InitialVoltageProfileMode::CONFIGURED, | ||
"Voltage profile given by the user.") | ||
.value("PREVIOUS_VALUE", pypowsybl::InitialVoltageProfileMode::PREVIOUS_VALUE, | ||
"Voltage profile from the loadflow."); |
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.
@colinepiloquet I just copied what is in powsybl-core
950fc05
to
5506b0e
Compare
Voltage ranges must also be added, for configured initial voltage map |
It's a parameter in powsybl-core ? |
Yes, also in the short-circuit API I can also try to do it if you want. |
7477387
to
921e46b
Compare
c56f59a
to
09de88c
Compare
typedef struct voltage_range_struct { | ||
double minimum_nominal_voltage; | ||
double maximum_nominal_voltage; | ||
double voltage; |
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.
Actually these parameters are not compulsory: either voltage or range coefficient should be given for each [mininum_nominal_voltage, maximum_nominal_voltage].
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.
in c/cpp double can be null ?
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Tiphaine Mouminous <[email protected]>
Signed-off-by: Tiphaine Mouminous <[email protected]>
Signed-off-by: Tiphaine Mouminous <[email protected]>
efc733f
to
2a856a0
Compare
CONFIGURED
initial voltage profile and voltage ranges
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: