Skip to content

Commit

Permalink
write scenarios for Eurostag using new simulation parameter shortCirc…
Browse files Browse the repository at this point in the history
…uitDurationSide2
  • Loading branch information
CBiasuzzi authored and sylvlecl committed Nov 2, 2018
1 parent bf5954f commit a94de15
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public void writeFaultSeq(BufferedWriter writer, Contingency contingency, Networ
+ ": " + vl1.getId() + " or " + vl2.getId());
}
}
double shortCircuitDuration = parameters.getBranchFaultShortCircuitDuration(contingency.getId(), l.getId());
double shortCircuitDurationSide1 = parameters.getBranchSideOneFaultShortCircuitDuration(contingency.getId(), l.getId());
double shortCircuitDurationSide2 = parameters.getBranchSideOTwoFaultShortCircuitDuration(contingency.getId(), l.getId());
String esgId = dictionary.getEsgId(l.getId());
writer.append(String.format("%8s", parameters.getFaultEventInstant()))
.append(PADDING_1)
Expand All @@ -176,14 +177,14 @@ public void writeFaultSeq(BufferedWriter writer, Contingency contingency, Networ
.append(PADDING_1)
.append(" 0.");
writer.newLine();
writer.append(format(parameters.getFaultEventInstant() + shortCircuitDuration, 8))
writer.append(format(parameters.getFaultEventInstant() + shortCircuitDurationSide1, 8))
.append(PADDING_1)
.append("BRANC OP")
.append(PADDING_1)
.append(esgId)
.append(" S 1 0.");
writer.newLine();
writer.append(format(parameters.getFaultEventInstant() + shortCircuitDuration, 8))
writer.append(format(parameters.getFaultEventInstant() + shortCircuitDurationSide2, 8))
.append(PADDING_1)
.append("BRANC OP")
.append(PADDING_1)
Expand Down

0 comments on commit a94de15

Please sign in to comment.