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") and GetAttribute("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. GetAttribute after a run gives the value at the last time step.

ElmRes 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
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_presPre-
trg_postsPost-
trg_pmaxsMax.
monitorStepsSample 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
cFnomHzNominal Frequency
cOrigCurveยทAnalysed curve
cStudyBusยทStudy Bus
cActivePowerยทActive Power
calTpCoordยทUsage
monitorFreqHzFrequency

ElmRes rms simulation results

Read after ComInc (RMS) with GetAttribute. c: calculation parameter, s: signal (state or model variable).

AttributeUnitDescription
c:readyยทReady-Signal
c:monitorFreqHzTime 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).

AttributeUnitDescription
c:readyยทReady-Signal
c:monitorFreqHzTime between recordings
s:writeTimeยทWrite Time

Read after ComMod with GetAttribute. c: calculation parameter, s: signal (state or model variable).

AttributeUnitDescription
c:readyยทReady-Signal
c:monitorFreqHzTime between recordings
s:writeTimeยทWrite Time

ElmRes basic data

b: values are worked out from the input data. Read them; they are not set.

AttributeUnitDescription
b:loc_nameยทName
b:i_objยทObject index
b:violationยทRestoration with violations
b:nrActionsยทNumber of switching actions
b:interruptedPowerMWInterrupted power
b:restoredPowerMWRestored power
b:interruptedCustยทInterrupted customers
b:restoredCustยทRestored customers
b:eignoยทMode index
b:eigvalr1/sMode, Real Part
b:eigvalirad/sMode, Imaginary Part
b:sigma1/sDamping
b:TpsPeriod
b:ratioยทRatio
b:frequHzFrequency
b:indexยทIndex
b:feederยทTotal Hosting Feeder(s)
b:nodeยทTotal Hosting Node(s)
b:iconnยทConnection type
b:pmaxMWMax. hosting power
b:pminMWMin. hosting power
b:pavgMWAverage 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:tnowsTime
b:trealยทRealtime
b:isOptimalLocยทDetected as optimal location for a recloser
b:contrBeforeEnsMWh/aContribution to ENS without reclosing functionality
b:contrAfterEnsMWh/aContributions to ENS with reclosing functionality
b:contrBeforeEicUSD/aContribution to EIC without reclosing functionality
b:contrAfterEicUSD/aContributions to EIC with reclosing functionality
b:contrBeforeSaidih/CaContribution to SAIDI without reclosing functionality
b:contrAfterSaidih/CaContributions to SAIDI with reclosing functionality
b:contrBeforeMaifi1/CaContribution to MAIFI without reclosing functionality
b:contrAfterMaifi1/CaContributions to MAIFI with reclosing functionality
b:calcmethodยทCalculation method
b:calctypeยทCalculation type
b:calcresยทCalculation result
b:optempdegCOperating temperature
b:wspeedm/sWind speed
b:prob%Probability
b:cprob%Cumulative probability
b:currencyยทCurrency
b:objidยทObject ID
b:olobjidยทOverloaded object ID
b:pnomMWRated power
b:pinstMWInstalled power
b:scaleAm/sScale factor, A
b:shapeKยทShape factor, k
b:vavgm/sAverage wind speed
b:qmcยทQuasi-Monte-Carlo
b:ftariffUSD/kWhFeed-in tariff
b:ctariffUSD/kWhConsumer tariff
b:HourhYear hour
b:ucttimesTime
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:poskmDistance
b:posXOhmDistance
b:posZOhmDistance
b:objIndexยทObject index
b:sideIndexยทSide
b:relPoskmPosition 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:studyBBvoltagep.u.Voltage at study Busbar
b:totDemandMWActive 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:fnowHzFrequency
b:ifnowยทHarmonic Order
b:dfHzFrequency 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:tmphaseminTime 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:asynchOfNextBBdegMax. 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:voltConstrMarginGeneralp.u.Active constraint margin
b:voltConstrMarginLazyp.u.Lazy constraint margin
b:voltConstrMarginCallbackp.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

โ† ElmFile Measurement File ยท TypAsm Asynchronous Machine Type - old โ†’