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

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

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

Network.getShuntCompensators介绍

[英]Get all compensator shunts.
[中]

代码示例

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

/**
 * @deprecated Use {@link #getShuntCompensators)} instead.
 */
@Deprecated
default Iterable<ShuntCompensator> getShunts() {
  return getShuntCompensators();
}

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

private static void addShuntCompensators(Network network, ConnectedPower balanceMainCC, ConnectedPower balanceOtherCC) {
  for (ShuntCompensator sc : network.getShuntCompensators()) {
    Terminal.BusBreakerView view = sc.getTerminal().getBusBreakerView();
    double q = sc.getCurrentB() * Math.pow(sc.getTerminal().getVoltageLevel().getNominalV(), 2);
    if (view.getBus() != null) {
      addConnectedShunt(view, q, sc.getId(), balanceMainCC, balanceOtherCC);
    } else {
      addDisonnectedShunt(view, q, sc.getId(), balanceMainCC, balanceOtherCC);
    }
  }
}

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

new Column("sections count"))) {
List<String> skipped = new ArrayList<>();
for (ShuntCompensator sc : network.getShuntCompensators()) {
  Terminal t = sc.getTerminal();
  Bus bus = AmplUtil.getBus(t);

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

powerFlows.add(createPowerFlowProperties(cgmes, g.getTerminal()));
for (ShuntCompensator s : n.getShuntCompensators()) {
  powerFlows.add(createPowerFlowProperties(cgmes, s.getTerminal()));
for (ShuntCompensator s : n.getShuntCompensators()) {
  PropertyBag p = new PropertyBag(SV_SHUNTCOMPENSATORSECTIONS_PROPERTIES);
  p.put("continuousSections", is(s.getCurrentSectionCount()));

相关文章