petsc-3.11.4 2019-09-28
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: Solves the time independent Bratu problem using pseudo-timestepping
ex2.c: Solves a time-dependent nonlinear PDE
ex3.c: Solves a simple time-dependent linear PDE (the heat equation)
ex4.c: Solves a simple time-dependent linear PDE (the heat equation)
ex5.c: Solves a simple time-dependent linear PDE (the heat equation)
ex6.c: Solves a simple time-dependent linear PDE (the heat equation)
ex7.c: Nonlinear, time-dependent PDE in 2d
ex8.c: Nonlinear DAE benchmark problems
ex9.c: 1D periodic Finite Volume solver in slope-limiter form with semidiscrete time stepping
ex10.c: 1D nonequilibrium radiation diffusion with Saha ionization model
ex11.c: Second Order TVD Finite Volume Example
ex12.c: Nonlinear, time-dependent PDE in 2d
ex13.c: Time-dependent PDE in 2d
ex14.c: Toy hydrostatic ice flow with multigrid in 3D
ex15.c: Time-dependent PDE in 2d
ex16.c: Solves the van der Pol equation
ex17.c: Time-dependent PDE in 1d
ex19.c: Solves the van der Pol DAE
ex20.c: Solves the van der Pol equation
ex21.c: Solves a time-dependent nonlinear PDE with lower and upper bounds on the interior grid points
ex22.c: Time-dependent advection-reaction PDE in 1d, demonstrates IMEX methods
ex24.c: Pseudotransient continuation to solve a many-variable system that comes from the 2 variable Rosenbrock function + trivial
ex25.c: Time-dependent Brusselator reaction-diffusion PDE in 1d
ex26.c: Transient nonlinear driven cavity in 2d
ex28.c: Loads a previously saved TS
ex31.c: Solves the ordinary differential equations (IVPs) using explicit and implicit time-integration methods
ex34.c: An elastic wave equation driven by Dieterich-Ruina friction\n
ex35.cxx: Time-dependent Brusselator reaction-diffusion PDE in 1d
extchem.c: Integrate chemistry using TChem
ex16adj.c: Performs adjoint sensitivity analysis for the van der Pol equation
ex16opt_p.c: Solves an ODE-constrained optimization problem -- finding the optimal stiffness parameter for the van der Pol equation
ex16opt_ic.c: Solves an ODE-constrained optimization problem -- finding the optimal initial conditions for the van der Pol equation
ex20adj.c: Performs adjoint sensitivity analysis for the van der Pol equation
ex20opt_p.c: Solves the van der Pol equation
ex20opt_ic.c: Solves a DAE-constrained optimization problem -- finding the optimal initial conditions for the van der Pol equation
ex40.c: Serial bouncing ball example to test TS event feature
ex41.c: Parallel bouncing ball example to test TS event feature
ex42.c: Meinhard't activator-inhibitor model to test TS domain error feature
ex48.c: Evolution of magnetic islands
ex49.c: Solves the van der Pol equation
ex50.c: Solves one dimensional Burger's equation compares with exact solution\n\n
makefile