private static void addShuntCompensators(Network network, ConnectedPower balanceMainCC, ConnectedPower balanceOtherCC) { for (ShuntCompensator sc : network.getShuntCompensators()) { Terminal.BusBreakerView view = sc.getTerminal().getBusBreakerView(); double q = sc.getCurrentB() * Math.pow(sc.getTerminal().getVoltageLevel().getNominalV(), 2); if (view.getBus() != null) { addConnectedShunt(view, q, sc.getId(), balanceMainCC, balanceOtherCC); } else { addDisonnectedShunt(view, q, sc.getId(), balanceMainCC, balanceOtherCC); } } }
&& terminal.getBusView().getBus().isInMainConnectedComponent()) { double v = terminal.getBusView().getBus().getV(); double q = -sh.getCurrentB() * v * v; LOGGER.debug("Shunt {}, setting q = {}", sh, q); terminal.setQ(q);
while (itrS.hasNext()) { ShuntCompensator shunt = itrS.next(); shuntSusceptanceB += shunt.getCurrentB() * zBase;
double minB = Math.min(b1, b2); double maxB = Math.max(b1, b2); double b = sc.getCurrentB() * zb; int points = sc.getMaximumSectionCount() < 1 ? 0 : sc.getMaximumSectionCount() - 1; formatter.writeCell(variantIndex)