petsc-3.13.4 2020-08-01
Report Typos and Errors

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() ).

ex1.c: Basic equation for generator stability analysis
ex2.c: Basic equation for generator stability analysis
ex3.c: Basic equation for generator stability analysis
ex3sa.c: Adjoint and tangent linear sensitivity analysis of the basic equation for generator stability analysis
ex3opt.c: Finds optimal parameter P_m for the generator system while maintaining generator stability
ex3opt_fd.c: Finds optimal parameter P_m for the generator system while maintaining generator stability
ex5.c: Basic equation for an induction generator driven by a wind turbine
ex6.c: Time-dependent PDE in 2d for calculating joint PDF
ex7.c: Time-dependent PDE in 2d for calculating joint PDF
ex8.c: Time-dependent PDE in 2d for calculating joint PDF
ex9adj.c: Basic equation for generator stability analysis
ex9.c: Basic equation for generator stability analysis
ex9opt.c: Basic equation for generator stability analysis
makefile