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

x33g5p2x  于2022-01-16 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(124)

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

Bus.getQ介绍

[英]Get the reactive power in MVAR injected by equiments connected to the bus.
[中]获取连接到总线的设备注入的无功功率,单位为MVAR。

代码示例

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

@Override
public double getQ() {
  checkValidity();
  double q = 0;
  for (Bus b : buses) {
    q += b.getQ();
  }
  return q;
}

代码示例来源:origin: itesla/ipst

reactiveAbsorption,
                  bus.getP(),
                  bus.getQ(),
                  false)
);

代码示例来源:origin: itesla/ipst

busData.setMaxVoltage(bus.getVoltageLevel().getHighVoltageLimit());
busData.setActivePower(bus.getP());
busData.setReactivePower(bus.getQ());
busesData.add(busData);
updateSlackBusData(bus, busIndex, slackBusData);

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

private void writeBuses(AmplExportContext context, TableFormatter formatter) throws IOException {
  for (Bus b : AmplUtil.getBuses(network)) {
    int ccNum = ConnectedComponents.getCcNum(b);
    if (connectedComponentToExport(ccNum)) {
      String id = b.getId();
      VoltageLevel vl = b.getVoltageLevel();
      context.busIdsToExport.add(id);
      int num = mapper.getInt(AmplSubset.BUS, id);
      int vlNum = mapper.getInt(AmplSubset.VOLTAGE_LEVEL, vl.getId());
      double nomV = vl.getNominalV();
      double v = b.getV() / nomV;
      double theta = Math.toRadians(b.getAngle());
      formatter.writeCell(variantIndex)
          .writeCell(num)
          .writeCell(vlNum)
          .writeCell(ccNum)
          .writeCell(v)
          .writeCell(theta)
          .writeCell(b.getP())
          .writeCell(b.getQ())
          .writeCell(faultNum)
          .writeCell(actionNum)
          .writeCell(id);
      addExtensions(num, b);
    }
  }
}

相关文章