本文整理了Java中com.powsybl.iidm.network.Line.getR()
方法的一些代码示例,展示了Line.getR()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.getR()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Line
类名称:Line
方法名:getR
暂无
代码示例来源:origin: itesla/ipst
@Override
public void visitLine(Line l, Line.Side side) {
visitBranch(l, side, l.getR(), l.getX(), l.getG1(), l.getB1(), l.getG2(), l.getB2(), 1);
}
代码示例来源:origin: com.powsybl/powsybl-iidm-api
public SV otherSide(Line l) {
return otherSide(l.getR(), l.getX(), l.getG1() + l.getG2(), l.getB1() + l.getB2(), 1);
}
代码示例来源:origin: com.powsybl/powsybl-iidm-api
public SV otherSideY1Y2(Line l) {
return otherSide(l.getR(), l.getX(), l.getG1(), l.getB1(), l.getG2(), l.getB2(), 1);
}
代码示例来源:origin: itesla/ipst
/**
* Add IIDM parameters to Line Modelica Model in p.u
*/
@Override
public void setParameters(double snref) {
//super.iidmbranchParameters = new ArrayList<IIDMParameter>();
double tNominalV = ((Line) this.line).getTerminal2().getVoltageLevel().getNominalV();
double voltage = !Double.isNaN(tNominalV) ? tNominalV : 0;
double z = (voltage * voltage) / snref;
super.addParameter(this.iidmbranchParameters, StaticData.R, this.line.getR() / z);
super.addParameter(this.iidmbranchParameters, StaticData.X, this.line.getX() / z);
super.addParameter(this.iidmbranchParameters, StaticData.G, this.line.getG1() * z);
super.addParameter(this.iidmbranchParameters, StaticData.B, this.line.getB1() * z);
}
代码示例来源:origin: com.powsybl/powsybl-iidm-api
Bus connectableBus2 = line.getTerminal2().getBusView().getConnectableBus();
r = line.getR();
x = line.getX();
double fixedX = getFixedX(x, epsilonX, applyReactanceCorrection);
代码示例来源:origin: itesla/ipst
int loadFlowArea = defaultLoadFlowArea;
int typeBranch = 0;
double resistanceR = l.getR() / zBase;
double reactanceX = l.getX() / zBase;
if (Math.abs(reactanceX) < defaultReactance) {
代码示例来源:origin: com.powsybl/powsybl-iidm-reducer
private void replaceLineByDanglingLine(Line line, VoltageLevel vl, Terminal terminal) {
Branch.Side side = line.getSide(terminal);
DanglingLineAdder dlAdder = vl.newDanglingLine()
.setId(line.getId())
.setName(line.getName())
.setR(line.getR() / 2)
.setX(line.getX() / 2)
.setB(side == Branch.Side.ONE ? line.getB1() : line.getB2())
.setG(side == Branch.Side.ONE ? line.getG1() : line.getG2())
.setP0(checkP(terminal))
.setQ0(checkQ(terminal));
fillNodeOrBus(dlAdder, terminal);
line.remove();
DanglingLine dl = dlAdder.add();
dl.getTerminal()
.setP(terminal.getP())
.setQ(terminal.getQ());
observers.forEach(o -> o.lineReplaced(line, dl));
}
代码示例来源:origin: itesla/ipst
l.getR(), l.getX(), g, b, parameters));
l.getR(), l.getX(), l.getG1(), l.getB1(), l.getG2(), l.getB2(), parameters));
} else {
l.getR(), l.getX(), (l.getG1() + l.getG2()) / 2, (l.getB1() + l.getB2()) / 2, parameters));
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
@Override
protected void writeRootElementAttributes(Line l, Network n, NetworkXmlWriterContext context) throws XMLStreamException {
XmlUtil.writeDouble("r", l.getR(), context.getWriter());
XmlUtil.writeDouble("x", l.getX(), context.getWriter());
XmlUtil.writeDouble("g1", l.getG1(), context.getWriter());
XmlUtil.writeDouble("b1", l.getB1(), context.getWriter());
XmlUtil.writeDouble("g2", l.getG2(), context.getWriter());
XmlUtil.writeDouble("b2", l.getB2(), context.getWriter());
writeNodeOrBus(1, l.getTerminal1(), context);
writeNodeOrBus(2, l.getTerminal2(), context);
if (context.getOptions().isWithBranchSV()) {
writePQ(1, l.getTerminal1(), context.getWriter());
writePQ(2, l.getTerminal2(), context.getWriter());
}
}
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
.writeCell(vl1Num)
.writeCell(vl2Num)
.writeCell(l.getR() / zb)
.writeCell(l.getX() / zb)
.writeCell(l.getG1() * zb)
内容来源于网络,如有侵权,请联系作者删除!