ElmMdl attributesPowerFactory Modelica Model

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

What ElmMdl is

A Modelica model: a dynamic model written in Modelica and used in RMS and EMT simulations.

Class
ElmMdl, element class
PowerFactory name
Modelica Model
Attributes
36 input parameters

Read and write ElmMdl in Python

import powerfactory

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

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

obj = app.GetCalcRelevantObjects("*.ElmMdl")[0]
obj.SetAttribute("outserv", 1)                # switch the 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.

ElmMdl 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
iAstabint·A-stable integration algorithm (only for RMS Simulation)
clockSampling·Sampling options
outputsDelayed·Additional delay of outputs by one sampling period
fmuType·FMU Type
fmuCsSampling·Sampling options
fmuCSOutputsDelayed·Additional delay of outputs by one sampling period
clockPeriodsSampling period
clockRateHzSampling rate
fmuCsPeriodsSampling period
fmuCsRateHzSampling rate
appr_modif·Modified
desc·Description
typ_id·TypeObject: TypMdl*
arrayObject·Array/MatrixObject: IntMat
configScript·Configuration Script
parameterNames·Parameter Names
attrname·Name
attrvalue·Value
cattrDesc·Description
cattrUnit·Unit
carrayDesc·Description
carrayUnit·Unit
cMin·Min
cMax·Max
carrayName·Name
cfmuType·FMU Type
cdefaultPeriod·Default sampling period
cdefaultRate·Default sampling rate
cmodelInformation·Model Information

Related

← ElmDsl DSL Model · ElmRelay Relay →