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

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

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

Network.newLine介绍

[英]Get a builder to create a new AC line.
[中]让建筑商创建一条新的交流线路。

代码示例

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

@Override
protected LineAdder createAdder(Network n) {
  return n.newLine();
}

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

LOGGER.warn("Switch '{}' is connected to a terminal not in the same voltage level '{}' (side 1: '{}', side 2: '{}') => create a low impedance line",
    sw.getId(), vl.getId(), vl1.getId(), vl2.getId());
Line line = n.newLine()
    .setId(namingStrategy.getId(sw))
    .setName(namingStrategy.getName(sw))

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

namingStrategy.getId(l), namingStrategy.getId(tn1), namingStrategy.getId(tn2));
final Line line = network.newLine()
    .setId(namingStrategy.getId(l))
    .setName(namingStrategy.getName(l))

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

@Override
  public void convert() {
    double r = p.asDouble("r");
    double x = p.asDouble("x");
    String busId1 = busId(1);
    String busId2 = busId(2);
    final Line l = context.network().newLine()
        .setId(context.namingStrategy().getId(CgmesNames.SERIES_COMPENSATOR, id))
        .setName(context.namingStrategy().getName(CgmesNames.SERIES_COMPENSATOR, name))
        .setEnsureIdUnicity(false)
        .setBus1(terminalConnected(1) ? busId1 : null)
        .setBus2(terminalConnected(2) ? busId2 : null)
        .setConnectableBus1(busId1)
        .setConnectableBus2(busId2)
        .setVoltageLevel1(iidmVoltageLevelId(1))
        .setVoltageLevel2(iidmVoltageLevelId(2))
        .setR(r)
        .setX(x)
        .setG1(0)
        .setG2(0)
        .setB1(0)
        .setB2(0)
        .add();
    convertedTerminals(l.getTerminal1(), l.getTerminal2());
  }
}

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

private void convertLine() {
  double r = p.asDouble("r");
  double x = p.asDouble("x");
  double bch = p.asDouble("bch");
  double gch = p.asDouble("gch", 0.0);
  String busId1 = busId(1);
  String busId2 = busId(2);
  final Line l = context.network().newLine()
      .setId(iidmId())
      .setName(iidmName())
      .setEnsureIdUnicity(false)
      .setBus1(terminalConnected(1) ? busId1 : null)
      .setBus2(terminalConnected(2) ? busId2 : null)
      .setConnectableBus1(busId1)
      .setConnectableBus2(busId2)
      .setVoltageLevel1(iidmVoltageLevelId(1))
      .setVoltageLevel2(iidmVoltageLevelId(2))
      .setR(r)
      .setX(x)
      .setG1(gch / 2)
      .setG2(gch / 2)
      .setB1(bch / 2)
      .setB2(bch / 2)
      .add();
  convertedTerminals(l.getTerminal1(), l.getTerminal2());
}

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

pi2.b2 = pi2.b1;
PiModel pim = Quadripole.from(pi1).cascade(Quadripole.from(pi2)).toPiModel();
mline = context.network().newLine()
    .setId(id1 + " + " + id2)
    .setName(name1 + " + " + name2)

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

final Line l = context.network().newLine()
    .setId(context.namingStrategy().getId("Line", id))
    .setName(context.namingStrategy().getName("Line", name))

代码示例来源:origin: com.powsybl/powsybl-iidm-test

.setVoltageSetPoint(390)
    .add();
network.newLine()
    .setId("L1")
    .setVoltageLevel1("VL1")

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

if (convertToLowImpedanceLine()) {
  warnLowImpedanceLineCreated();
  Line line = context.network().newLine()
      .setId(iidmId())
      .setName(iidmName())

代码示例来源:origin: com.powsybl/powsybl-iidm-test

.setId("NLOAD")
  .add();
network.newLine()
    .setId("NHV1_NHV2_1")
    .setVoltageLevel1(vlhv1.getId())
    .setB2(386E-6 / 2)
  .add();
network.newLine()
    .setId("NHV1_NHV2_2")
    .setVoltageLevel1(vlhv1.getId())

代码示例来源:origin: com.powsybl/powsybl-iidm-test

.add();
ld2.getTerminal().setP(100.0).setQ(50.0);
Line l1 = network.newLine()
    .setId("L1")
    .setVoltageLevel1("VL1")
    .endStep()
    .add();
Line l2 = network.newLine()
    .setId("L2")
    .setVoltageLevel1("VL3")

代码示例来源:origin: com.powsybl/powsybl-security-analysis-api

.add();
network.newLine()
  .setId("LINE1")
  .setVoltageLevel1("VL2")
  .add();
network.newLine()
  .setId("LINE2")
  .setVoltageLevel1("VL1")

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

Line scAnvers = network.newLine()
    .setId("_df16b3dd-c905-4a6f-84ee-f067be86f5da")
    .setName("SER-RLC-1230822986")

代码示例来源:origin: com.powsybl/powsybl-iidm-test

.add();
Line lineCJ = network.newLine()
    .setId("CJ")
    .setR(0.009999999)

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

Line lineBE2 = network.newLine()
    .setId("_b58bf21a-096a-4dae-9a01-3f03b60c24c7")
    .setName("BE-Line_2")
Line lineBE6 = network.newLine()
    .setId("_ffbabc27-1ccd-4fdc-b037-e341706c8d29")
    .setName("BE-Line_6")

相关文章