本文整理了Java中com.powsybl.iidm.network.Line.getCurrentLimits1()
方法的一些代码示例,展示了Line.getCurrentLimits1()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.getCurrentLimits1()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Line
类名称:Line
方法名:getCurrentLimits1
暂无
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
@Override
protected boolean hasSubElements(Line l) {
return l.getCurrentLimits1() != null || l.getCurrentLimits2() != null;
}
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
@Override
protected void writeSubElements(Line l, Network n, NetworkXmlWriterContext context) throws XMLStreamException {
if (l.getCurrentLimits1() != null) {
writeCurrentLimits(1, l.getCurrentLimits1(), context.getWriter());
}
if (l.getCurrentLimits2() != null) {
writeCurrentLimits(2, l.getCurrentLimits2(), context.getWriter());
}
}
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
private static void fillLines(StringToIntMapper<AmplSubset> mapper, Network network) {
for (Line l : network.getLines()) {
mapper.newInt(AmplSubset.BRANCH, l.getId());
if (l.isTieLine()) {
TieLine tl = (TieLine) l;
mapper.newInt(AmplSubset.VOLTAGE_LEVEL, AmplUtil.getXnodeVoltageLevelId(tl));
mapper.newInt(AmplSubset.BUS, AmplUtil.getXnodeBusId(tl));
mapper.newInt(AmplSubset.BRANCH, tl.getHalf1().getId());
mapper.newInt(AmplSubset.BRANCH, tl.getHalf2().getId());
}
// limits
if (l.getCurrentLimits1() != null) {
createLimitsIds(mapper, l.getCurrentLimits1(), l.getId(), "_1_");
}
if (l.getCurrentLimits2() != null) {
createLimitsIds(mapper, l.getCurrentLimits2(), l.getId(), "_2_");
}
}
}
代码示例来源:origin: itesla/ipst
private static void extractLinesData(Network network, NetworkData networkData) {
for (Line line : network.getLines()) {
if (line.getTerminal1().getVoltageLevel().getNominalV() >= 110) {
networkData.addLineData(new LineData(line.getId(),
(line.getTerminal1().getBusBreakerView().getBus() != null)
? line.getTerminal1().getBusBreakerView().getBus().getId()
: line.getTerminal1().getBusBreakerView().getConnectableBus().getId(),
(line.getTerminal2().getBusBreakerView().getBus() != null)
? line.getTerminal2().getBusBreakerView().getBus().getId()
: line.getTerminal2().getBusBreakerView().getConnectableBus().getId(),
line.getTerminal1().getI(),
line.getTerminal2().getI(),
(line.getCurrentLimits1() != null) ? line.getCurrentLimits1().getPermanentLimit() : Float.NaN,
(line.getCurrentLimits2() != null) ? line.getCurrentLimits2().getPermanentLimit() : Float.NaN)
);
}
}
}
代码示例来源:origin: itesla/ipst
double lineChargingB = (l.getB1() + l.getB2()) * zBase;
double ratingA = Math.min((l.getCurrentLimits1().getPermanentLimit() * l.getTerminal1().getBusView().getBus().getVoltageLevel().getNominalV()) / 1e3,
(l.getCurrentLimits2().getPermanentLimit() * l.getTerminal2().getBusView().getBus().getVoltageLevel().getNominalV()) / 1e3);
double ratingB = ratingA;
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
.writeCell(getPermanentLimit(l.getCurrentLimits1()))
.writeCell(Float.NaN)
.writeCell(merged)
.writeCell(t1.getQ())
.writeCell(t2.getQ())
.writeCell(getPermanentLimit(l.getCurrentLimits1()))
.writeCell(getPermanentLimit(l.getCurrentLimits2()))
.writeCell(merged)
代码示例来源:origin: com.powsybl/powsybl-cgmes-conformity
lineBE2.getCurrentLimits1().setPermanentLimit(2000.0);
lineBE2.getCurrentLimits2().setPermanentLimit(2000.0);
内容来源于网络,如有侵权,请联系作者删除!