Show Menu
Cheatography

ANDES for Power System Simulation Cheat Sheet by

A cheatsheet for the ANDES Power System Simulator.

Introd­uction

ANDES is a symbol­ic-­numeric tool for power system analysis developed by CURENT. (Source code: GitHub)

ANDES is run with
andes command option(s)
. Please refer to All Commands section for available commands. Next, look up the corres­ponding section for options.

All Commands

run
Run a simulation routine.
plot
Plot figures from output files.
prepare
Run the symbol­ic-­to-­numeric prepar­ation.
misc
Miscel­laneous functions.
-v {10, 20, 30, 40, 50}
Logging verbosity. 10-DEBUG, 20-INFO, 30-WAR­NING, 40-ERROR, 50-CRI­TICAL.

andes run options

filename
Input file name in relative or absolute path.
-r {tds, eig}
Routine to run. Options are tds (time-­domain simula­tion) and eig (eigen­value analysis).
-p INPUT_PATH
Search path for cases.
-o OUTPUT­_PATH
Path for output files.
--convert [CONVERT]
Convert input files to FORMAT. The default is xlsx.
--profile
Enable Python cProfiler.
-n
Disable all outputs.

andes plot options

filename
One output file name to plot.
x
X-axis variable index. The default is 0 (time).
y
Y-axis variable index (or indices). Supports Python indexing.
-s
Save figure to a PNG file.
-c
Convert to a csv file.
--xmin
X-axis minimum tick XMIN.
--xmax
X-axis maximum tick XMAX.
--ymin
Y-axis minimum tick YMIN.
--ymax
Y-axis maximum tick YMAX.
--dpi
Set figure DPI.
-g
Grid on.
-d
Disable LaTeX.
-n
Disable figure showing.

andes misc options

--save­-config
Save config­ura­tions to a file.
--edit­-config
Edit an existing config­uration file.
--clean
Clean all output files.
 

Basic Comman­d-Line Interface (CLI) Examples

Run power flow for
case14.xlsx
in the current directory:
andes run case14.xlsx
Run time-d­omain simulation for
case14.xlsx
:
andes run case14.xlsx -r tds
Run TDS for
case14.xlsx
to simulate 40 seconds:
andes run case14.xlsx -r tds --tf 40
Run eigenvalue analysis for
case14.xlsx
:
andes run case14.xlsx -r eig
Plot TDS variables with indices 2 and 4 against time:
andes plot case14­_ou­t.npy 0 2 4
Plot TDS variables with indices 2, 4, ..., 20 against time:
andes plot case14­_ou­t.npy 0 2:21:2

Advanced CLI Examples

Save ANDES config­uration file to home directory:
andes misc --save
Edit ANDES config­uration file in home directory:
andes misc --edit
Batch run power flow for all files with the
.xlsx
extension:
andes run *.xlsx
Run TDS with verbose outputs for debugging:
andes -v 10 run case14.xlsx -r tds
Run TDS with profiling and print the results:
andes run case14.xlsx -r tds --profile
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Strike Fighters 2 Keyboard Shortcuts
          IL-2 Sturmovik 1946 Keyboard Shortcuts
          Microsoft Flight Simulator 2020 Keyboard Shortcuts