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") and GetAttribute("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.

AttributeUnitDescription
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
GPSlatdegLatitude / Northing
GPSlondegLongitude / Easting
AccessTimeminFirst manual switch action after the fault
LocAccTimeminAfter a switch action in another substation
CondGapmmConductor gap
Xfactor·Distance factor
WorkDistmmWorking distance
BoxWidthmmWidth
BoxHeightmmHeight
BoxDepthmmDepth
arcLengthmmArc 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
cUnomkVNominal Voltage
cpZone·Default ZoneObject: ElmZone
cpArea·Default AreaObject: ElmArea
logf_freq1/aLoss of grid frequency
logf_yearaTime period between loss of grid events

ElmSubstat load flow results

Read after ComLdf with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:PtotgenMWTotal Generation, Active Power
c:QtotgenMvarTotal Generation, Reactive Power
c:PtotconsMWTotal Consumption, Active Power
c:QtotconsMvarTotal Consumption, Reactive Power
c:PgenMWGenerators, Active Power
c:QgenMvarGenerators, Reactive Power
c:SgenMVAGenerators, Apparent Power
c:cosgen·Generators, Power Factor
c:PmotMWMotor Loads, Active Power
c:QmotMvarMotor Loads, Reactive Power
c:SmotMVAMotor Loads, Apparent Power
c:cosmot·Motor Loads, Power Factor
c:PloadMWLoads, Active Power
c:QloadMvarLoads, Reactive Power
c:SloadMVALoads, Apparent Power
c:cosload·Loads, Power Factor
c:QcompMvarCompensation, C
c:QcomprMvarCompensation, L
c:PnetMWExternal Networks, Active Power
c:QnetMvarExternal Networks, Reactive Power
c:SnetMVAExternal Networks, Apparent Power
c:cosnet·External Networks, Power Factor
c:umaxp.u.Maximum Voltage
c:uminp.u.Minimum Voltage
c:equiAreas·Number of equipotential areas

ElmSubstat dc load flow results

Read after ComLdf (DC) with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:PtotgenMWTotal Generation, Active Power
c:PtotconsMWTotal Consumption, Active Power
c:PgenMWGenerators, Active Power
c:PmotMWMotor Loads, Active Power
c:PloadMWLoads, Active Power
c:PnetMWExternal Networks, Active Power
c:equiAreas·Number of equipotential areas

ElmSubstat optimal power flow results

Read after ComOpf with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:PtotgenMWTotal Generation, Active Power
c:QtotgenMvarTotal Generation, Reactive Power
c:PtotconsMWTotal Consumption, Active Power
c:QtotconsMvarTotal Consumption, Reactive Power
c:PgenMWGenerators, Active Power
c:QgenMvarGenerators, Reactive Power
c:SgenMVAGenerators, Apparent Power
c:cosgen·Generators, Power Factor
c:PmotMWMotor Loads, Active Power
c:QmotMvarMotor Loads, Reactive Power
c:SmotMVAMotor Loads, Apparent Power
c:cosmot·Motor Loads, Power Factor
c:PloadMWLoads, Active Power
c:QloadMvarLoads, Reactive Power
c:SloadMVALoads, Apparent Power
c:cosload·Loads, Power Factor
c:QcompMvarCompensation, C
c:QcomprMvarCompensation, L
c:PnetMWExternal Networks, Active Power
c:QnetMvarExternal Networks, Reactive Power
c:SnetMVAExternal Networks, Apparent Power
c:cosnet·External Networks, Power Factor
c:umaxp.u.Maximum Voltage
c:uminp.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.

AttributeUnitDescription
b:loc_name·Name

Related

← ElmNet Grid · ElmTrfstat Secondary Substation →