本文整理了Java中com.powsybl.iidm.network.Network.getVscConverterStation()
方法的一些代码示例,展示了Network.getVscConverterStation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getVscConverterStation()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!