From a94de1536aef415cecd767300c7feafc76feb5ff Mon Sep 17 00:00:00 2001 From: Christian Biasuzzi Date: Thu, 25 Oct 2018 13:40:29 +0200 Subject: [PATCH] write scenarios for Eurostag using new simulation parameter shortCircuitDurationSide2 --- .../java/eu/itesla_project/eurostag/EurostagScenario.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eurostag-integration/src/main/java/eu/itesla_project/eurostag/EurostagScenario.java b/eurostag-integration/src/main/java/eu/itesla_project/eurostag/EurostagScenario.java index 44b2e745..700c2d65 100644 --- a/eurostag-integration/src/main/java/eu/itesla_project/eurostag/EurostagScenario.java +++ b/eurostag-integration/src/main/java/eu/itesla_project/eurostag/EurostagScenario.java @@ -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) @@ -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)