com.powsybl.iidm.network.Line.getCurrentLimits2()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中com.powsybl.iidm.network.Line.getCurrentLimits2()方法的一些代码示例,展示了Line.getCurrentLimits2()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.getCurrentLimits2()方法的具体详情如下:
包路径:com.powsybl.iidm.network.Line
类名称:Line
方法名:getCurrentLimits2

Line.getCurrentLimits2介绍

暂无

代码示例

代码示例来源: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

(l.getCurrentLimits2().getPermanentLimit() * l.getTerminal2().getBusView().getBus().getVoltageLevel().getNominalV()) / 1e3);
double ratingB = ratingA;
double ratingC = ratingA;

代码示例来源:origin: com.powsybl/powsybl-ampl-converter

.writeCell(getPermanentLimit(l.getCurrentLimits2()))
.writeCell(merged)
.writeCell(faultNum)
.writeCell(t2.getQ())
.writeCell(getPermanentLimit(l.getCurrentLimits1()))
.writeCell(getPermanentLimit(l.getCurrentLimits2()))
.writeCell(merged)
.writeCell(faultNum)

代码示例来源:origin: com.powsybl/powsybl-cgmes-conformity

lineBE2.getCurrentLimits2().setPermanentLimit(2000.0);

相关文章