本文整理了Java中com.powsybl.iidm.network.Network.getShunts()
方法的一些代码示例,展示了Network.getShunts()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getShunts()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称:Network
方法名:getShunts
暂无
代码示例来源:origin: itesla/ipst
System.out.println("Shutns = " + Identifiables.sort(_network.getShunts()).size());
代码示例来源:origin: itesla/ipst
elements.append("SHUNTS");
elements.append(StaticData.NEW_LINE);
for (ShuntCompensator shunt : Identifiables.sort(_network.getShunts())) {
elements.append(shunt.getId() + ";" + shunt.getName());
elements.append(StaticData.NEW_LINE);
代码示例来源:origin: itesla/ipst
injections.add(l);
for (ShuntCompensator sc : network.getShunts()) {
injections.add(sc);
代码示例来源:origin: itesla/ipst
for (ShuntCompensator sc : latestNetwork.getShunts()) {
if (equipIds != null && !equipIds.contains(sc.getId())) {
continue;
代码示例来源:origin: itesla/ipst
Identifiables.sort(network.getLoads()).forEach(l -> loadIds.add(l.getId()));
Set<String> generatorIds = Identifiables.sort(network.getGenerators()).stream().map(Generator::getId).collect(Collectors.toSet());
Set<String> shuntIds = Identifiables.sort(network.getShunts()).stream().map(ShuntCompensator::getId).collect(Collectors.toSet());
Set<String> svcIds = Identifiables.sort(network.getStaticVarCompensators()).stream().map(StaticVarCompensator::getId).collect(Collectors.toSet());
Set<String> converterStationsIds = Identifiables.sort(network.getVscConverterStations()).stream().map(VscConverterStation::getId).collect(Collectors.toSet());
代码示例来源:origin: itesla/ipst
private void createBanks(EsgNetwork esgNetwork) {
for (ShuntCompensator sc : Identifiables.sort(network.getShunts())) {
// skip shunts not in the main connected component
if (config.isExportMainCCOnly() && !EchUtil.isInMainCc(sc, config.isNoSwitch())) {
LOGGER.warn("not in main component, skipping ShuntCompensator: {}", sc.getId());
continue;
}
ConnectionBus bus = ConnectionBus.fromTerminal(sc.getTerminal(), config, fakeNodes);
//...number of steps in service
int ieleba = bus.isConnected() ? sc.getCurrentSectionCount() : 0; // not really correct, because it can be connected with zero section, EUROSTAG should be modified...
double vnom = sc.getTerminal().getVoltageLevel().getNominalV();
double plosba = 1000 * vnom * vnom * 0.; // no active lost in the iidm shunt compensator. Expressed in kw
double rcapba = vnom * vnom * sc.getbPerSection();
int imaxba = sc.getMaximumSectionCount();
EsgCapacitorOrReactorBank.RegulatingMode xregba = EsgCapacitorOrReactorBank.RegulatingMode.NOT_REGULATING;
esgNetwork.addCapacitorsOrReactorBanks(new EsgCapacitorOrReactorBank(new Esg8charName(dictionary.getEsgId(sc.getId())),
new Esg8charName(dictionary.getEsgId(bus.getId())),
ieleba, plosba, rcapba, imaxba, xregba));
}
}
代码示例来源:origin: itesla/ipst
shuntsList = Identifiables.sort(_network.getShunts());
exportCapacitors(writerMo, modContext, modelicaModelsList, modelicaSim);
connectCapacitorsList = Identifiables.sort(_network.getShunts());
exportConnectCapacitors(writerMo, modContext, modelicaModelsList, modelicaSim);
代码示例来源:origin: itesla/ipst
l.getTerminal().setP(Float.NaN).setQ(Float.NaN);
for (ShuntCompensator sc : network.getShunts()) {
sc.getTerminal().setP(Float.NaN).setQ(Float.NaN);
内容来源于网络,如有侵权,请联系作者删除!