Skip to content

Discrete Controller Models

Discrete controllers (DCTL) in RAMSES implement event-driven logic rather than continuous differential equations. They fire at specific simulation events (voltage crossing a threshold, a timer expiring, a tap position changing) and execute discrete actions such as tripping a generator, shedding load, or adjusting a transformer tap. They run inside RAMSES’ event-driven loop and can call disp_disc to log switching actions.

The RAMSES data keyword is DCTL:

DCTL model_name controller_name field1 field2 ... ;

The controllers are documented by family, one page each.

PageModels
Tap ChangersLTC, LTC2, LTCINV, OLTC2
Protection and ControlUVPROT, UVLS, FRT, dctl_injprot, dctl_losprot, line_prot, PST, RT, dctl_hvdc_lim
MonitoringSIM_MINMAXSPEED, SIM_MINMAXVOLT, VOLT_VAR