PETSc in a nutshell#
PETSc/TAO is a tool for writing, analyzing, and optimizing properties of large-scale numerical simulations.
Algebraic objects#
Vec- containers for simulation solutions, right hand sides of linear systems, etc. (Vectors and Parallel Data)Mat- contain Jacobians and operators that define linear systems (Matrices)Several sparse and dense matrix storage formats (see
MatType):Limited memory variable metric matrix representations
Block
Nested
ISindices - used to access portions of vectors and matrix, for example {1,2,4} or 1:10
Solvers#
PCpreconditioners - approximate solvers to algebra systems without a history of previous iterationsKSPKrylov subspace methods - approximate solvers with a history of previous iterations (KSP: Linear System Solvers)SNESnonlinear equation solvers (SNES: Nonlinear Solvers)TStime integrators (ODE/PDE), explicit, implicit, local and global error estimators (TS: Scalable ODE and DAE Solvers)Local and global error estimators
TSAdjointderivatives/sensitivities of functions of ODE/PDE integration solutions (Performing sensitivity analysis with the TS ODE Solvers)
TAO- optimization, with equality and inequality constraints, first and second order (Newton) methods (TAO: Optimization Solvers)
See also
For full feature list and prerequisites see:
DM: Interfacing Between Solvers and Models/Discretizations#
DMDA- for simulations computed on simple structured gridsDMSTAG- for simulations computed on staggered grids (DMStag: Staggered, Structured Grids in PETSc)DMPLEX- for simulation computed on unstructured meshes (DMPlex: Unstructured Grids in PETSc)DMNETWORK- for simulations on networks or graphs, for example the power grid, river networks, the nervous system (Networks)DMP4EST- for simulations on collections of quad or octree meshesDMSWARM- for simulations on particles
Utilities#
PetscOptions- control of discretization and solution processPetscViewer- visualizing algebraic objects, solvers, connectorsMonitor - monitoring of solution progress
Profiling- profiling of the performance of the simulation solution process