Categories / Numerical libraries
PETSc
Parallel linear and nonlinear solvers and time steppers; the base layer of many research codes.
- Who owns it
-
Argonne National LaboratoryPETSc
Made by Argonne National Laboratory, founded 1946 (US).
Open source (BSD-2-Clause).
- What it does
-
A free library for solving the large equation systems in simulations across many processors; many research codes build on it.
Kind of software: Numerical libraries
- Its files
-
A C programming library (with Fortran and Python bindings) for parallel solvers; programs move data through viewer objects that write PETSc binary, HDF5, ExodusII, CGNS or VTK files.
Opens Gmsh MSH.
Writes HDF5, Exodus II, CGNS, VTK legacy, VTK XML.
- Where it fits
-
- Requirements and architecture
- Design
- Analysis
- Optimization
- Manufacturing
- Test and validation
- Lifecycle and operations
Research codes such as MOOSE, FEniCS, Firedrake and deal.II call PETSc to solve their large equation systems across many processors; the answers go back into those codes.
PETSc does not keep its work in files of its own (see Its files), so this shows data it exchanges. Here is VTK legacy, a format it exports. This sample is the site's own test file, made for this site with meshio 5.3.5, not one made with PETSc.
Loading the example...
Stack
How the layers fit: a platform is software other applications run on and share data through; applications are what engineers work in; a geometry kernel is the engine inside an application that builds and edits shapes, and other components handle constraints or solving.
How it relates
PETSc is a programming library that simulation software is built from.
Who makes it
The company that sells it, and where it was first developed.
- PETSc is made and sold by Argonne National Laboratory.
Built on it
Products that use this inside them.
- deal.II is built on PETSc, owned by Argonne National Laboratory.
- FEniCS (DOLFINx) is built on PETSc, owned by Argonne National Laboratory.
- Firedrake is built on PETSc, owned by Argonne National Laboratory.
- MOOSE is built on PETSc, owned by Argonne National Laboratory.
Competitors and alternatives
Products from other owners that do the same job.
- PETSc and Trilinos compete for the same users.
Details
- Vendor
- Argonne National Laboratory
- Category
- Numerical libraries in Simulation
- Workflow stages
- Analysis
- License
- Open source, BSD-2-Clause
- First release
- 1995
- Status
- Active
- Website
- petsc.org
Built on this 4
- deal.IIopen source
- FEniCS (DOLFINx)open source
- Firedrakeopen source
- MOOSEopen source
Formats 6
| Format | Extensions | Reads | Writes | Example |
|---|---|---|---|---|
| CGNS | .cgns | Yes | Download | |
| Exodus II | .exo .e | Yes | Download | |
| Gmsh MSH | .msh | Yes | Download | |
| HDF5 | .h5 .hdf5 | Yes | Download | |
| VTK legacy | .vtk | Yes | Download | |
| VTK XML | .vtu .vtp .vti .vtm .pvd | Yes | Download |
Major documented formats only; most tools support more through add-ons or translators.
Competes with
- Trilinosopen source
Sources
As of 2026-11-22.
- official page: https://petsc.org/
- Wikipedia: https://en.wikipedia.org/wiki/Portable,_Extensible_Toolkit_for_Scientific_Computation
- PETSc docs: PetscViewerType: https://petsc.org/release/manualpages/Viewer/PetscViewerType/
- PETSc docs: DMPlexCreateGmshFromFile: https://petsc.org/release/manualpages/DMPlex/DMPlexCreateGmshFromFile/
- PETSc source: VTK viewer extensions: https://gitlab.com/petsc/petsc/-/raw/main/src/sys/classes/viewer/impls/vtk/vtkv.c
Something wrong or out of date? Edit this record or report a problem.