Skip to content

Commit

Permalink
Fix logs
Browse files Browse the repository at this point in the history
Signed-off-by: Ayoub LABIDI <[email protected]>
  • Loading branch information
ayolab committed Nov 7, 2023
1 parent a62968a commit 659af33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ private void applyModificationOnLinearModel(Reporter subReporter, ShuntCompensat
double olQAtNominalV = Math.abs(Math.pow(voltageLevel.getNominalV(), 2) * model.getBPerSection());
double newQatNominalV = modificationInfos.getMaxQAtNominalV().getValue() / maximumSectionCount;
double susceptancePerSection = newQatNominalV / Math.pow(voltageLevel.getNominalV(), 2);
model.setBPerSection(shuntCompensatorType == ShuntCompensatorType.CAPACITOR ? susceptancePerSection : -susceptancePerSection);
reports.add(ModificationUtils.getInstance().buildModificationReport(olQAtNominalV, newQatNominalV, "Q at nominal voltage"));
model.setBPerSection(shuntCompensatorType == ShuntCompensatorType.CAPACITOR ? susceptancePerSection : -susceptancePerSection);
}

if (modificationInfos.getMaxSusceptance() != null) {
double susceptancePerSection = modificationInfos.getMaxSusceptance().getValue() / maximumSectionCount;
model.setBPerSection(susceptancePerSection);
reports.add(ModificationUtils.getInstance().buildModificationReport(model.getBPerSection(), susceptancePerSection, "Susceptance per section"));
model.setBPerSection(susceptancePerSection);
}
reports.forEach(subReporter::report);
}
Expand Down

0 comments on commit 659af33

Please sign in to comment.