andes.routines.tds.TDS#
- class andes.routines.tds.TDS(system=None, config=None)[source]#
Time-domain simulation routine.
Some cases may be sensitive to large convergence tolerance
config.tol
. If numerical oscillation happens, try reducingconfig.tol
to1e-6
.Methods
calc_h
([resume])Calculate the time step size during the TDS.
Check stability criteria.
Checks if is an event time and perform switch if true.
doc
([max_width, export])Routine documentation interface.
fg_update
(models[, init])Perform one round of evaluation for one iteration step.
init
(*args, **kwargs)Routine initialization interface.
Initialize a resumed simulation.
itm_step
()Integrate for the step size of
self.h
using implicit trapezoid method.Manually load a plotter into
TDS.plotter
.report
(**kwargs)Report interface.
reset
()Reset internal states to pre-init condition.
rewind
(t)TODO: rewind to a past time.
run
([no_summary, from_csv])Run time-domain simulation using numerical integration.
save_output
([npz])Save the simulation data into two files: a .lst file and a .npz file.
set_method
([name])Set DAE solution method.
Send out initialization variables and process init from modules.
Sync, handle and streaming for each integration step.
summary
()Print out a summary of TDS options to logger.info.
Test if the TDS initialization is successful.
Attributes