Skip to content

Quick Start

STEPSS provides three ways to run simulations:

InterfaceDynamic Simulator (RAMSES)Static Simulator (PFC)CODEGEN
Command Lineramses -t cmd.txtpfc -t cmd.txtcodegen model.txt
GUI (Java)Via STEPSS GUIVia STEPSS GUIVia STEPSS GUI
PythonVia PyRAMSES

The RAMSES executable accepts the following arguments:

Terminal window
ramses.exe [-t command_file] [-v]
FlagDescription
-t command_fileRead inputs from a command file (non-interactive mode)
-vPrint version information and exit

Interactive mode (no -t flag): RAMSES prompts for each input sequentially:

Dump settings, comments and initialization data in file [press enter to skip] :
Disturbance file name [compulsory] :
Dump system trajectory in file [press enter to skip] :
Observable file name [compulsory] :
Dump continuous simulation trace in file [press enter to skip] :
Dump discrete simulation trace in file [press enter to skip] :

Non-interactive mode (-t flag): The command file provides the same inputs as lines, in order:

  1. Prepare data files: Network data, dynamic data, solver settings, LFRESV (power flow solution)

  2. Create a command file (cmd.txt):

    data.dat volt_rat.dat settings.dat
    disturbance.dst
    result.rtrj
    obs.obs
    cont.trace
    disc.trace

    The command file contains, in order:

    • Data files (one or more, space- or newline-separated) — read until a blank line
    • Initialization dump file (blank line to skip)
    • Disturbance file (required)
    • Trajectory file (blank line to skip)
    • Observables file (required if trajectory file is given)
    • Continuous trace file (blank line to skip)
    • Discrete trace file (blank line to skip)
  3. Run the simulation:

    Terminal window
    ramses.exe -tcmd.txt
  4. Process results: Use PyRAMSES extractor, MATLAB, or other tools to read the trajectory file


The PFC executable accepts the following arguments:

Terminal window
pfc.exe [-t command_file] [-o output_file] [-c trigger_file] [-v verbosity]
FlagDescription
-t command_fileRead inputs from a command file (non-interactive mode)
-o output_fileRedirect output to a file instead of the console
-c trigger_fileCycle mode — wait for trigger file to start/proceed
-v NVerbosity level (0 = silent, 1 = normal)

Interactive mode (no -t flag): PFC prompts for data files, then presents a command menu.

Non-interactive mode (-t flag): The command file provides data file names (one per line, blank line to end), followed by menu commands.

  1. Prepare data files: Network data, PFC-specific data (generators, loads, SVC, LTC-V, PSHIFT-P)

  2. Create a command file (pfc_cmd.txt):

    network.dat
    pfc_data.dat
    VT
    volt_rat.dat
    E
  3. Run the power flow:

    Terminal window
    pfc.exe -tpfc_cmd.txt -ooutput.txt

After loading data and solving, PFC presents these commands:

CommandDescription
PTake new control parameters from file
DDisplay output values
1Display outputs on 1-line diagram (SVG)
MModify system (change loads, generators, topology)
RIReset system to initial configuration
CAPerform contingency analysis
CLCheck operating limits (voltage bounds, branch overloads)
OChange output file
DFUpdate all records and dump them to a file
VTGenerate a file with voltages and adjustable transformer ratios (LFRESV format)
SSave operating point and Y matrix to MATLAB file
EExit

The VT command produces the LFRESV file needed to initialize RAMSES.


  1. Define the network: Specify buses, lines, transformers, and shunts
  2. Set up power flow data: Define generators, loads, and the slack bus
  3. Run PFC: Compute the initial operating point and export LFRESV
  4. Add dynamic models: Specify synchronous machines, excitation systems, speed governors, loads, and controllers
  5. Configure solver: Set integration method, time steps, and tolerances
  6. Define disturbances: Specify faults, line trips, parameter changes, etc.
  7. Run RAMSES: Execute the dynamic simulation
  8. Analyze results: Extract and visualize trajectories of voltages, frequencies, and powers