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
  1. Requirements and architecture
  2. Design
  3. Analysis
  4. Optimization
  5. Manufacturing
  6. Test and validation
  7. 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.

bracket.vtk 126 KB

Loading the example...

Legacy VTK ASCII unstructured grid of the bracket tetrahedra. One point field, z_height_mm (each node's height), so the file has data to plot; it is not a simulation result. CC0-1.0.

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.

Applications built on it
deal.II authorsdeal.II
FEniCS projectFEniCS (DOLFINx)
Firedrake projectFiredrake
Idaho National LaboratoryMOOSE
Kernel or component
PETSc(Argonne National Laboratory)

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.

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.

How is PETSc related to something else?

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

Formats 6

FormatExtensionsReadsWritesExample
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

Sources

As of 2026-11-22.

Something wrong or out of date? Edit this record or report a problem.