本文整理了Java中com.powsybl.iidm.network.Line.getG1()
方法的一些代码示例,展示了Line.getG1()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.getG1()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Line
类名称:Line
方法名:getG1
暂无
代码示例来源: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: itesla/ipst
if ((line.getB1() == line.getB2()) && (line.getG1() == line.getG2())) {
LineRecord lineRecord = ModelConverter.getModelicaRecord(line, modContext, _ddbManager, modelicaSim, SNREF);
this.addRecord(lineRecord, writerMo, modContext, _ddbManager, modelicaSim);
代码示例来源:origin: com.powsybl/powsybl-iidm-api
alpha1 = 0f;
alpha2 = 0f;
g1 = line.getG1();
g2 = line.getG2();
b1 = line.getB1();
代码示例来源:origin: itesla/ipst
continue;
if (Math.abs(l.getG1() - l.getG2()) < G_EPSILON
&& (Math.abs(l.getB1() - l.getB2()) < B_EPSILON
|| (Math.abs(l.getG1()) < G_EPSILON && Math.abs(l.getG2()) < G_EPSILON))) {
ConnectionBus bNode = null;
double b;
double diffB = 0.0;
double g = (l.getG1() + l.getG2()) / 2.0;
double vNom = 0.0;
if (l.getB1() < l.getB2() - B_EPSILON) {
l.getR(), l.getX(), l.getG1(), l.getB1(), l.getG2(), l.getB2(), parameters));
} else {
LOGGER.warn("line {}: half connected dissymmetrical branches are not allowed; removes the dissymmetry by averaging line's B1 {} and B2 {} , G1 {} and G2 {}", l, l.getB1(), l.getB2(), l.getG1(), l.getG2());
esgNetwork.addLine(createLine(l.getId(), bus1, bus2, l.getTerminal1().getVoltageLevel().getNominalV(),
l.getR(), l.getX(), (l.getG1() + l.getG2()) / 2, (l.getB1() + l.getB2()) / 2, parameters));
代码示例来源:origin: itesla/ipst
double lineChargingG = (l.getG1() + l.getG2()) * zBase;
double lineChargingB = (l.getB1() + l.getB2()) * zBase;
代码示例来源: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: 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(l.getR() / zb)
.writeCell(l.getX() / zb)
.writeCell(l.getG1() * zb)
.writeCell(l.getG2() * zb)
.writeCell(l.getB1() * zb)
内容来源于网络,如有侵权,请联系作者删除!