ElmComp attributesPowerFactory Composite Model

Every attribute of the PowerFactory Composite Model (ElmComp): 13 input parameters, with units and meaning. Copy a name into GetAttribute or SetAttribute.

What ElmComp is

A composite model: the frame that wires DSL models, measurement devices and network elements together into one plant model.

Class
ElmComp, element class
PowerFactory name
Composite Model
Attributes
13 input parameters

Read and write ElmComp in Python

import powerfactory

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

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

obj = app.GetCalcRelevantObjects("*.ElmComp")[0]
obj.SetAttribute("outserv", 1)                # switch the plant model off
  • An input parameter is read and written with or without its e: prefix: GetAttribute("outserv") and GetAttribute("e:outserv") give the same value.

ElmComp 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
outserv·Out of Service
appr_status·Status
appr_modif·Modified
desc·Description
typ_id·FrameObject: BlkDef,BlkFrame
pblk·SlotsObject: BlkSlot
pelm·Net ElementsObject: Elm*,Sta*,IntRef,IntVecobj
contents·Contents

Related

← ElmVscmono PWM Converter/1 DC-Connection · ElmDsl DSL Model →