petsc-3.9.4 2018-09-11
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() ).

ex2.c: Solves a linear ODE
ex3.c: Solves 1D heat equation with FEM formulation
ex4.c: Solve the convection-diffusion equation
ex5.c: Nonlinear, time-dependent
ex6.c: Solves DAE with integrator only on non-algebraic terms \n
ex7.c: Solves DAE with integrator only on non-algebraic terms \n
ex8.c: Solves DAE with integrator only on non-algebraic terms \n
ex9.c: Solves DAE with integrator only on non-algebraic terms \n
ex10.c: Simple wrapper object to solve DAE of the form:\n\
ex25.c: Call PetscInitialize multiple times
makefile