Prepared by Jinning Wang. Last revised on December 15, 2021.
import andes
from andes.utils.paths import get_case
andes.config_logger(stream_level=20)
ss = andes.load(get_case('ieee14/ieee14_hygov.xlsx'),
setup=False,
no_output=True)
ss.setup()
Working directory: "/Users/jinningwang/Documents/work/andes/examples/demonstration" Loaded config from file "/Users/jinningwang/.andes/andes.rc" Loaded generated Python code in "/Users/jinningwang/.andes/pycode". Parsing input file "/Users/jinningwang/Documents/work/andes/andes/cases/ieee14/ieee14_hygov.xlsx"... Input file parsed in 0.3788 seconds. System internal structure set up in 0.0324 seconds.
True
Turbine governor HYGOV_1
is connected to GENROU_5
.
ss.PFlow.run()
-> System connectivity check results: No islanded bus detected. A total of 1 island(s) detected. Each island has a slack bus correctly defined and enabled. -> Power flow calculation Sparse solver: KLU Solution method: NR method Numba compilation initiated with caching. Power flow initialized in 0.3313 seconds. 0: |F(x)| = 0.5605182134 1: |F(x)| = 0.006202200332 2: |F(x)| = 5.819382825e-06 3: |F(x)| = 6.967745825e-12 Converged in 4 iterations in 0.0041 seconds.
True
ss.TDS.config.tf = 20
ss.TDS.run()
-> Time Domain Simulation Summary: Sparse Solver: KLU Simulation time: 0.0-20 s. Fixed step size: h=33.33 ms. Shrink if not converged. Numba compilation initiated with caching. Initialization for dynamics completed in 0.2339 seconds. Initialization was successful.
<Toggle Toggle_1>: Line.Line_1 status changed to 0 at t=1.0 sec. <Toggle Toggle_2>: Line.Line_1 status changed to 1 at t=1.1 sec. 100%|███████████████████████████████| 100/100 [00:00<00:00, 102.64%/s]
Simulation completed in 0.9746 seconds.
True
ss.TDS.plt.plot(ss.HYGOV.pout)
ss.TDS.plt.plot(ss.TGOV1.pout)
(<Figure size 600x400 with 1 Axes>, <AxesSubplot:xlabel='Time [s]'>)
!andes misc -C
_ _ | Version 1.5.6.post65+ga6129ca0 /_\ _ _ __| |___ ___ | Python 3.7.10 on Darwin, 12/16/2021 02:25:41 PM / _ \| ' \/ _` / -_|_-< | /_/ \_\_||_\__,_\___/__/ | This program comes with ABSOLUTELY NO WARRANTY. No output file found in the working directory.