private static BranchData legBranchData(String twtId, Side side, Leg2or3 leg, double ratedU0, Complex starVoltage, double epsilonX, boolean applyReactanceCorrection) { // All (gk, bk) are zero in the IIDM model return legBranchData(twtId, side, leg, 0, 0, ratedU0, starVoltage, epsilonX, applyReactanceCorrection); }
private static BranchData legBranchData(String twtId, Leg1 leg, Complex starVoltage, double epsilonX, boolean applyReactanceCorrection) { // In IIDM only the Leg1 has admittance to ground // And it is modeled at end corresponding to star bus return legBranchData(twtId, Side.ONE, leg, leg.getG(), leg.getB(), leg.getRatedU(), starVoltage, epsilonX, applyReactanceCorrection); }
starTheta = starVoltage.getArgument(); BranchData leg1BranchData = legBranchData(twt.getId(), twt.getLeg1(), starVoltage, epsilonX, applyReactanceCorrection); computedP1 = leg1BranchData.getComputedP1(); computedQ1 = leg1BranchData.getComputedQ1(); BranchData leg2BranchData = legBranchData(twt.getId(), Side.TWO, twt.getLeg2(), ratedU0, starVoltage, epsilonX, applyReactanceCorrection); computedP2 = leg2BranchData.getComputedP1(); computedQ2 = leg2BranchData.getComputedQ1(); BranchData leg3BranchData = legBranchData(twt.getId(), Side.THREE, twt.getLeg3(), ratedU0, starVoltage, epsilonX, applyReactanceCorrection); computedP3 = leg3BranchData.getComputedP1();