EvtLod attributesPowerFactory Load Event

Every attribute of the PowerFactory Load Event (EvtLod): 26 event parameters, with units and meaning. Copy a name into GetAttribute or SetAttribute.

What EvtLod is

A load event: it steps or ramps the active and reactive power of a load, in percent, at a set time of a simulation.

Class
EvtLod, event class
PowerFactory name
Load Event
Attributes
26 event parameters

Most used EvtLod attributes

AttributeUnitDescriptionWhere
p_target·Loadevent data
timesExecution time (absolute)event data
iopt_type·Event of Loadevent data
dP%Active Powerchange of P, %event data
dQ%Reactive Powerevent data

Read and write EvtLod in Python

import powerfactory

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

inc = app.GetFromStudyCase("ComInc")
events = inc.GetAttribute("p_event")          # the event list the simulation reads
load = app.GetCalcRelevantObjects("*.ElmLod")[0]
ev = events.CreateObject("EvtLod", "My load event")
ev.SetAttribute("p_target", load)
app.SetAttributeModeInternal(1)               # write the time in seconds, whatever unit the project shows
ev.SetAttribute("time", 1.0)
app.SetAttributeModeInternal(0)
ev.SetAttribute("dP", 10)                     # active power step, %
ev.SetAttribute("dQ", 10)                     # reactive power step, %
  • Times are written in the unit the project shows (some show milliseconds); SetAttributeModeInternal(1) makes it seconds. A fault is cleared by a second EvtShc with i_shc 4: i_clearShc does not clear it in an RMS or EMT run.

EvtLod event parameters

Set these on the event before the simulation runs. Names are typed without the e: shown in variable lists.

AttributeUnitDescription
outserv·Out of Service
mtimeminExecution time (absolute, in minutes)
hrtimehExecution time (absolute, in hours)
opt_evt·Type of Event
iopt_src·Source
iopt_type·Event of Load
iopt_load·Event for
iStage·Stage
timesExecution time (absolute)
dP%Active Power
dQ%Reactive Power
newP%Pnom.Active Power
newQ%Qnom.Reactive Power
t_rampsRamp Duration
tDateTime·Execution Time
p_target·LoadObject: ElmLod*,SetSelect
p_from·Event defined byObject: Elm*
contents·Loads
dtimesExecution time (relative to now)
tactsNow (current simulation time)
dmtimeminExecution time (relative to now, in minutes)
mtactminNow (current simulation time, in minutes)
dhrtimehExecution time (relative to now, in hours)
hrtacthNow (current simulation time, in hours)
cAbsPMWActive Power
cAbsQMvarReactive Power

Related

← EvtGen Dispatch Event · EvtOutage Outage Event →