本文整理了Java中com.powsybl.iidm.network.Network.getTwoWindingsTransformers()
方法的一些代码示例,展示了Network.getTwoWindingsTransformers()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getTwoWindingsTransformers()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称:Network
方法名:getTwoWindingsTransformers
[英]Get all two windings transformers.
[中]把两个绕组都装上变压器。
代码示例来源:origin: itesla/ipst
public void debug(Network n) {
for (TwoWindingsTransformer twt : n.getTwoWindingsTransformers()) {
PowerFlow pf = injections.get(twt.getId());
if (pf != null) {
代码示例来源:origin: itesla/ipst
System.out.println("Trafos = " + Identifiables.sort(_network.getTwoWindingsTransformers()).size());
List<TwoWindingsTransformer> fixedTranformers = new ArrayList<TwoWindingsTransformer>();
List<TwoWindingsTransformer> detailedTranformers = new ArrayList<TwoWindingsTransformer>();
for (TwoWindingsTransformer trafo : Identifiables.sort(_network.getTwoWindingsTransformers())) {
if ((trafo.getRatioTapChanger() == null) && (trafo.getPhaseTapChanger() == null)) {
fixedTranformers.add(trafo);
代码示例来源:origin: itesla/ipst
LOGGER.info("# Name From To From To ");
LOGGER.info("#------------------------ --------------- --------------- --------------- --------------- ");
for (Branch trafo : network.getTwoWindingsTransformers()) {
LOGGER.info(String.format("%s %15.8f %15.8f %15.8f %15.8f", trafo.getId(), trafo.getTerminal1().getQ(), trafo.getTerminal2().getQ(), trafo.getTerminal1().getP(), trafo.getTerminal2().getP()));
代码示例来源:origin: itesla/ipst
List<TwoWindingsTransformer> fixedTranformers = new ArrayList<TwoWindingsTransformer>();
List<TwoWindingsTransformer> detailedTranformers = new ArrayList<TwoWindingsTransformer>();
for (TwoWindingsTransformer trafo : Identifiables.sort(_network.getTwoWindingsTransformers())) {
if ((trafo.getRatioTapChanger() == null) && (trafo.getPhaseTapChanger() == null)) {
fixedTranformers.add(trafo);
代码示例来源:origin: itesla/ipst
branches.add(l);
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
branches.add(twt);
代码示例来源:origin: itesla/ipst
public static BranchParallelIndexes build(Network network, EurostagEchExportConfig config, EurostagFakeNodes fakeNodes) {
Multimap<String, Identifiable> map = HashMultimap.create();
for (Branch branch : Iterables.concat(network.getLines(), network.getTwoWindingsTransformers())) {
ConnectionBus bus1 = ConnectionBus.fromTerminal(branch.getTerminal1(), config, fakeNodes);
ConnectionBus bus2 = ConnectionBus.fromTerminal(branch.getTerminal2(), config, fakeNodes);
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
AmplConstants.LOCALE,
columns.toArray(new Column[columns.size()]))) {
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
RatioTapChanger rtc = twt.getRatioTapChanger();
if (rtc != null) {
代码示例来源:origin: itesla/ipst
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
if (exportConfig.isExportMainCCOnly() && !EchUtil.isInMainCc(twt, exportConfig.isNoSwitch())) {
continue;
代码示例来源:origin: itesla/ipst
for (TwoWindingsTransformer wt2 : latestNetwork.getTwoWindingsTransformers()) {
if (equipIds != null && !equipIds.contains(wt2.getId())) {
continue;
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
private void writeTwoWindingsTransformerTapChangerTable(TableFormatter formatter) throws IOException {
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
Terminal t2 = twt.getTerminal2();
double vb2 = t2.getVoltageLevel().getNominalV();
double zb2 = vb2 * vb2 / AmplConstants.SB;
RatioTapChanger rtc = twt.getRatioTapChanger();
if (rtc != null) {
String id = twt.getId() + "_ratio_table";
writeRatioTapChanger(formatter, id, zb2, twt.getX(), rtc);
}
PhaseTapChanger ptc = twt.getPhaseTapChanger();
if (ptc != null) {
String id = twt.getId() + "_phase_table";
writePhaseTapChanger(formatter, id, zb2, twt.getX(), ptc);
}
}
}
代码示例来源:origin: itesla/ipst
for (TwoWindingsTransformer twt : Identifiables.sort(network.getTwoWindingsTransformers())) {
代码示例来源:origin: itesla/ipst
private void createTransformers(EsgNetwork esgNetwork, EsgGeneralParameters parameters) {
Set<String> additionalBanksIds = new HashSet<>();
for (TwoWindingsTransformer twt : Identifiables.sort(network.getTwoWindingsTransformers())) {
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
private static void fillTwoWindingsTransformers(StringToIntMapper<AmplSubset> mapper, Network network) {
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
mapper.newInt(AmplSubset.BRANCH, twt.getId());
if (twt.getRatioTapChanger() != null) {
mapper.newInt(AmplSubset.TAP_CHANGER_TABLE, twt.getId() + "_ratio_table");
mapper.newInt(AmplSubset.RATIO_TAP_CHANGER, twt.getId());
}
if (twt.getPhaseTapChanger() != null) {
mapper.newInt(AmplSubset.TAP_CHANGER_TABLE, twt.getId() + "_phase_table");
mapper.newInt(AmplSubset.PHASE_TAP_CHANGER, twt.getId());
}
// limits
if (twt.getCurrentLimits1() != null) {
createLimitsIds(mapper, twt.getCurrentLimits1(), twt.getId(), "_1_");
}
if (twt.getCurrentLimits2() != null) {
createLimitsIds(mapper, twt.getCurrentLimits2(), twt.getId(), "_2_");
}
}
}
代码示例来源:origin: itesla/ipst
trafosList = Identifiables.sort(_network.getTwoWindingsTransformers());
exportTransformers(writerMo, modContext, modelicaModelsList, modelicaSim);
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
new Column(config.getActionType().getLabel()),
new Column("id"))) {
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
PhaseTapChanger ptc = twt.getPhaseTapChanger();
if (ptc != null) {
代码示例来源:origin: itesla/ipst
for (TwoWindingsTransformer t : network.getTwoWindingsTransformers()) {
if (t.getPhaseTapChanger() == null // no TD
&& t.getRatioTapChanger() != null
代码示例来源:origin: itesla/ipst
private static void extractTfo2WData(Network network, NetworkData networkData) {
for (TwoWindingsTransformer tfo : network.getTwoWindingsTransformers()) {
networkData.addTfo2WData(new Tfo2WData(tfo.getId(),
(tfo.getTerminal1().getBusBreakerView().getBus() != null)
? tfo.getTerminal1().getBusBreakerView().getBus().getId()
: tfo.getTerminal1().getBusBreakerView().getConnectableBus().getId(),
(tfo.getTerminal2().getBusBreakerView().getBus() != null)
? tfo.getTerminal2().getBusBreakerView().getBus().getId()
: tfo.getTerminal2().getBusBreakerView().getConnectableBus().getId(),
apparentPower(tfo.getTerminal1()),
apparentPower(tfo.getTerminal2()),
tfo.getTerminal1().getVoltageLevel().getNominalV(),
tfo.getTerminal2().getVoltageLevel().getNominalV(),
(tfo.getCurrentLimits1() != null) ? tfo.getCurrentLimits1().getPermanentLimit() : Float.NaN,
(tfo.getCurrentLimits2() != null) ? tfo.getCurrentLimits2().getPermanentLimit() : Float.NaN,
isRegulating(tfo),
correntStepPosition(tfo))
);
}
}
代码示例来源:origin: com.powsybl/powsybl-ampl-converter
private void writeTwoWindingsTransformers(AmplExportContext context, TableFormatter formatter) throws IOException {
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
Terminal t1 = twt.getTerminal1();
Terminal t2 = twt.getTerminal2();
代码示例来源:origin: itesla/ipst
l.getTerminal2().setP(Float.NaN).setQ(Float.NaN);
for (TwoWindingsTransformer twt : network.getTwoWindingsTransformers()) {
twt.getTerminal1().setP(Float.NaN).setQ(Float.NaN);
twt.getTerminal2().setP(Float.NaN).setQ(Float.NaN);
代码示例来源:origin: com.powsybl/powsybl-cgmes-conversion
for (TwoWindingsTransformer t : n.getTwoWindingsTransformers()) {
PropertyBag p = new PropertyBag(SV_TAPSTEP_PROPERTIES);
内容来源于网络,如有侵权,请联系作者删除!