Skip to content

Commit 6c06d38

Browse files
author
Denis Bonnand
committed
Complete documentation
Signed-off-by: Denis Bonnand <[email protected]>
1 parent 1b26913 commit 6c06d38

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

docs/loadflow/parameters.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,16 @@ When set to `false`:
596596

597597
The default value is `true`.
598598

599+
**acDcNetwork**
600+
601+
Defines if the loadflow uses DC detailed component and computes an AC DC loadflow
602+
603+
If `true`, the network supports DC detailed components, and the loadflow is computed on the whole connected network,
604+
AC and DC sides in the same Jacobian matrix.
605+
606+
If `false`, the loadflow is the classic one, without DC detailed components.
607+
608+
The default value is `false`.
599609

600610
## Configuration file example
601611
See below an extract of a config file that could help:

src/main/java/com/powsybl/openloadflow/ac/AcTargetVector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ private static double getReactivePowerControlTarget(LfBranch branch) {
6666

6767
public static void init(Equation<AcVariableType, AcEquationType> equation, LfNetwork network, double[] targets) {
6868
switch (equation.getType()) {
69-
case BUS_TARGET_P:
69+
case BUS_TARGET_P :
7070
targets[equation.getColumn()] = network.getBus(equation.getElementNum()).getTargetP();
7171
break;
7272

73-
case BUS_DISTR_SLACK_P:
73+
case BUS_DISTR_SLACK_P :
7474
targets[equation.getColumn()] = network.getBus(equation.getElementNum()).getTargetP() - network.getSlackBuses().get(0).getTargetP();
7575
break;
7676

src/main/java/com/powsybl/openloadflow/ac/equations/AcVariableType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public enum AcVariableType implements Quantity {
2525
BRANCH_RHO1("\u03C1", ElementType.BRANCH), // branch voltage ratio
2626
DUMMY_P("dummy_p", ElementType.BRANCH), // dummy active power injection (zero impedance branch)
2727
DUMMY_Q("dummy_q", ElementType.BRANCH), // dummy reactive power injection (zero impedance branch)
28-
DC_NODE_V("v_dc", ElementType.DC_NODE),
29-
CONV_P_AC("conv_p_ac", ElementType.CONVERTER),
30-
CONV_Q_AC("conv_q_ac", ElementType.CONVERTER);
28+
DC_NODE_V("v_dc", ElementType.DC_NODE), // dc node voltage
29+
CONV_P_AC("conv_p_ac", ElementType.CONVERTER), // converter active power, at AC side
30+
CONV_Q_AC("conv_q_ac", ElementType.CONVERTER); // converter reactive power, at DC side
3131

3232
private final String symbol;
3333

src/main/java/com/powsybl/openloadflow/network/LfNetwork.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ public LfNetwork(int numCC, int numSC, SlackBusSelector slackBusSelector, int ma
182182
}
183183

184184
public LfNetwork(LfNetwork network) {
185-
//TODO : find a better way to implement AC and DC subnetworks
186185
this(network.numCC, network.numSC, network.slackBusSelector, network.maxSlackBusCount,
187186
network.connectivityFactory, network.referenceBusSelector, ReportNode.NO_OP);
188187
}

0 commit comments

Comments
 (0)