热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

本文整理了Java中com.powsybl.iidm.network.Network.getVscConverterStation()方法的一些代码示例,展示了

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

Network.getVscConverterStation介绍

[英]Get an VSC converter station.
[中]找一个VSC转换站。

代码示例

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

if (isMacroblockIncluded(network.getVscConverterStation(eq.getCimId()), zm)) {

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

private Void readVsc(String[] tokens) {
int num = Integer.parseInt(tokens[1]);
int busNum = Integer.parseInt(tokens[2]);
boolean vregul = Boolean.parseBoolean(tokens[3]);
double targetV = readDouble(tokens[4]);
double targetQ = readDouble(tokens[5]);
double p = readDouble(tokens[6]);
double q = readDouble(tokens[7]);
String id = mapper.getId(AmplSubset.VSC_CONVERTER_STATION, num);
VscConverterStation vsc = network.getVscConverterStation(id);
Terminal t = vsc.getTerminal();
t.setP(p).setQ(q);
vsc.setReactivePowerSetpoint(targetQ);
vsc.setVoltageRegulatorOn(vregul);
double vb = t.getVoltageLevel().getNominalV();
vsc.setVoltageSetpoint(targetV * vb);
busConnection(t, busNum);
return null;
}

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

private void createACDCVscConverters(EsgNetwork esgNetwork) {
//creates 2 DC nodes, for each hvdc line (one node per converter station)
for (HvdcLine hvdcLine : Identifiables.sort(network.getHvdcLines())) {
// skip lines with converter stations not in the main connected component
if (config.isExportMainCCOnly() && (!EchUtil.isInMainCc(hvdcLine.getConverterStation1(), config.isNoSwitch()) || !EchUtil.isInMainCc(hvdcLine.getConverterStation2(), config.isNoSwitch()))) {
LOGGER.warn("skipped HVDC line {}: at least one converter station is not in main component", hvdcLine.getId());
continue;
}
HvdcConverterStation convStation1 = hvdcLine.getConverterStation1();
HvdcConverterStation convStation2 = hvdcLine.getConverterStation2();
//create two dc nodes, one for each conv. station
Esg8charName hvdcNodeName1 = new Esg8charName(addToDictionary("DC_" + convStation1.getId(), dictionary, EurostagNamingStrategy.NameType.NODE));
Esg8charName hvdcNodeName2 = new Esg8charName(addToDictionary("DC_" + convStation2.getId(), dictionary, EurostagNamingStrategy.NameType.NODE));
double dcVoltage = EchUtil.getHvdcLineDcVoltage(hvdcLine);
esgNetwork.addDCNode(new EsgDCNode(new Esg2charName("DC"), hvdcNodeName1, dcVoltage, 1));
esgNetwork.addDCNode(new EsgDCNode(new Esg2charName("DC"), hvdcNodeName2, dcVoltage, 1));
//create a dc link, representing the hvdc line
//Eurostag model requires a resistance of 1 ohm (not hvdcLine.getR())
float r = 1.0f;
esgNetwork.addDCLink(new EsgDCLink(hvdcNodeName1, hvdcNodeName2, '1', r, EsgDCLink.LinkStatus.ON));
//create the two converter stations
EsgACDCVscConverter esgConv1 = createACDCVscConverter(network.getVscConverterStation(convStation1.getId()), hvdcLine, hvdcNodeName1);
EsgACDCVscConverter esgConv2 = createACDCVscConverter(network.getVscConverterStation(convStation2.getId()), hvdcLine, hvdcNodeName2);
esgNetwork.addACDCVscConverter(esgConv1);
esgNetwork.addACDCVscConverter(esgConv2);
//Create one load on the node to which converters stations are connected
esgNetwork.addLoad(createConverterStationAdditionalLoad(hvdcLine, convStation1));
esgNetwork.addLoad(createConverterStationAdditionalLoad(hvdcLine, convStation2));
}
}

推荐阅读
author-avatar
夜幕2502896061
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有