Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Python toolbox / library for power system transient dynamics simulation with symbolic modeling and numerical analysis ๐ฅ
| Date | Stars |
|---|---|
| 2026-07-25 | 371 |
| 2026-07-28 | 371 |
| 2026-07-30 | 371 |
| 2026-08-06 | 371 |
Today
โ stars today
This week
โ stars this week
This month
โ stars this month
Momentum
0.0
growth rate 0.00%/day
# ANDES
*The dynamic simulation engine of the [CURENT Large-scale Testbed](https://github.com/CURENT)*
[](https://pypi.python.org/pypi/andes)
[](https://anaconda.org/conda-forge/andes)
[](https://docs.andes.app/en/latest/)
[](https://www.gnu.org/licenses/gpl-3.0)
ANDES is an open-source Python package for power system modeling and
simulation. It supports power flow, time-domain simulation (transient
stability), eigenvalue analysis, continuation power flow, and state
estimation.
## Quick Start
```bash
pip install andes # or: conda install -c conda-forge andes
```
```python
import andes
ss = andes.load("ieee14.raw", addfile="ieee14.dyr", setup=False)
ss.add("Fault", bus=2, tf=1.0, tc=1.1) # three-phase bus fault
ss.setup()
ss.PFlow.run() # power flow
ss.TDS.run() # time-domain simulation
ss.TDS.plt.plot(ss.GENROU.omega) # plot generator speeds
```
Five lines from a PSS/E case file to a transient stability plot:
<img src="docs/source/images/readme/demo_tds.png" alt="IEEE 14-bus transient simulation" width="700">
## What ANDES Provides
**Five analysis routines.**
Power flow (Newton-Raphson), time-domain simulation (implicit trapezoidal),
eigenvalue analysis, continuation power flow for voltage stability limits,
and state estimation.
<img src="docs/source/images/readme/eigenvalue_map.png" alt="Eigenvalue map of the Kundur two-area system" width="700">
**Over 100 dynamic models.**
Synchronous generators (GENROU, GENCLS), turbine governors (TGOV1, IEEEG1,
HYGOV), exciters (EXST1, ESST3A, SEXS, AC8B), stabilizers (IEEEST, ST2CUT),
second-generation renewable models (REGCA1, REECA1, REPCA1, WTDTA1),
distributed energy resources (PVD1, ESD1), and dynamic loads (ZIP, FLoad),
with full implementation of limiters, saturation, and time constant zeroing.
**PSS/E data compatibility.**
ANDES natively reads PSS/E RAW and DYR files, MATPOWER cases, and its own
JSON and Excel formats. Once a dynamic model is implemented, its PSS/E DYR
input is automatically supported.
**Scripting and extensibility.**
Built for Python workflows: load cases, sweep parameters, modify topology,
and extract results in NumPy arrays or Pandas DataFrames. A Gymnasium-compatible
reinforcement learning environment is available for power system control
research.
**Performance.**
A 20-second transient simulation of a 2000-bus system completes in seconds
on a typical desktop computer, with optional Numba JIT compilation.
## Verification
ANDES has been verified against DSATools TSAT and Siemens PSS/E on standard
test systems. The NPCC 140-bus case (GENROU, GENCLS, TGOV1, IEEEX1) produces
results identical to TSAT. The WECC 179-bus case (GENROU, IEEEG1, EXST1,
ESST3A, ESDC2A, IEEEST, ST2CUT) shows close agreement across all three tools.
| NPCC 140-Bus (ANDES vs. TSAT) | WECC 179-Bus (ANDES vs. TSAT vs. PSS/E) |
|-|-|
|  |  |
Full verification notebooks with side-by-side comparisons are available in the
[documentation](https://docs.andes.app/en/latest/verification/index.html).
## Symbolic Modeling Framework
Models in ANDES are defined as mathematical equations in Python. The framework
automatically generates optimized numerical code, analytically derived Jacobian
matrices, and LaTeX documentation from the same source. What you simulate is
what you document.
The following is the complete implementation of the TGOV1 turbine governor.
Reusable transfer function blocks (`LagAntiWindup`, `LeadLag`) and discrete
components (limiters, deadbands) are provided in the ANDES library.
```python
class TGOV1Model(TGBase):Excerpt of 6,536 characters
Read on GitHubWould you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:ff79e62fbc82ddf7, topic:simulation