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 |
|---|---|---|---|
Shunt |
Introductory |
Static model, constant impedance behavior |
|
BusFreq |
Introductory |
Dynamic model, transfer function blocks, signal processing |
|
TGOV1 |
Intermediate |
Two implementation approaches (equation vs block), limiters |
|
IEEEST |
Advanced |
External services, switchers, signal processing chain |
Workflow#
Define ModelData class - Declare parameters
Define Model class - Declare variables, services, equations
Register with System - Add to model registry
Generate code - Run
andes prepareTest - Validate against reference implementations