1.2. Dynamic data
Dynamic data define the models used to simulate the time-domain response of power system components. They are loaded into RAMSES via pyramses.cfg.addData().
1.2.1. Data file format
RAMSES data files are text-based. Records are terminated with a semicolon (;). Comments begin with ! (retained in output) or # (discarded). Fields are free-format: 30, 30., and 3E01 are equivalent. Character fields are case-sensitive; use quotes for names containing spaces or slashes. Records can span multiple lines.
1.2.2. Models included in the current version
Category |
Models |
|---|---|
Injectors |
|
Exciters |
|
Speed governors |
|
Two-ports |
|
Discrete controllers |
|
1.2.3. Synchronous generator
The synchronous machine model used in RAMSES is a standard 6th-order (or reduced) flux-linkage model. It is declared implicitly through the SYNC_MACH record and must have an associated exciter (EXC) and torque controller (TOR).
- SYNC_MACH name bus SNOM FP FQ P Q H D Ra Xd Xdp Xdpp Td0p Td0pp Xq Xqp Xqpp Tq0p Tq0pp Xl ;
Declares a synchronous machine and connects it to a bus.
- Parameters
name (str) – (max 8 characters) name of the machine
bus (str) – (max 8 characters) connection bus
SNOM (float) – nominal apparent power, in MVA
FP (float) – fraction of active power (0–1), used for initialisation
FQ (float) – fraction of reactive power (0–1), used for initialisation
P (float) – scheduled active power, in MW (used when FP = 0)
Q (float) – scheduled reactive power, in Mvar (used when FQ = 0)
H (float) – inertia constant, in seconds
D (float) – damping coefficient, in pu
Ra (float) – armature resistance, in pu
Xd (float) – d-axis synchronous reactance, in pu
Xdp (float) – d-axis transient reactance, in pu
Xdpp (float) – d-axis subtransient reactance, in pu
Td0p (float) – d-axis open-circuit transient time constant, in seconds
Td0pp (float) – d-axis open-circuit subtransient time constant, in seconds
Xq (float) – q-axis synchronous reactance, in pu
Xqp (float) – q-axis transient reactance, in pu
Xqpp (float) – q-axis subtransient reactance, in pu
Tq0p (float) – q-axis open-circuit transient time constant, in seconds
Tq0pp (float) – q-axis open-circuit subtransient time constant, in seconds
Xl (float) – leakage reactance, in pu
See the
synchronous machine model referencefor equations and parameter definitions.
1.2.4. Excitation system (EXC)
Exciters are attached to synchronous machines and control the field voltage. They are declared as follows:
EXC MODEL_NAME MACHINE_NAME DATA1 DATA2 ... ;
where MODEL_NAME is one of the supported exciter models (e.g., ST1A, AC1A, DC3A), and MACHINE_NAME is the name of the associated synchronous machine.
1.2.5. Speed governor / torque controller (TOR)
Governors are attached to synchronous machines and control mechanical torque:
TOR MODEL_NAME MACHINE_NAME DATA1 DATA2 ... ;
1.2.6. Injectors (INJEC)
Injectors are single-bus dynamic components representing loads, renewable energy sources, BESS, and other shunt-connected devices:
INJEC MODEL_NAME INJ_NAME BUS FP FQ P Q DATA1 DATA2 ... ;
- param str MODEL_NAME
injector model type (e.g.,
IBG,WT3WithChanges,load,PQ)- param str INJ_NAME
name of the injector (max 20 characters)
- param str BUS
connection bus
- param float FP
fraction of total active power at bus (0–1). If non-zero, P is inferred from bus power.
- param float FQ
fraction of total reactive power at bus (0–1). If non-zero, Q is inferred from bus power.
- param float P
active power injection, in MW (used when FP = 0)
- param float Q
reactive power injection, in Mvar (used when FQ = 0)
- param …
model-specific data parameters
Special injector types:
theveq— Thévenin equivalent (infinite bus). Forces synchronous reference frame.load— Voltage-dependent load model.PQ— Constant P and Q load.IBG— Inverter-based generator (grid-following).WT3WithChanges/WT4WithChanges— Type 3 and Type 4 wind turbines.BESSWithChanges— Battery energy storage system.
1.2.7. Two-port models (TWOP)
Two-port models connect two buses and represent HVDC links, SVCs, and other series-connected devices:
TWOP MODEL_NAME TWOP_NAME BUS1 BUS2 IND FP1 FQ1 P1 Q1 FP2 FQ2 P2 Q2 DATA1 DATA2 ... ;
- param str MODEL_NAME
two-port model type (e.g.,
HVDC_VSC,HVDC_LCC,HQSVC)- param str TWOP_NAME
name of the element (max 20 characters)
- param str BUS1
first terminal bus
- param str BUS2
second terminal bus
- param int IND
indicator for power initialisation (0 = use FP/FQ, 1 = use P/Q directly)
- param float FP1, FQ1
fraction of active/reactive power at bus 1
- param float P1, Q1
active/reactive power injection at bus 1, in MW/Mvar
- param float FP2, FQ2
fraction of active/reactive power at bus 2
- param float P2, Q2
active/reactive power injection at bus 2, in MW/Mvar
- param …
model-specific data parameters
1.2.8. Discrete controllers (DCTL)
Discrete controllers implement switching logic and automata-based control actions. They can control network devices, change parameters, or implement protection schemes:
DCTL MODEL_NAME DCTL_NAME BUS DATA1 DATA2 ... ;
Common discrete controller models:
Model |
Description |
|---|---|
|
Load tap-changer controller. Adjusts transformer ratio to regulate voltage. |
|
Load tap-changer with dead-band and discrete steps. |
|
Inverse LTC (raises voltage when below setpoint). |
|
On-load tap changer with discrete step logic. |
|
Under-voltage load shedding scheme. |
|
Under-voltage protection relay. |
|
Phase-shifting transformer controller. |
|
Ratio transformer (manual ratio control). |
|
Multi-area interaction signal controller. |
|
Fault-ride-through logic for renewable generators. |
|
Simulation stopping criterion: minimum/maximum voltage. |
|
Simulation stopping criterion: minimum/maximum machine speed. |
|
Monitors voltage variability and can trigger events. |
1.2.9. Constant-impedance loads
Loads modelled as constant impedance (converted at initialisation from the power-flow solution):
IMPLOAD bus ;
Loads on buses with name prefix M_ are automatically treated as constant-impedance loads.