-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Introduction of non linear shunt compensators (#1202)""
This reverts commit f60b5da. Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com>
- Loading branch information
Showing
43 changed files
with
1,552 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ShuntCompensatorLinearModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright (c) 2020, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* 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.iidm.network; | ||
|
||
/** | ||
* @author Miora Ralambotiana <miora.ralambotiana at rte-france.com> | ||
*/ | ||
public interface ShuntCompensatorLinearModel extends ShuntCompensatorModel { | ||
|
||
/** | ||
* Get the susceptance per section in S. | ||
*/ | ||
double getbPerSection(); | ||
|
||
/** | ||
* Set the susceptance per section in S. | ||
*/ | ||
ShuntCompensatorLinearModel setbPerSection(double bPerSection); | ||
|
||
/** | ||
* Get the conductance per section in S. | ||
*/ | ||
double getgPerSection(); | ||
|
||
/** | ||
* Set the conductance per section in S. | ||
*/ | ||
ShuntCompensatorLinearModel setgPerSection(double gPerSection); | ||
|
||
/** | ||
* Set the maximum number of sections. | ||
*/ | ||
ShuntCompensatorLinearModel setMaximumSectionCount(int maximumSectionCount); | ||
} |
21 changes: 21 additions & 0 deletions
21
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ShuntCompensatorLinearModelAdder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright (c) 2020, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* 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.iidm.network; | ||
|
||
/** | ||
* @author Miora Ralambotiana <miora.ralambotiana at rte-france.com> | ||
*/ | ||
public interface ShuntCompensatorLinearModelAdder { | ||
|
||
ShuntCompensatorLinearModelAdder setbPerSection(double bPerSection); | ||
|
||
ShuntCompensatorLinearModelAdder setgPerSection(double gPerSection); | ||
|
||
ShuntCompensatorLinearModelAdder setMaximumSectionCount(int maximumSectionCount); | ||
|
||
ShuntCompensatorAdder add(); | ||
} |
25 changes: 25 additions & 0 deletions
25
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ShuntCompensatorModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) 2020, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* 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.iidm.network; | ||
|
||
/** | ||
* @author Miora Ralambotiana <miora.ralambotiana at rte-france.com> | ||
*/ | ||
public interface ShuntCompensatorModel { | ||
|
||
/** | ||
* Get the susceptance in S of the section with a given section number if it exists. | ||
* Throw an exception if such a section does not exist. | ||
*/ | ||
double getB(int sectionNum); | ||
|
||
/** | ||
* Get the conductance in S of the section with a given section number if it exists. | ||
* Throw an exception if such a section does not exist. | ||
*/ | ||
double getG(int sectionNum); | ||
} |
15 changes: 15 additions & 0 deletions
15
iidm/iidm-api/src/main/java/com/powsybl/iidm/network/ShuntCompensatorModelType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Copyright (c) 2020, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* 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.iidm.network; | ||
|
||
/** | ||
* @author Miora Ralambotiana <miora.ralambotiana at rte-france.com> | ||
*/ | ||
public enum ShuntCompensatorModelType { | ||
LINEAR, | ||
NON_LINEAR | ||
} |
Oops, something went wrong.