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

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

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

Network.getBusBreakerView介绍

[英]Get a bus/breaker view of the network.
[中]获取网络的总线/断路器视图。

代码示例

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

private static void addBuses(Network network, ConnectedPower balanceMainCC, ConnectedPower balanceOtherCC) {
  for (Bus b : network.getBusBreakerView().getBuses()) {
    if (b.isInMainConnectedComponent()) {
      balanceMainCC.busCount++;
    } else {
      balanceOtherCC.busCount++;
    }
  }
}

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

for (Bus b : n.getBusBreakerView().getBuses()) {
  if (buses.containsKey(b.getId())) {
    buses.put(b.getId(), Math.abs(buses.get(b.getId()) - b.getV()));

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

public static Iterable<Bus> getBuses(Network n, EurostagEchExportConfig config) {
  if (config.isNoSwitch()) {
    return n.getBusView().getBuses();
  } else {
    return n.getBusBreakerView().getBuses();
  }
}

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

private void numberOfElements() {
  System.out.println("Buses = " + Identifiables.sort(_network.getBusBreakerView().getBuses()).size());

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

for (Bus bus : _network.getBusBreakerView().getBuses()) {
  Voltage voltage = voltages.get(bus.getId());
  if (voltage == null) {

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

static void addBusOfMainCC(Set<String> buses, Network n, ExportOptions options) {
  // keep bus of main cc
  if (options.getTopologyLevel() == TopologyLevel.BUS_BRANCH) {
    for (Bus b : n.getBusView().getBuses()) {
      if (b.isInMainConnectedComponent()) {
        buses.add(b.getId());
      }
    }
  } else {
    for (Bus b : n.getBusBreakerView().getBuses()) {
      if (b.isInMainConnectedComponent()) {
        buses.add(b.getId());
      }
    }
  }
}

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

for (Bus b : n.getBusBreakerView().getBuses()) {
  stateBefore.buses.put(b.getId(), b.getV());

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

elements.append("BUSES");
elements.append(StaticData.NEW_LINE);
for (Bus bus : Identifiables.sort(_network.getBusBreakerView().getBuses())) {
  elements.append(bus.getId() + ";" + bus.getName());
  elements.append(StaticData.NEW_LINE);

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

LOGGER.info("#        Name          V (kV) Angle (Degrees) ");
LOGGER.info("#------------ --------------- --------------- ");
for (Bus bus : network.getBusBreakerView().getBuses()) {
  LOGGER.info(String.format("%s %15.8f %15.8f", bus.getId(), bus.getV(), bus.getAngle()));

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

private static void extractBusesData(Network network, NetworkData networkData) {
  SlackBusData slackBusData = new NetworkDataExtractor().new SlackBusData();
  int busIndex = 0;
  for (Bus bus : network.getBusBreakerView().getBuses()) {

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

int busIndex = 0;
SlackBusData slackBusData = new SlackBusData();
for (Bus bus : network.getBusBreakerView().getBuses()) {
  busIndex++;

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

busesList = Identifiables.sort(_network.getBusBreakerView().getBuses());
exportBuses(writerMo, modContext, modelicaModelsList, modelicaSim);

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

twt.getLeg3().getTerminal().setP(Float.NaN).setQ(Float.NaN);
for (Bus b : network.getBusBreakerView().getBuses()) {
  b.setV(Float.NaN);
  b.setAngle(Float.NaN);

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

for (Bus b : n.getBusBreakerView().getBuses()) {
  PropertyBag p = new PropertyBag(SV_VOLTAGE_PROPERTIES);
  p.put("angle", fs(b.getAngle()));

相关文章