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

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

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

Network.getTwoWindingsTransformerStream介绍

[英]Get all two windings transformers.
[中]把两个绕组都装上变压器。

代码示例

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

List<TwoWindingsTransformer> twoWindingsTransformers = network.getTwoWindingsTransformerStream()
    .filter(t -> !test(t))
    .collect(Collectors.toList());

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

private static void dumpLinesDictionary(Network network, EurostagDictionary dictionary, Path dir, EurostagEchExportConfig exportConfig) throws IOException {
  try (BufferedWriter os = Files.newBufferedWriter(dir.resolve("dict_lines.csv"), StandardCharsets.UTF_8)) {
    for (Identifiable obj : Identifiables.sort(Iterables.concat(
        network.getLineStream().filter(line -> !(exportConfig.isExportMainCCOnly() && !EchUtil.isInMainCc(line, exportConfig.isNoSwitch()))).collect(Collectors.toList()),
        network.getTwoWindingsTransformerStream().filter(twt -> !(exportConfig.isExportMainCCOnly() && !EchUtil.isInMainCc(twt, exportConfig.isNoSwitch()))).collect(Collectors.toList()),
        network.getDanglingLineStream().filter(dl -> !(exportConfig.isExportMainCCOnly() && !EchUtil.isInMainCc(dl, exportConfig.isNoSwitch()))).collect(Collectors.toList())
    ))) {
      os.write(obj.getId() + ";" + dictionary.getEsgId(obj.getId()));
      os.newLine();
    }
    for (ThreeWindingsTransformer twt : Identifiables.sort(network.getThreeWindingsTransformers())) {
      throw new AssertionError("TODO");
    }
  }
}

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

VoltageLevel vlGen = g.getTerminal().getVoltageLevel();
if (vlGen != null) {
  TwoWindingsTransformer twt = network.getTwoWindingsTransformerStream().filter(t -> vlGen.getId().equals(t.getTerminal2().getVoltageLevel().getId())).findFirst().orElse(null);
  if (twt != null) {
    coupledBus = getBus(twt.getTerminal1(), configExport.isNoSwitch());

代码示例来源:origin: com.powsybl/powsybl-loadflow-results-completion

});
network.getTwoWindingsTransformerStream().forEach(twt -> {
  BranchData twtData = new BranchData(twt,
                    parameters.getEpsilonX(),

相关文章