本文整理了Java中com.powsybl.iidm.network.Bus.getQ()
方法的一些代码示例,展示了Bus.getQ()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bus.getQ()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Bus
类名称:Bus
方法名:getQ
[英]Get the reactive power in MVAR injected by equiments connected to the bus.
[中]获取连接到总线的设备注入的无功功率,单位为MVAR。
代码示例来源:origin: com.powsybl/powsybl-iidm-impl
@Override
public double getQ() {
checkValidity();
double q = 0;
for (Bus b : buses) {
q += b.getQ();
}
return q;
}
代码示例来源:origin: itesla/ipst
reactiveAbsorption,
bus.getP(),
bus.getQ(),
false)
);
代码示例来源:origin: itesla/ipst
busData.setMaxVoltage(bus.getVoltageLevel().getHighVoltageLimit());
busData.setActivePower(bus.getP());
busData.setReactivePower(bus.getQ());
busesData.add(busData);
updateSlackBusData(bus, busIndex, slackBusData);
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
private void writeBuses(AmplExportContext context, TableFormatter formatter) throws IOException {
for (Bus b : AmplUtil.getBuses(network)) {
int ccNum = ConnectedComponents.getCcNum(b);
if (connectedComponentToExport(ccNum)) {
String id = b.getId();
VoltageLevel vl = b.getVoltageLevel();
context.busIdsToExport.add(id);
int num = mapper.getInt(AmplSubset.BUS, id);
int vlNum = mapper.getInt(AmplSubset.VOLTAGE_LEVEL, vl.getId());
double nomV = vl.getNominalV();
double v = b.getV() / nomV;
double theta = Math.toRadians(b.getAngle());
formatter.writeCell(variantIndex)
.writeCell(num)
.writeCell(vlNum)
.writeCell(ccNum)
.writeCell(v)
.writeCell(theta)
.writeCell(b.getP())
.writeCell(b.getQ())
.writeCell(faultNum)
.writeCell(actionNum)
.writeCell(id);
addExtensions(num, b);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!