ElmRes attributesPowerFactory Results
Every attribute of the PowerFactory Results (ElmRes): 59 input parameters and 9 result variables, with units and meaning. Copy a name into GetAttribute or SetAttribute.
What ElmRes is
A results object: it stores the variables recorded during a calculation or simulation (chosen with IntMon objects), one column per variable and one row per time step or case.
- Class
ElmRes, element class- PowerFactory name
- Results
- Attributes
- 59 input parameters and 9 result variables, in 3 calculations
Read and write ElmRes in Python
import powerfactory
app = powerfactory.GetApplication() # GetApplicationExt() from outside PowerFactory
case = app.GetActiveStudyCase() # a study case with a simulation set up
inc, sim = app.GetFromStudyCase("ComInc"), app.GetFromStudyCase("ComSim")
bus = app.GetCalcRelevantObjects("*.ElmTerm")[0]
res = case.CreateObject("ElmRes", "My results") # a results object of your own
res.AddVariable(bus, "m:fehz") # what to record: the busbar frequency
inc.SetAttribute("p_resvar", res) # the simulation writes to it
inc.Execute()
sim.Execute()
res.Load()
col = res.FindColumn(bus, "m:fehz") # -1 when it was not recorded
rows = range(res.GetNumberOfRows())
t = [res.GetValue(row, -1)[1] for row in rows] # column -1 is the time, s
f = [res.GetValue(row, col)[1] for row in rows]
res.Release()
- An input parameter is read and written with or without its
e:prefix:GetAttribute("outserv")andGetAttribute("e:outserv")give the same value. - RMS and EMT variables change over time: record them in a results object (
ElmRes) to read the whole curve.GetAttributeafter a run gives the value at the last time step.
- Input parameters59
- RMS simulation results3
- EMT simulation results3
- Modal analysis results3
- Basic data232
ElmRes input parameters
The element data, as typed in GetAttribute and SetAttribute (the e: prefix is optional). Setting one changes the model.
| Attribute | Unit | Description |
|---|---|---|
loc_name | ยท | Name |
FileType | ยท | File type |
calTp | ยท | Default for |
calTpSub | ยท | Method |
calTpTop | ยท | Usage |
cab_meth | ยท | Method |
host_meth | ยท | Method |
df_meth | ยท | Method |
powpark_meth | ยท | Method |
powpark_sub | ยท | Sub-result |
dbCalculationRunId | ยท | Calculation Run |
trg_pre | s | Pre- |
trg_post | s | Post- |
trg_pmax | s | Max. |
monitorStep | s | Sample period |
cnttime | ยท | Study time |
desc | ยท | Description |
cases | ยท | Cases |
header | ยท | Headlines |
dbOdbcSettings | ยท | Database settingsObject: SetDatabase |
cFilename | ยท | File name |
cnumcont | ยท | Number of contingencies |
ctimeph | ยท | Number of time phases |
ctricnt | ยท | Points of time |
cnumrow | ยท | Number of rows |
ctotrow | ยท | Total number of rows |
cnumHmOd | ยท | Number of Harmonic Orders |
cnumCase | ยท | Number of cases |
cnumFrq | ยท | Number of frequencies |
cnumEigen | ยท | Number of eigenvalues |
cnumFFT | ยท | Number of harmonic orders |
fileSize | ยท | File size |
cnumfiles | ยท | Number of result files |
csteps | ยท | Average step size |
cFFTstep | ยท | Step size |
avgStep | ยท | Average step size |
unit | ยท | Unit |
cLdfMethod | ยท | Load Flow method |
cPosStep | ยท | Average position step size |
cvars | ยท | Number of variables |
cFlowNum | ยท | Number of flowgates |
cOpScenNum | ยท | Number of operation scenarios |
cAllRegNum | ยท | Number of transactions |
calTpSwp | ยท | Method |
calTpShc | ยท | Fault Type |
calTpSto | ยท | Method |
calTpStoCom | ยท | Command |
calTpStoLdfMethod | ยท | Load Flow method |
calTpHrmMethod | ยท | Load Flow method |
calTpFlowDecomp | ยท | Method |
calTpStoOpfMethod | ยท | Optimisation method |
calTpStoSimMethod | ยท | Simulation type |
cContingency | ยท | Contingency |
cFnom | Hz | Nominal Frequency |
cOrigCurve | ยท | Analysed curve |
cStudyBus | ยท | Study Bus |
cActivePower | ยท | Active Power |
calTpCoord | ยท | Usage |
monitorFreq | Hz | Frequency |
ElmRes rms simulation results
Read after ComInc (RMS) with GetAttribute. c: calculation parameter, s: signal (state or model variable).
| Attribute | Unit | Description |
|---|---|---|
c:ready | ยท | Ready-Signal |
c:monitorFreq | Hz | Time between recordings |
s:writeTime | ยท | Write Time |
ElmRes emt simulation results
Read after ComInc (EMT) with GetAttribute. c: calculation parameter, s: signal (state or model variable).
| Attribute | Unit | Description |
|---|---|---|
c:ready | ยท | Ready-Signal |
c:monitorFreq | Hz | Time between recordings |
s:writeTime | ยท | Write Time |
ElmRes modal analysis results
Read after ComMod with GetAttribute. c: calculation parameter, s: signal (state or model variable).
| Attribute | Unit | Description |
|---|---|---|
c:ready | ยท | Ready-Signal |
c:monitorFreq | Hz | Time between recordings |
s:writeTime | ยท | Write Time |
ElmRes basic data
b: values are worked out from the input data. Read them; they are not set.
| Attribute | Unit | Description |
|---|---|---|
b:loc_name | ยท | Name |
b:i_obj | ยท | Object index |
b:violation | ยท | Restoration with violations |
b:nrActions | ยท | Number of switching actions |
b:interruptedPower | MW | Interrupted power |
b:restoredPower | MW | Restored power |
b:interruptedCust | ยท | Interrupted customers |
b:restoredCust | ยท | Restored customers |
b:eigno | ยท | Mode index |
b:eigvalr | 1/s | Mode, Real Part |
b:eigvali | rad/s | Mode, Imaginary Part |
b:sigma | 1/s | Damping |
b:Tp | s | Period |
b:ratio | ยท | Ratio |
b:frequ | Hz | Frequency |
b:index | ยท | Index |
b:feeder | ยท | Total Hosting Feeder(s) |
b:node | ยท | Total Hosting Node(s) |
b:iconn | ยท | Connection type |
b:pmax | MW | Max. hosting power |
b:pmin | MW | Min. hosting power |
b:pavg | MW | Average hosting power |
b:eval | ยท | Evaluation |
b:iter | ยท | Iteration |
b:failedCalc | ยท | Failed calculation |
b:objectiveValue | ยท | Objective function value |
b:iterBestObjective | ยท | Iteration with best objective value |
b:evalBestObjective | ยท | Evaluation with best objective value |
b:bestObjective | ยท | Best objective function value |
b:tnow | s | Time |
b:treal | ยท | Realtime |
b:isOptimalLoc | ยท | Detected as optimal location for a recloser |
b:contrBeforeEns | MWh/a | Contribution to ENS without reclosing functionality |
b:contrAfterEns | MWh/a | Contributions to ENS with reclosing functionality |
b:contrBeforeEic | USD/a | Contribution to EIC without reclosing functionality |
b:contrAfterEic | USD/a | Contributions to EIC with reclosing functionality |
b:contrBeforeSaidi | h/Ca | Contribution to SAIDI without reclosing functionality |
b:contrAfterSaidi | h/Ca | Contributions to SAIDI with reclosing functionality |
b:contrBeforeMaifi | 1/Ca | Contribution to MAIFI without reclosing functionality |
b:contrAfterMaifi | 1/Ca | Contributions to MAIFI with reclosing functionality |
b:calcmethod | ยท | Calculation method |
b:calctype | ยท | Calculation type |
b:calcres | ยท | Calculation result |
b:optemp | degC | Operating temperature |
b:wspeed | m/s | Wind speed |
b:prob | % | Probability |
b:cprob | % | Cumulative probability |
b:currency | ยท | Currency |
b:objid | ยท | Object ID |
b:olobjid | ยท | Overloaded object ID |
b:pnom | MW | Rated power |
b:pinst | MW | Installed power |
b:scaleA | m/s | Scale factor, A |
b:shapeK | ยท | Shape factor, k |
b:vavg | m/s | Average wind speed |
b:qmc | ยท | Quasi-Monte-Carlo |
b:ftariff | USD/kWh | Feed-in tariff |
b:ctariff | USD/kWh | Consumer tariff |
b:Hour | h | Year hour |
b:ucttime | s | Time |
b:cnfLvlUp | % | Confidence interval (upper bound) |
b:cnfLvlLo | % | Confidence interval (lower bound) |
b:sample | ยท | Sample |
b:number | ยท | Number |
b:inoconv | ยท | Load flow did not converge |
b:iShcFail | ยท | Short-Circuit Calculation failed |
b:iShcAtLine | ยท | Short-Circuit at Line |
b:pos | km | Distance |
b:posX | Ohm | Distance |
b:posZ | Ohm | Distance |
b:objIndex | ยท | Object index |
b:sideIndex | ยท | Side |
b:relPos | km | Position on element |
b:numRngDrawsInit | ยท | Number of initial random number generator draws |
b:method | ยท | Calculation method of Probabilistic Analysis |
b:calcAnalysed | ยท | Analysed command type |
b:comMethod | ยท | Calculation method of analysed command |
b:numSamplesExec | ยท | Number of iterations |
b:failures | ยท | Number of failed iterations |
b:numRngDraws | ยท | Number of calls of the random number generator |
b:seed | ยท | Used seed for random number generation |
b:considerCorrelations | ยท | Distribution correlations considered |
b:loadingLimit | ยท | Loading recording limit |
b:minVLimit | ยท | Minimum voltage recording limit |
b:maxVLimit | ยท | Maximum voltage recording limit |
b:maxDropLimit | ยท | Maximum feeder voltage drop recording limit |
b:maxRiseLimit | ยท | Minimum feeder voltage rise recording limit |
b:complyConstraints | ยท | Partial restoration to comply with constraints |
b:calcFail | ยท | Calculation failed. |
b:studyBBvoltage | p.u. | Voltage at study Busbar |
b:totDemand | MW | Active Power of scaled loads |
b:from | ยท | Exchange from |
b:to | ยท | Exchange to |
b:scen | ยท | Active Operation Scenario |
b:calcmod | ยท | Calculation mode |
b:outid | ยท | Contingency Case Index |
b:errbs | ยท | Error for bus equations |
b:errfi | ยท | Error for network model equations |
b:errgrd | ยท | Error for dynamic model equations |
b:errdxs | ยท | Error for A-stable dynamic model equations |
b:errdxi | ยท | Error for network state equations |
b:itrgr | ยท | Number of inner-loop iterations for network model equations |
b:ipjac | ยท | Number of Jacobian matrix updates for network model equations |
b:icjac | ยท | Number of network Jacobian matrix factorisations |
b:icadm | ยท | Number of admittance computations |
b:numNonZerosLU | ยท | Number of entries in factorisation |
b:ibvec | ยท | Number of evaluations for network model equation mismatches |
b:ibchk | ยท | Number of convergence checks for network model equations |
b:itreq | ยท | Number of whole system iterations |
b:itevt | ยท | Number of repeat event loops |
b:itevtmin | ยท | Number of reschedule event loops |
b:itout | ยท | Number of outer-loop iterations for network model equations |
b:itrstgrd | ยท | Number of inner-loop iterations for dynamic model equations |
b:ijgrd | ยท | Number of Jacobian matrix factorisations for dynamic model equations |
b:itoutgrd | ยท | Number of outer-loop iterations for dynamic model equations |
b:ierremt | ยท | Integration error for dynamic model equations (EMT) |
b:ierrgrd | ยท | Integration error for dynamic model equations (GRD) |
b:ierremtadapt | ยท | Integration error for dynamic model equations used for the automatic step size adaptation (EMT) |
b:ierrgrdadapt | ยท | Integration error for dynamic model equations used for the automatic step size adaptation (GRD) |
b:dtemt | ยท | Integration step size for dynamic model equations (EMT) |
b:dtgrd | ยท | Integration step size for dynamic model equations (GRD) |
b:dtint | ยท | Interruption step |
b:dtset | ยท | Default step |
b:warnA | ยท | Number of type-A warnings |
b:warnB | ยท | Number of type-B warnings |
b:warnC | ยท | Number of type-C warnings |
b:ierrthd | ยท | Maximum error in the EMT to RMS transformation during co-simulation |
b:ierrunb | ยท | Maximum unbalance factor during co-simulation |
b:i_eul | ยท | Integration formula restoration index |
b:fnow | Hz | Frequency |
b:ifnow | ยท | Harmonic Order |
b:df | Hz | Frequency step size (harmonics) |
b:ierrhmc | ยท | Prediction error (harmonics) |
b:ierrgnrl | ยท | Prediction error (ComStep) |
b:step | ยท | Step size (ComStep) |
b:dcase | ยท | Case |
b:identObjective | ยท | Objective function value for parameter identification |
b:stepDtact | ยท | Step size |
b:stepDtDefault | ยท | Default step size |
b:stepAlpha | ยท | Damping factor |
b:stepType | ยท | Simulation step type |
b:level | ยท | Level |
b:bbfail | ยท | Busbar failure |
b:tmphase | min | Time Phase |
b:outer | ยท | Number of outer loops |
b:iterTotal | ยท | Total number of (inner) iterations |
b:iter1 | ยท | Number of iterations for outer loop 1 |
b:iter2 | ยท | Number of iterations for outer loop 2 |
b:iter3 | ยท | Number of iterations for outer loop 3 |
b:iter4 | ยท | Number of iterations for outer loop 4 |
b:iter5 | ยท | Number of iterations for outer loop 5 |
b:isLinear | ยท | Calculated using linearised method |
b:isIslanding | ยท | Causes islanding |
b:isBlackout | ยท | Causes blackout |
b:isSubstSplit | ยท | Causes substation split or merge |
b:nrOfLostLoads | ยท | Number of loads lost |
b:nrOfLostGens | ยท | Number of generators lost |
b:lostPLoad | ยท | Load lost in MW |
b:lostPGeneration | ยท | Generation lost in MW |
b:lostQLoad | ยท | Load lost in Mvar |
b:lostQGeneration | ยท | Generation lost in Mvar |
b:asynchOfNextBB | deg | Max. asynchronism of busbars next to the fault |
b:asynchBB1 | ยท | Max. asynchronism - busbar 1 |
b:asynchBB2 | ยท | Max. asynchronism - busbar 2 |
b:nrUnsolvedCnt | ยท | Number of unsolved contingencies |
b:nrProcessedCnt | ยท | Number of processed contingencies |
b:nrInactiveCnt | ยท | Number of inactive contingencies |
b:nrEarthCnt | ยท | Number of contingencies causing grounding |
b:nrCntIslanding | ยท | Number of contingencies causing islanding |
b:nrCntBlackout | ยท | Number of contingencies causing blackouts |
b:nrCntSubSplit | ยท | Number of contingencies causing substation split or merge |
b:nrCntLostLoad | ยท | Number of contingencies causing loss of load |
b:nrCntLostGen | ยท | Number of contingencies causing loss of generation |
b:casenum | ยท | Case |
b:ldfmethod | ยท | Load Flow Calculation |
b:noconv | ยท | Load flow calculation failed. |
b:isCalcSucc | ยท | Calculation successful. |
b:isContUc | ยท | Contingencies considered |
b:isLinearCont | ยท | Linearised contingency analysis method used |
b:calcPeriod | ยท | Time period |
b:stepSize | ยท | Step Size |
b:objective | ยท | Objective Function |
b:isMinVREcurt | ยท | Minimise curtailment of renewable energy sources (VREs) |
b:isMinLoadshed | ยท | Minimise load shedding |
b:isMinNetRemAct | ยท | Minimise network-based remedial actions |
b:isMinStartUpShutDownCosts | ยท | Minimise generator start-up/shut-down costs |
b:isMinOperatingCosts | ยท | Minimise generator operating costs |
b:isMinRedispCosts | ยท | Minimise generator redispatch costs |
b:isCtrlP | ยท | Active power dispatch |
b:isCtrlTap | ยท | Transformer tap positions |
b:isCtrlLdShed | ยท | Load shedding |
b:isCtrlQ | ยท | Reactive power dispatch |
b:isCtrlShunt | ยท | Switchable shunts |
b:isCtrlVRE | ยท | Allow curtailment of variable renewable energy sources (VREs) |
b:isCtrlHvDc | ยท | HVDC active/reactive power controls |
b:isRoundDiscreteCtrls | ยท | Round discrete controls |
b:isLimP | ยท | Active power limits |
b:isLimTap | ยท | Transformer tap limits |
b:isLimLdShed | ยท | Load shedding limits |
b:isLimQ | ยท | Reactive power limits |
b:isLimShunt | ยท | Shunt tap limits |
b:isConstrLoading | ยท | Max. branch flows (max. loading) |
b:isConstrBoundary | ยท | Boundary flow constraints |
b:isConstrVoltage | ยท | Voltage limits of busbars/terminals |
b:isConstrRamp | ยท | Ramp rate constraints |
b:isConstrMinUpDownTime | ยท | Minimum up-/down-times |
b:isConstrSpinReserve | ยท | Spinning reserve of regions |
b:isCheckOptSolution | ยท | Calculate and record load flow results with optimal controls |
b:recordCtrlVarsOpt | ยท | All optimal control variables recorded |
b:recordCnstrVarsOpt | ยท | All constraint results (after optimisation) recorded |
b:recordRedispResPerStep | ยท | Redispatch results per study time additionally recorded |
b:isWriteElmResCont | ยท | Contingency results recorded |
b:recordCnstrVarsOrg | ยท | All constraint results (before optimisation) additionally recorded |
b:isPlanedOutages | ยท | Planned outages |
b:isRollingHorizonAlgo | ยท | Restrict simultaneous optimisation period |
b:numStudyTimesHorizon | ยท | Number of study times |
b:numOverlapHorizon | ยท | Number of overlapping study times with next period |
b:maxAllowedConstrError | % | Max. acceptable error for constraints |
b:minEff_dP | % | Min. Generator effectiveness |
b:minEff_dTap | % | Min. Transformer effectiveness |
b:isFilterPowerConstr | ยท | Constraint filter for power flow constraints |
b:powerConstrMarginGeneral | % | Active constraint margin |
b:powerConstrMarginLazy | % | Lazy constraint margin |
b:powerConstrMarginCallback | % | Low priority constraint margin |
b:isFilterVoltConstr | ยท | Constraint filter for voltage constraints |
b:voltConstrMarginGeneral | p.u. | Active constraint margin |
b:voltConstrMarginLazy | p.u. | Lazy constraint margin |
b:voltConstrMarginCallback | p.u. | Low priority constraint margin |
b:penaltySoftConstr | ยท | Penalty factor for soft constraints |
b:isParallel | ยท | Parallel contingency computation |
b:minNumCnt4Parallel | ยท | Minimum number of contingencies |
b:isAllowCurativeCtrl | ยท | Curative controls allowed |
Related
- All 73 classes in the attribute reference
- RMS and EMT simulation batch runs in Python
- PowerFactory Python API: getting started
โ ElmFile Measurement File ยท TypAsm Asynchronous Machine Type - old โ