Large disturbance behavior of power systems often involves complex interact
ions between continuous dynamics and discrete events, Such behavior can be
captured in a systematic way by a model that consists of differential, swit
ched algebraic and state-reset (DSAR) equations, The paper presents a pract
ical object-oriented approach to implementing the DSAR model, Each componen
t of a system can be modeled autonomously. Connections between components a
re established by simple algebraic equations. Simulation of the model using
numerically robust implicit integration requires the generation of partial
derivatives. The object-oriented model structure allows this differentiati
on to be achieved symbolically without sacrificing simulation speed.