EvtShc attributesPowerFactory Short-Circuit Event

Every attribute of the PowerFactory Short-Circuit Event (EvtShc): 28 event parameters, with units and meaning. Copy a name into GetAttribute or SetAttribute.

What EvtShc is

A short-circuit event: it applies (or clears) a fault on a terminal or a line at a set time of an RMS or EMT simulation.

Class
EvtShc, event class
PowerFactory name
Short-Circuit Event
Attributes
28 event parameters

Most used EvtShc attributes

AttributeUnitDescriptionWhere
p_target·Objectthe terminal or lineevent data
timesExecution time (absolute)when, in secondsevent data
i_shc·Fault Typefault typeevent data
R_fOhmResistanceevent data
X_fOhmReactanceevent data
i_clearShc·Clear Short-Circuitevent data
outserv·Out of Serviceevent data

Read and write EvtShc 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
bus = app.GetCalcRelevantObjects("*.ElmTerm")[0]
ev = events.CreateObject("EvtShc", "My short-circuit event")
ev.SetAttribute("p_target", bus)
app.SetAttributeModeInternal(1)               # write the time in seconds, whatever unit the project shows
ev.SetAttribute("time", 1.0)
app.SetAttributeModeInternal(0)
ev.SetAttribute("i_shc", 0)                   # 0 three-phase, 1 two-phase, 2 single-phase to ground, 3 two-phase to ground, 4 clears the fault
  • 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.

EvtShc 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)
i_shc·Fault Type
i_p2psc·Phases
i_pspgf·Phase
i_p2pgf·Phases
ZfaultInp·Input
i_clearShc·Clear Short-Circuit
timesExecution time (absolute)
R_fOhmResistance
X_fOhmReactance
L_fmHInductance
shcLocation%Fault Location
tDateTime·Execution Time
p_target·Object
p_from·Event defined byObject: Elm*
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)
Z_fOhmImpedance
ang_fdegAngle
X2R_f·X/R ratio
R2X_f·R/X ratio
effectedLne·Affected lineObject: ElmLne

Related

← EvtParam Parameter Event · EvtSwitch Switch Event →