-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support of asymmetrical transformer #806
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
implementation of 34 node feeder grid test Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
test Signed-off-by: JB-H <[email protected]>
test Signed-off-by: JB-H <[email protected]>
test Signed-off-by: JB-H <[email protected]>
test Signed-off-by: JB-H <[email protected]>
test Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
Signed-off-by: JB-H <[email protected]>
SonarCloud Quality Gate failed. 0 Bugs 89.7% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
# Conflicts: # src/main/java/com/powsybl/openloadflow/ac/equations/asym/AbstractAsymmetricalClosedBranchCoupledFlowEquationTerm.java # src/main/java/com/powsybl/openloadflow/ac/equations/asym/AsymmetricalAcEquationSystemCreator.java # src/main/java/com/powsybl/openloadflow/ac/equations/asym/AsymmetricalClosedBranchCoupledCurrentEquationTerm.java # src/main/java/com/powsybl/openloadflow/ac/equations/asym/AsymmetricalClosedBranchCoupledPowerEquationTerm.java # src/main/java/com/powsybl/openloadflow/ac/solver/NewtonRaphson.java
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
# Conflicts: # src/main/java/com/powsybl/openloadflow/ac/equations/asym/AsymmetricalAcEquationSystemCreator.java
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
/** | ||
* @author Jean-Baptiste Heyberger <jbheyberger at gmail.com> | ||
*/ | ||
public class ComplexMatrix { |
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.
Can we imagine having this class in powsybl-core
? There is a lot of small code parts using complex all over Powsybl. @zamarrenolm could be interested here.
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.
Done with powsybl/powsybl-core#2835, be careful about -1 indexing change.
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.
PR is merged, rework needed later.
@@ -9,6 +9,8 @@ | |||
package com.powsybl.openloadflow.util; | |||
|
|||
import com.powsybl.math.matrix.DenseMatrix; | |||
import net.jafama.FastMath; | |||
import org.apache.commons.math3.complex.Complex; |
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.
Same remark, I wonder if it is the good place for this class.
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.
Reminder: use FortescueUtil
in core.
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.powsybl.openloadflow.network.extensions; |
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 WindingConnectionType
from powsybl-core instead.
/** | ||
* @author Jean-Baptiste Heyberger <jbheyberger at gmail.com> | ||
*/ | ||
public class AsymTransfo2W { |
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.
Why this new extension compared to existing TwoWindingsTransformerFortescue
? I see that you prefer using z
here than r
and x
already present in the extension.
/** | ||
* @author Jean-Baptiste Heyberger <jbheyberger at gmail.com> | ||
*/ | ||
public enum LoadType { |
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.
Try to use the load model zip instead.
/** | ||
* @author Jean-Baptiste Heyberger <jbheyberger at gmail.com> | ||
*/ | ||
public class AsymmetricalBranchConnector { |
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 this object is not mature enough to go in powsybl-core. The extension LineAsymmetrical
should stay here too because it depends on this connector.
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.
How do you know the type of a bus "wye" or "delta?
Then, it is unexpected that isPositiveSequenceAsCurrent
is an input data. Same remark for isFortescueRepresentation
.
# Conflicts: # src/main/java/com/powsybl/openloadflow/ac/equations/AbstractClosedBranchAcFlowEquationTerm.java # src/main/java/com/powsybl/openloadflow/ac/equations/asym/AsymmetricalAcEquationSystemCreator.java # src/main/java/com/powsybl/openloadflow/ac/solver/NewtonRaphson.java # src/main/java/com/powsybl/openloadflow/network/impl/LfBusImpl.java
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Quality Gate passedIssues Measures |
private Boolean isOpenPhaseC2; | ||
|
||
// in case of a Delta-Wye or Wye-Delta connexion, | ||
// this attribute informs if this is a forward (step-up) or backward (step-down) connexion |
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.
Do you have some documentation about this attribute? I know what is a step-up transformer and a step-down transformer, but I am not sure it is what we mean here.
|
||
public static final String NAME = "lineAsymmetrical"; | ||
|
||
private ComplexMatrix yabc; // a three phase admittance matrix can be provided in input and will be used as first option if not null |
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.
And what is the second option?
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?
New feature
What is the current behavior?
What is the new behavior (if this is a feature change)?
Takes into account transformers and missing phases in asym load flow
Does this PR introduce a breaking change or deprecate an API?
Other information: