@Override protected LccConverterStationAdder createAdder(VoltageLevel vl) { return vl.newLccConverterStation(); }
@Override public void convert() { Objects.requireNonNull(converterType); double lossFactor = p.asDouble("lossFactor", 0); HvdcConverterStation c = null; if (converterType.equals(HvdcType.VSC)) { boolean xxxvoltageRegulatorOn = p.asBoolean("voltageRegulatorOn", false); c = voltageLevel().newVscConverterStation() .setId(iidmId()) .setName(iidmName()) .setEnsureIdUnicity(false) .setLossFactor((float) lossFactor) .setVoltageRegulatorOn(xxxvoltageRegulatorOn) .add(); } else if (converterType.equals(HvdcType.LCC)) { c = voltageLevel().newLccConverterStation() .setId(iidmId()) .setName(iidmName()) .setEnsureIdUnicity(false) .setBus(terminalConnected() ? busId() : null) .setConnectableBus(busId()) .setLossFactor((float) lossFactor) .setPowerFactor((float) 0.8) .add(); } Objects.requireNonNull(c); context.dc().map(p, c); convertedTerminals(c.getTerminal()); }
shunt2.getTerminal() .setQ(25.0); LccConverterStation cs1 = vl1.newLccConverterStation() .setId("C1") .setName("Converter1") shunt4.getTerminal() .setQ(12.5); LccConverterStation cs2 = vl2.newLccConverterStation() .setId("C2") .setName("Converter2")