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.tolto1e-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()Initialize the status, storage and values for TDS.
Initialize a resumed simulation.
itm_step()Integrate for the step size of
self.husing 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])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