petsc-3.12.1 2019-10-22
Time steppers for ODE and DAE - TS: Examples
The time-stepping (TS) component provides ODE and DAE integrators as well as
pseudo-timestepping. TS internally
employs SNES to solve the nonlinear
problems at each time step (except for the Sundials functions, which
use nonlinear solvers within Sundials).
TS users can also set SNES options directly in application codes by first extracting the SNES context from the TS context via
TSGetSNES()
and then directly calling various SNES (and KSP and PC with further unwrapping) routines (e.g.,
PCSetType()
).
ex9bus.c: Power grid stability analysis of WECC 9 bus system
ex9busadj.c: Sensitivity analysis applied in power grid stability analysis of WECC 9 bus system
ex9busopt.c: Application of adjoint sensitivity analysis for power grid stability analysis of WECC 9 bus system
ex9busoptfd.c: Using finite difference for the problem in ex9busopt
ex9busdmnetwork.c: Power grid stability analysis of a large power system
makefile