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
| Attribute | Unit | Description | Where |
|---|---|---|---|
p_target | · | Load | event data |
time | s | Execution time (absolute) | event data |
iopt_type | · | Event of Load | event data |
dP | % | Active Powerchange of P, % | event data |
dQ | % | Reactive Power | event 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 secondEvtShcwithi_shc4:i_clearShcdoes 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.
| Attribute | Unit | Description |
|---|---|---|
outserv | · | Out of Service |
mtime | min | Execution time (absolute, in minutes) |
hrtime | h | Execution time (absolute, in hours) |
opt_evt | · | Type of Event |
iopt_src | · | Source |
iopt_type | · | Event of Load |
iopt_load | · | Event for |
iStage | · | Stage |
time | s | Execution time (absolute) |
dP | % | Active Power |
dQ | % | Reactive Power |
newP | %Pnom. | Active Power |
newQ | %Qnom. | Reactive Power |
t_ramp | s | Ramp Duration |
tDateTime | · | Execution Time |
p_target | · | LoadObject: ElmLod*,SetSelect |
p_from | · | Event defined byObject: Elm* |
contents | · | Loads |
dtime | s | Execution time (relative to now) |
tact | s | Now (current simulation time) |
dmtime | min | Execution time (relative to now, in minutes) |
mtact | min | Now (current simulation time, in minutes) |
dhrtime | h | Execution time (relative to now, in hours) |
hrtact | h | Now (current simulation time, in hours) |
cAbsP | MW | Active Power |
cAbsQ | Mvar | Reactive Power |