Creating Models#

Step-by-step guide to implementing new device models in ANDES.

Examples Overview#

The examples progress from simple to advanced:

Example

Model

Complexity

Key Concepts

Example: Static Model (Shunt)

Shunt

Introductory

Static model, constant impedance behavior

Example: Dynamic Model (BusFreq)

BusFreq

Introductory

Dynamic model, transfer function blocks, signal processing

Example: TGOV1 Turbine Governor

TGOV1

Intermediate

Two implementation approaches (equation vs block), limiters

Example: IEEEST Power System Stabilizer

IEEEST

Advanced

External services, switchers, signal processing chain

Workflow#

  1. Define ModelData class - Declare parameters

  2. Define Model class - Declare variables, services, equations

  3. Register with System - Add to model registry

  4. Generate code - Run andes prepare

  5. Test - Validate against reference implementations