ElmRelay attributesPowerFactory Relay

Every attribute of the PowerFactory Relay (ElmRelay): 47 input parameters and 11 result variables, with units and meaning. Copy a name into GetAttribute or SetAttribute.

What ElmRelay is

A relay: a protection device built from measurement, timer and logic blocks, which trips breakers in a simulation or a protection study.

Class
ElmRelay, element class
PowerFactory name
Relay
Attributes
47 input parameters and 11 result variables, in 5 calculations

Read and write ElmRelay in Python

import powerfactory

app = powerfactory.GetApplication()          # GetApplicationExt() from outside PowerFactory

for obj in app.GetCalcRelevantObjects("*.ElmRelay"):
    print(obj.loc_name, obj.GetAttribute("loc_name")) # Name

obj = app.GetCalcRelevantObjects("*.ElmRelay")[0]
obj.SetAttribute("outserv", 1)                # switch the relay off
  • An input parameter is read and written with or without its e: prefix: GetAttribute("outserv") and GetAttribute("e:outserv") give the same value.
  • RMS and EMT variables change over time: record them in a results object (ElmRes) to read the whole curve. GetAttribute after a run gives the value at the last time step.

ElmRelay 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
sernum·Serial Number
commissionDate·Commissioning Date
appr_modby·Modified by
outserv·Out of Service
constr·Year of Construction
appr_status·Status
dev_no·Device Number
application·Application
phfaultminikAMin. phase fault current
phfaultmaxikAMax. phase fault current
efaultminikAMin. earth fault current
efaultmaxikAMax. earth fault current
appr_modif·Modified
desc·Description
fold_id·In Folder
typ_id·Relay TypeObject: TypRelay
doc_id·Additional Data
pOwner·OwnerObject: ElmOwner
pOperator·OperatorObject: ElmOperator
pReference·ReferenceObject: ElmTerm,StaCubic
contents·Contents
cpHeadFold·Head Folder
cpGrid·GridObject: ElmNet
cpSite·SiteObject: ElmSite
cpSubstat·SubstationObject: ElmSubstat,ElmTrfstat
cDisplayName·Display Name
pdiselm·Net ElementsObject: Rel*,Elm*,Sta*,IntRef
cn_bus·BusbarObject: ElmTerm
cbranch·BranchObject: Elm*,RelFuse,StaSua*
cctprimACT Primary
cctsecACT Secondary
cvtprimVVT Primary
cvtsecVVT Secondary
cpCt·Current TransformerObject: StaCt*,StaCombi
cpVt·Voltage TransformerObject: StaVt*,StaCombi
ccategory·Main function
ccat_curr·Overcurrent
ccat_dist·Distance
ccat_diff·Differential
ccat_volt·Voltage
ccat_freq·Frequency
ccat_dir·Directional
cpShc·Short-circuit command

ElmRelay load flow results

Read after ComLdf with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:youtsTripping Time
c:ImaxkAMaximum Current

ElmRelay short-circuit results

Read after ComShc with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:youtsTripping Time
c:ImaxkAMaximum Current

ElmRelay rms simulation results

Read after ComInc (RMS) with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:yout·Tripping
c:TtripsTripping Time

ElmRelay emt simulation results

Read after ComInc (EMT) with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:yout·Tripping
c:TtripsTripping Time
c:fnomHzNominal Frequency

Read after ComMod with GetAttribute. c: calculation parameter.

AttributeUnitDescription
c:yout·Tripping
c:TtripsTripping Time

ElmRelay basic data

b: values are worked out from the input data. Read them; they are not set.

AttributeUnitDescription
b:Inomsec.ANominal Current
b:Unomsec.VNominal Voltage
b:loc_name·Name

Related

← ElmMdl Modelica Model · ElmSecctrl Power-Frequency Controller →