double stepSize = nominalV * nominalV * shunt.getMaximumB() / numSteps; double b = stepSize * shunt.getCurrentSectionCount();
@Override protected void writeRootElementAttributes(ShuntCompensator sc, VoltageLevel vl, NetworkXmlWriterContext context) throws XMLStreamException { XmlUtil.writeDouble("bPerSection", sc.getbPerSection(), context.getWriter()); context.getWriter().writeAttribute("maximumSectionCount", Integer.toString(sc.getMaximumSectionCount())); context.getWriter().writeAttribute("currentSectionCount", Integer.toString(sc.getCurrentSectionCount())); writeNodeOrBus(null, sc.getTerminal(), context); writePQ(null, sc.getTerminal(), context.getWriter()); }
private void createBanks(EsgNetwork esgNetwork) { for (ShuntCompensator sc : Identifiables.sort(network.getShunts())) { // skip shunts not in the main connected component if (config.isExportMainCCOnly() && !EchUtil.isInMainCc(sc, config.isNoSwitch())) { LOGGER.warn("not in main component, skipping ShuntCompensator: {}", sc.getId()); continue; } ConnectionBus bus = ConnectionBus.fromTerminal(sc.getTerminal(), config, fakeNodes); //...number of steps in service int ieleba = bus.isConnected() ? sc.getCurrentSectionCount() : 0; // not really correct, because it can be connected with zero section, EUROSTAG should be modified... double vnom = sc.getTerminal().getVoltageLevel().getNominalV(); double plosba = 1000 * vnom * vnom * 0.; // no active lost in the iidm shunt compensator. Expressed in kw double rcapba = vnom * vnom * sc.getbPerSection(); int imaxba = sc.getMaximumSectionCount(); EsgCapacitorOrReactorBank.RegulatingMode xregba = EsgCapacitorOrReactorBank.RegulatingMode.NOT_REGULATING; esgNetwork.addCapacitorsOrReactorBanks(new EsgCapacitorOrReactorBank(new Esg8charName(dictionary.getEsgId(sc.getId())), new Esg8charName(dictionary.getEsgId(bus.getId())), ieleba, plosba, rcapba, imaxba, xregba)); } }
.writeCell(t.getP()) .writeCell(t.getQ()) .writeCell(sc.getCurrentSectionCount()); addExtensions(num, sc);
for (ShuntCompensator s : n.getShuntCompensators()) { PropertyBag p = new PropertyBag(SV_SHUNTCOMPENSATORSECTIONS_PROPERTIES); p.put("continuousSections", is(s.getCurrentSectionCount())); p.put("ShuntCompensator", s.getId()); shuntCompensatorSections.add(p);