ElmSubstat attributesPowerFactory Substation
Every attribute of the PowerFactory Substation (ElmSubstat): 42 input parameters and 57 result variables, with units and meaning. Copy a name into GetAttribute or SetAttribute.
What ElmSubstat is
A substation: the container for the busbars, breakers and bays of one site.
- Class
ElmSubstat, element class- PowerFactory name
- Substation
- Attributes
- 42 input parameters and 57 result variables, in 3 calculations
Read and write ElmSubstat in Python
import powerfactory
app = powerfactory.GetApplication() # GetApplicationExt() from outside PowerFactory
for obj in app.GetCalcRelevantObjects("*.ElmSubstat"):
print(obj.loc_name, obj.GetAttribute("loc_name")) # Name
obj = app.GetCalcRelevantObjects("*.ElmSubstat")[0]
obj.SetAttribute("loc_name", "Substation A") # rename the substation
- An input parameter is read and written with or without its
e:prefix:GetAttribute("outserv")andGetAttribute("e:outserv")give the same value.
ElmSubstat input parameters
The element data, as typed in GetAttribute and SetAttribute (the e: prefix is optional). Setting one changes the model.
| Attribute | Unit | Description |
|---|---|---|
loc_name | · | Name |
chr_name | · | Characteristic Name |
for_name | · | Foreign Key |
dat_src | · | Data source |
appr_modby | · | Modified by |
sShort | · | Short Name |
sType | · | Type |
Electrodes | · | Electrode configuration |
appr_status | · | Status |
icolor | · | Colour |
constr | · | Year of Construction |
iBoxed | · | Enclosure |
DcBoxType | · | Enclosure type |
GPSlat | deg | Latitude / Northing |
GPSlon | deg | Longitude / Easting |
AccessTime | min | First manual switch action after the fault |
LocAccTime | min | After a switch action in another substation |
CondGap | mm | Conductor gap |
Xfactor | · | Distance factor |
WorkDist | mm | Working distance |
BoxWidth | mm | Width |
BoxHeight | mm | Height |
BoxDepth | mm | Depth |
arcLength | mm | Arc length |
nFactor | · | Statistical correction |
appr_modif | · | Modified |
desc | · | Description |
cimRdfId | · | RDF ID |
pRA | · | Running ArrangementObject: IntRunarrange |
pSwSc | · | Active RulesObject: IntSwitching |
pOwner | · | Default OwnerObject: ElmOwner |
pOperator | · | Default OperatorObject: ElmOperator |
pDiagram | · | DiagramObject: IntGrfnet |
stoLoad | · | Distribution CurveObject: IntDistribution |
contents | · | Contents |
cpMeteostat | · | Meteo. StationObject: ElmMeteostat |
isRaActive | · | Running arrangement active |
cUnom | kV | Nominal Voltage |
cpZone | · | Default ZoneObject: ElmZone |
cpArea | · | Default AreaObject: ElmArea |
logf_freq | 1/a | Loss of grid frequency |
logf_year | a | Time period between loss of grid events |
ElmSubstat load flow results
Read after ComLdf with GetAttribute. c: calculation parameter.
| Attribute | Unit | Description |
|---|---|---|
c:Ptotgen | MW | Total Generation, Active Power |
c:Qtotgen | Mvar | Total Generation, Reactive Power |
c:Ptotcons | MW | Total Consumption, Active Power |
c:Qtotcons | Mvar | Total Consumption, Reactive Power |
c:Pgen | MW | Generators, Active Power |
c:Qgen | Mvar | Generators, Reactive Power |
c:Sgen | MVA | Generators, Apparent Power |
c:cosgen | · | Generators, Power Factor |
c:Pmot | MW | Motor Loads, Active Power |
c:Qmot | Mvar | Motor Loads, Reactive Power |
c:Smot | MVA | Motor Loads, Apparent Power |
c:cosmot | · | Motor Loads, Power Factor |
c:Pload | MW | Loads, Active Power |
c:Qload | Mvar | Loads, Reactive Power |
c:Sload | MVA | Loads, Apparent Power |
c:cosload | · | Loads, Power Factor |
c:Qcomp | Mvar | Compensation, C |
c:Qcompr | Mvar | Compensation, L |
c:Pnet | MW | External Networks, Active Power |
c:Qnet | Mvar | External Networks, Reactive Power |
c:Snet | MVA | External Networks, Apparent Power |
c:cosnet | · | External Networks, Power Factor |
c:umax | p.u. | Maximum Voltage |
c:umin | p.u. | Minimum Voltage |
c:equiAreas | · | Number of equipotential areas |
ElmSubstat dc load flow results
Read after ComLdf (DC) with GetAttribute. c: calculation parameter.
| Attribute | Unit | Description |
|---|---|---|
c:Ptotgen | MW | Total Generation, Active Power |
c:Ptotcons | MW | Total Consumption, Active Power |
c:Pgen | MW | Generators, Active Power |
c:Pmot | MW | Motor Loads, Active Power |
c:Pload | MW | Loads, Active Power |
c:Pnet | MW | External Networks, Active Power |
c:equiAreas | · | Number of equipotential areas |
ElmSubstat optimal power flow results
Read after ComOpf with GetAttribute. c: calculation parameter.
| Attribute | Unit | Description |
|---|---|---|
c:Ptotgen | MW | Total Generation, Active Power |
c:Qtotgen | Mvar | Total Generation, Reactive Power |
c:Ptotcons | MW | Total Consumption, Active Power |
c:Qtotcons | Mvar | Total Consumption, Reactive Power |
c:Pgen | MW | Generators, Active Power |
c:Qgen | Mvar | Generators, Reactive Power |
c:Sgen | MVA | Generators, Apparent Power |
c:cosgen | · | Generators, Power Factor |
c:Pmot | MW | Motor Loads, Active Power |
c:Qmot | Mvar | Motor Loads, Reactive Power |
c:Smot | MVA | Motor Loads, Apparent Power |
c:cosmot | · | Motor Loads, Power Factor |
c:Pload | MW | Loads, Active Power |
c:Qload | Mvar | Loads, Reactive Power |
c:Sload | MVA | Loads, Apparent Power |
c:cosload | · | Loads, Power Factor |
c:Qcomp | Mvar | Compensation, C |
c:Qcompr | Mvar | Compensation, L |
c:Pnet | MW | External Networks, Active Power |
c:Qnet | Mvar | External Networks, Reactive Power |
c:Snet | MVA | External Networks, Apparent Power |
c:cosnet | · | External Networks, Power Factor |
c:umax | p.u. | Maximum Voltage |
c:umin | p.u. | Minimum Voltage |
c:equiAreas | · | Number of equipotential areas |
ElmSubstat basic data
b: values are worked out from the input data. Read them; they are not set.
| Attribute | Unit | Description |
|---|---|---|
b:loc_name | · | Name |