本文整理了Java中com.powsybl.iidm.network.Generator.getTargetQ()
方法的一些代码示例,展示了Generator.getTargetQ()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Generator.getTargetQ()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Generator
类名称:Generator
方法名:getTargetQ
[英]Get the reactive power target in MVAR.
Depends on the working variant.
[中]以MVAR为单位获取无功功率目标。
取决于工作变量。
代码示例来源:origin: itesla/ipst
LOGGER.info("#------------ ---------------- -------------- ---------------- --------------");
for (Generator gen : network.getGenerators()) {
LOGGER.info(String.format("%s %15.8f %15.8f %15.8f %15.8f", gen.getId(), gen.getTerminal().getQ(), gen.getTargetQ(), gen.getTerminal().getP(), gen.getTargetP()));
代码示例来源:origin: com.powsybl/powsybl-iidm-api
public static void printGeneratorsSetpointDiff(Network network, Logger logger) {
for (Generator g : network.getGenerators()) {
double dp = Math.abs(g.getTerminal().getP() + g.getTargetP());
double dq = Math.abs(g.getTerminal().getQ() + g.getTargetQ());
double dv = Math.abs(g.getTerminal().getBusBreakerView().getConnectableBus().getV() - g.getTargetV());
if (dp > 1 || dq > 5 || dv > 0.1) {
logger.warn("Generator {}: ({}, {}, {}) ({}, {}, {}) -> ({}, {}, {})", g.getId(),
dp, dq, dv,
-g.getTargetP(), -g.getTargetQ(), g.getTargetV(),
g.getTerminal().getP(), g.getTerminal().getQ(), g.getTerminal().getBusBreakerView().getConnectableBus().getV());
}
}
}
代码示例来源:origin: itesla/ipst
double oldTargetQ = g.getTargetQ();
double newTargetQ = -t.getQ();
if (oldTargetQ != newTargetQ) {
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
@Override
protected void writeRootElementAttributes(Generator g, VoltageLevel vl, NetworkXmlWriterContext context) throws XMLStreamException {
context.getWriter().writeAttribute("energySource", g.getEnergySource().name());
XmlUtil.writeDouble("minP", g.getMinP(), context.getWriter());
XmlUtil.writeDouble("maxP", g.getMaxP(), context.getWriter());
XmlUtil.writeDouble("ratedS", g.getRatedS(), context.getWriter());
context.getWriter().writeAttribute("voltageRegulatorOn", Boolean.toString(g.isVoltageRegulatorOn()));
XmlUtil.writeDouble("targetP", g.getTargetP(), context.getWriter());
XmlUtil.writeDouble("targetV", g.getTargetV(), context.getWriter());
XmlUtil.writeDouble("targetQ", g.getTargetQ(), context.getWriter());
writeNodeOrBus(null, g.getTerminal(), context);
writePQ(null, g.getTerminal(), context.getWriter());
}
代码示例来源:origin: itesla/ipst
} else {
double oldP = g.getTargetP();
double oldQ = g.getTargetQ();
LOGGER.trace(" gen {} - P:{}, Q:{} -> P:{}, Q:{} ", g.getId(), oldP, oldQ, gs.p, gs.q);
g.setTargetP(-gs.p)
代码示例来源:origin: itesla/ipst
loadMW += gen.getTargetP();
generationMVAR += gen.getTargetQ();
if (gen.getMinP() > 0.0) {
minimumGenerationMW += gen.getMinP();
代码示例来源:origin: itesla/ipst
double qgen = g.getTargetQ();
double pgmin = g.getMinP();
double pgmax = g.getMaxP();
代码示例来源:origin: itesla/ipst
generationP += g.getTargetP();
if (!g.isVoltageRegulatorOn()) {
generationQ += g.getTargetQ();
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
.writeCell(g.getTargetV() / vb)
.writeCell(g.getTargetP())
.writeCell(g.getTargetQ())
.writeCell(faultNum)
.writeCell(actionNum)
内容来源于网络,如有侵权,请联系作者删除!