PowerFactory Scripter

Write DIgSILENT PowerFactory Python scripts in minutes, not days.

Open Builder

or I prefer Legacy Scripter

The PowerFactory Workflow Builder: an N-1 study where, on each pass of Contingency, Run load flow feeds Line loading and Transformer loading into Add row to results table. A Read attribute block is dragged in from the Blocks panel, renamed Busbar voltage, wired after the load flow and into the results table, and the workflow downloads as a Python script. ↻ Each pass · Contingency ⠿Blocks▾PowerFactory: cases and dataElementSet attributeRead attributeScale Contingency1Base case, then each N-1 outageof lines, transformersEach passAfter all passesContingenciesContingency+4 more Run load flow2Settings of the study caseConvergedDid not converge+2 more Line loading3c:loading of all * (ElmLne)(load flow results)Element= *Highest+6 more Transformer loading4c:loading of all * (ElmTr2)(load flow results)Element= *Highest+6 more Add row to results tablegoes on to the next pass of ContingencyInto "N-1", saved at the endautomaticallyHighest loading (%)Highest transformer loading (%)Lowest voltage (p.u.)+ drop a value+ drop a value56 ends the workflowm:u of the element (results ofthe last calculation)Element= not setValue+6 moreRead attributeBusbar voltageBusbar voltagem:u of all * (ElmTerm)(load flow results)Element= *HighestLowest+5 more5 ⬇ Download Python script downloaded

What it does

  • Automate many simulations at once

    Loop over contingencies, study cases, operation scenarios, variations or a range of values. One run of the script does them all and collects the results in one table.

  • Simplify PowerFactory studies

    Each study is one block that asks only for the settings it needs:

    • Load flow
    • RMS simulation
    • EMT simulation
    • Harmonic load flow
  • Common power system calculations, ready made

    Wire a simulation result into a check and get the number, per run:

    • RoCoF
    • Settling time
    • Frequency nadir
  • Optimisation and limit finding, ready made

    Optimise searches the best value of one or more settings (differential evolution, Nelder-Mead, Bayesian or a grid). Find limit halves the gap to the largest value that still passes, such as a hosting capacity or a critical clearing time.

Learn PowerFactory scripting