Tutorials — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# Tutorials

This page provides connections to PETSc tutorial examples by type of physics being modeled, discretization technique being used, solvers used, etc.

- Tutorials, by Physics
  - Poisson
  - Elastostatics
  - Stokes
  - Euler
  - Heat equation
  - Navier-Stokes
- Tutorials, by Mathematical Problem
  - Linear elliptic PDE on a 2D grid
  - Nonlinear ODE arising from a time-dependent one-dimensional PDE
  - Nonlinear PDE on a structured grid
  - Nonlinear time dependent PDE on unstructured grid
- Meshing for Subsurface Flows in PETSc
- Time, Accuracy, Speed Analysis (TAS)
- In-Person Tutorials

In addition, PETSc has many additionally poorly curated tutorial examples, found in the `tutorials/` directories throughout the PETSc `src/` tree.

- Linear problems

- Nonlinear problems

- Time integration

- Optimization

  - Least-squares (Manual: Nonlinear Least-Squares)

  - Quadratic (Manual: Quadratic Solvers)

  - Unconstrained (Manual: Unconstrained Minimization)

  - Bound (Manual: Bound-Constrained Optimization)

  - Constrained (Manual: Generally Constrained Solvers)

  - Complementarity (Manual: Complementarity)

  - PDE constrained (Manual: PDE-constrained Optimization)n