PowerFactory attribute reference
Every attribute name you can pass to GetAttribute and SetAttribute in DIgSILENT PowerFactory 2024, with units and meaning: 54 element classes, 11 types and 8 simulation events, 41,231 names in all.
The attribute names people look up most
| You want | Attribute | Unit | Class | After |
|---|---|---|---|---|
| Loading of a line or transformer | c:loading | % | ElmLne, ElmTr2, ElmTr3, ElmSym | Load flow |
| Busbar voltage, per unit | m:u | p.u. | ElmTerm | Load flow |
| Busbar voltage, line-line | m:Ul | kV | ElmTerm | Load flow |
| Voltage angle | m:phiu | deg | ElmTerm | Load flow |
| Active power at a line end | m:P:bus1 | MW | ElmLne (ElmTr2: m:P:bushv, m:P:buslv) | Load flow |
| Reactive power at a line end | m:Q:bus1 | Mvar | ElmLne, ElmSym, ElmLod... | Load flow |
| Current at a line end | m:I:bus1 | kA | ElmLne | Load flow |
| Losses | c:Ploss | MW | ElmLne, ElmTr2 | Load flow |
| Generator dispatch (input) | pgini | MW | ElmSym, ElmGenstat (ElmPvsys in kW) | Input data |
| Load demand (input) | plini, qlini | MW, Mvar | ElmLod | Input data |
| Out of service | outserv | 1 or 0 | every element | Input data |
| Breaker open or closed | on_off | 1 closed, 0 open | ElmCoup | Input data |
| Tap position | nntap | · | ElmTr2 | Input data |
| Line length | dline | km | ElmLne | Input data |
| Initial short-circuit current | m:Ikss | kA | ElmTerm | Short circuit |
| Initial short-circuit power | m:Skss | MVA | ElmTerm | Short circuit |
| Peak short-circuit current | m:ip | kA | ElmTerm | Short circuit |
| Frequency | m:fehz | Hz | ElmTerm | RMS simulation |
| Rotor angle | c:firel | deg | ElmSym | RMS simulation |
| Speed | s:speed | p.u. | ElmSym | RMS simulation |
Results (m:, c:, n:) exist only after the calculation named in the last column has run in the active study case.
What the prefix of an attribute name means
e:- Input parameter: the data of the element. Optional when you type it:
GetAttribute("dline")andGetAttribute("e:dline")are the same. m:- Currents, voltages and powers. On a branch it names the terminal:
m:P:bus1,m:P:bushv. Without it,m:Pon a line raisesAttributeError. c:- Calculation parameter: a result worked out from the others, such as
c:loadingandc:Ploss. n:- Bus result: the result of the terminal at one end of a branch, such as
n:u:bus1. s:- Signal: a state or model variable of an RMS or EMT simulation, such as
s:speed. b:- Basic data: values derived from the input data (read only).
t:- Type parameter read through the element:
line.GetAttribute("t:uline")is the rated voltage of the line's type. :A :B :C- Per phase, in an unbalanced calculation only:
m:u:A,m:I:bus1:A(capitals;:araisesAttributeError).
Each rule above was checked on the PowerFactory 2024 engine. A name a class does not have raises AttributeError.
Read and write any attribute
import powerfactory
app = powerfactory.GetApplication() # inside PowerFactory; GetApplicationExt() from your own Python
app.GetFromStudyCase("ComLdf").Execute() # results need a calculation first
for line in app.GetCalcRelevantObjects("*.ElmLne"):
print(line.loc_name, line.GetAttribute("c:loading"), line.GetAttribute("m:P:bus1"))
for bus in app.GetCalcRelevantObjects("*.ElmTerm"):
print(bus.loc_name, bus.GetAttribute("m:u"))
load = app.GetCalcRelevantObjects("*.ElmLod")[0]
load.SetAttribute("plini", 140.0) # input data: the next load flow uses it
New to the API? Start with the PowerFactory Python API guide, or see every study you can automate.
Lines, cables and transformers
ElmBranchBranch · 858 attributesElmCabsysCable System · 195 attributesElmLneLine · 1363 attributesElmLnesecLine Sub-Section · 112 attributesElmSindSeries Reactor · 936 attributesElmTowLine Couplings · 215 attributesElmTr22-Winding Transformer · 1330 attributesElmTr33-Winding Transformer · 1474 attributesElmTr44-Winding Transformer · 1459 attributesElmTrbBooster Transformer · 925 attributesElmTrmultMulti-Winding Transformer · 1013 attributesElmVoltregStep-Voltage Regulator · 1017 attributesElmZpuCommon Impedance · 961 attributes
Terminals and switching
Generators and sources
ElmAsmAsynchronous Machine · 1609 attributesElmAsmscDoubly-Fed Induction Machine · 1154 attributesElmDcuDC Voltage Source · 778 attributesElmGenstatStatic Generator · 1279 attributesElmIacAC Current Source · 893 attributesElmPvsysPV System · 1298 attributesElmSymSynchronous Machine · 1594 attributesElmVacAC Voltage Source · 964 attributesElmXnetExternal Grid · 1264 attributes
Loads and compensation
Power electronics and HVDC
Dynamic models, control and protection
Grids, areas and other groupings
ElmAreaArea · 328 attributesElmBboneBackbone · 10 attributesElmBmuVirtual Power Plant · 133 attributesElmBoundaryBoundary · 95 attributesElmFeederFeeder · 265 attributesElmNetGrid · 365 attributesElmSubstatSubstation · 99 attributesElmTrfstatSecondary Substation · 121 attributesElmZoneZone · 330 attributes
Results and measurement data
Types (shared equipment data)
TypAsmAsynchronous Machine Type - old · 60 attributesTypGeoTower Geometry Type · 19 attributesTypLneLine Type · 76 attributesTypLodGeneral Load Type · 48 attributesTypLodlvLV Load Type · 26 attributesTypSwitchSwitch Type · 48 attributesTypSymSynchronous Machine Type · 148 attributesTypTowTower Type · 51 attributesTypTr22-Winding Transformer Type · 155 attributesTypTr33-Winding Transformer Type · 214 attributesTypTr44-Winding Transformer Type · 409 attributes
Simulation events
EvtGenDispatch Event · 16 attributesEvtLodLoad Event · 26 attributesEvtOutageOutage Event · 14 attributesEvtParamParameter Event · 17 attributesEvtShcShort-Circuit Event · 28 attributesEvtSwitchSwitch Event · 32 attributesEvtSymSynchronous Machine Event · 16 attributesEvtTapTap Event · 16 attributes