xref: /petsc/doc/index.md (revision d533f534d59417bad6206b6d8fe4746f68ddc7ac)
19b92b1d3SBarry Smith# PETSc
29b92b1d3SBarry Smith
39b92b1d3SBarry SmithPETSc, the Portable, Extensible Toolkit for Scientific Computation,
49b92b1d3SBarry Smithpronounced PET-see ([/ˈpɛt-siː/](https://en.wikipedia.org/wiki/Help:IPA/English#Key)), is
59b92b1d3SBarry Smithfor the scalable (parallel) solution of scientific
69b92b1d3SBarry Smithapplications modeled by partial differential equations (PDEs). It has bindings for C, Fortran, and Python (via petsc4py).
79b92b1d3SBarry SmithPETSc also contains TAO, the Toolkit for Advanced Optimization, software library.
89b92b1d3SBarry SmithThey support MPI, and GPUs through
99b92b1d3SBarry SmithCUDA, HIP, Kokkos, or OpenCL, as well as hybrid MPI-GPU parallelism; they also support the NEC-SX Tsubasa Vector Engine.
109b92b1d3SBarry SmithImmediately jump in and run PETSc and TAO code {any}`handson`.
119b92b1d3SBarry Smith
12*d533f534SBarry Smith## News
13*d533f534SBarry Smith
14*d533f534SBarry Smith[SIAM News article](https://www.siam.org/publications/siam-news/articles/opencarp-personalized-computational-model-of-the-heart-examines-cardiac-rhythm/)
15*d533f534SBarry Smithon the PETSc-powered [OpenCarp](https://opencarp.org/) cardiac electrophysiology simulator.
16*d533f534SBarry Smith
179b92b1d3SBarry SmithPETSc is now on [BlueSky](https://bsky.app/profile/petsc.org).
189b92b1d3SBarry Smith
1989c361d2SSatish BalayThe {any}`2025 PETSc Annual User Meeting<2025_meeting>` will take place May 20-21, 2025 in Buffalo, New York, USA, with tutorials on May 19th.
209b92b1d3SBarry Smith
219b92b1d3SBarry SmithMrs. Hong Zhang, who has been a PETSc developer for twenty-five years and mentored many students and future PETSc developers, has retired.
229b92b1d3SBarry Smith
239b92b1d3SBarry SmithPETSc is associated with NumFOCUS, a 501(c)(3) nonprofit supporting open code and reproducible science,
249b92b1d3SBarry Smiththrough which you can help support PETSc.
259b92b1d3SBarry Smith
26*d533f534SBarry Smith## Book
279b92b1d3SBarry Smith
289b92b1d3SBarry Smith> **PETSc for Partial Differential Equations: Numerical Solutions in C and Python**, by Ed Bueler.
299b92b1d3SBarry Smith>
309b92b1d3SBarry Smith> - [Book from SIAM Press](https://my.siam.org/Store/Product/viewproduct/?ProductId=32850137)
319b92b1d3SBarry Smith> - [Google Play E-book](https://play.google.com/store/books/details/Ed_Bueler_PETSc_for_Partial_Differential_Equations?id=tgMHEAAAQBAJ)
329b92b1d3SBarry Smith
339b92b1d3SBarry Smith## Main Topics
349b92b1d3SBarry Smith
359b92b1d3SBarry Smith```{toctree}
369b92b1d3SBarry Smith:maxdepth: 1
379b92b1d3SBarry Smith
389b92b1d3SBarry Smithoverview/index
399b92b1d3SBarry Smithinstall/index
409b92b1d3SBarry Smithtutorials/index
419b92b1d3SBarry Smithmanual/index
429b92b1d3SBarry Smithmanualpages/index
439b92b1d3SBarry Smithpetsc4py/index
449b92b1d3SBarry Smithfaq/index
459b92b1d3SBarry Smithcommunity/index
469b92b1d3SBarry Smithdevelopers/index
479b92b1d3SBarry Smithmiscellaneous/index
489b92b1d3SBarry Smith```
499b92b1d3SBarry Smith
509b92b1d3SBarry Smith<a href="./manual/manual.pdf">PETSc/TAO Users Manual in PDF</a>
519b92b1d3SBarry Smith
529b92b1d3SBarry Smith(doc_toolkits_use_petsc)=
539b92b1d3SBarry Smith
549b92b1d3SBarry Smith## Toolkits/libraries that use PETSc
559b92b1d3SBarry Smith
569b92b1d3SBarry Smith- [ADflow](https://github.com/mdolab/adflow) An open-source
579b92b1d3SBarry Smith  computational fluid dynamics solver for aerodynamic and
589b92b1d3SBarry Smith  multidisciplinary optimization
599b92b1d3SBarry Smith- [BOUT++](https://boutproject.github.io) Plasma simulation
609b92b1d3SBarry Smith  in curvilinear coordinate systems
619b92b1d3SBarry Smith- [Chaste](https://www.cs.ox.ac.uk/chaste/) Cancer, Heart and
629b92b1d3SBarry Smith  Soft Tissue Environment
639b92b1d3SBarry Smith- [code_aster](https://www.code-aster.org/V2/spip.php?rubrique2)
649b92b1d3SBarry Smith  open-source general purpose finite element code for solid and
659b92b1d3SBarry Smith  structural mechanics
669b92b1d3SBarry Smith- [code_saturne](https://www.code-saturne.org)
679b92b1d3SBarry Smith  open-source general purpose code for fluid dynamics
689b92b1d3SBarry Smith- [COOLFluiD](https://github.com/andrealani/COOLFluiD) CFD,
699b92b1d3SBarry Smith  plasma and multi-physics simulation package
709b92b1d3SBarry Smith- [DAFoam](https://dafoam.github.io) Discrete adjoint solvers
719b92b1d3SBarry Smith  with [OpenFOAM](https://openfoam.com) for aerodynamic
729b92b1d3SBarry Smith  optimization
739b92b1d3SBarry Smith- [DAMASK](https://damask-multiphysics.org) Unified multi-physics
749b92b1d3SBarry Smith  crystal plasticity simulation package
759b92b1d3SBarry Smith- [DEAL.II](https://www.dealii.org/) C++ based finite element
769b92b1d3SBarry Smith  simulation package
779b92b1d3SBarry Smith- [DUNE-FEM](https://dune-project.org/sphinx/content/sphinx/dune-fem/) Python and C++ based finite element simulation package
789b92b1d3SBarry Smith- [FEniCS](https://fenicsproject.org/) Python based finite
799b92b1d3SBarry Smith  element simulation package
809b92b1d3SBarry Smith- [Firedrake](https://www.firedrakeproject.org/) Python based
819b92b1d3SBarry Smith  finite element simulation package
829b92b1d3SBarry Smith- [Fluidity](https://fluidityproject.github.io/) a finite
839b92b1d3SBarry Smith  element/volume fluids code
849b92b1d3SBarry Smith- [FreeFEM](https://freefem.org/) finite element and boundary element PDE solver
859b92b1d3SBarry Smith  with embedded domain specific language
869b92b1d3SBarry Smith- [GetDP](https://www.getdp.info/) a General Environment for the Treatment of Discrete Problems
879b92b1d3SBarry Smith- [hIPPYlib](https://hippylib.github.io) [FEniCS](https://fenicsproject.org/)-based toolkit
889b92b1d3SBarry Smith  for solving deterministic and Bayesian inverse
899b92b1d3SBarry Smith  problems governed by PDEs
909b92b1d3SBarry Smith- [libMesh](https://libmesh.github.io) adaptive finite element
919b92b1d3SBarry Smith  library
929b92b1d3SBarry Smith- [MFEM](https://mfem.org/) lightweight, scalable C++ library
939b92b1d3SBarry Smith  for finite element methods
949b92b1d3SBarry Smith- [MLSVM](https://github.com/esadr/mlsvm), Multilevel Support
959b92b1d3SBarry Smith  Vector Machines with PETSc.
969b92b1d3SBarry Smith- [MoFEM](http://mofem.eng.gla.ac.uk/mofem/html), An open
979b92b1d3SBarry Smith  source, parallel finite element library
989b92b1d3SBarry Smith- [MOOSE - Multiphysics Object-Oriented Simulation
999b92b1d3SBarry Smith  Environment](https://mooseframework.inl.gov/) finite element
1009b92b1d3SBarry Smith  framework, built on [libMesh](https://libmesh.github.io).
1019b92b1d3SBarry Smith- [OOFEM](http://www.oofem.org) object-oriented finite element
1029b92b1d3SBarry Smith  library
1039b92b1d3SBarry Smith- [OpenCarp](https://opencarp.org/) Cardiac electrophysiology simulator
1049b92b1d3SBarry Smith- [OpenFOAM](https://develop.openfoam.com/modules/external-solver)
1059b92b1d3SBarry Smith  Available as an extension for linear solvers for OpenFOAM
1069b92b1d3SBarry Smith- [OpenFPM](https://openfpm.mpi-cbg.de/) framework for particles and mesh simulation
1079b92b1d3SBarry Smith- [OpenFVM](http://openfvm.sourceforge.net/) finite volume
1089b92b1d3SBarry Smith  based CFD solver
1099b92b1d3SBarry Smith- [PermonSVM](http://permon.vsb.cz/permonsvm.htm) support
1109b92b1d3SBarry Smith  vector machines and
1119b92b1d3SBarry Smith  [PermonQP](http://permon.vsb.cz/permonqp.htm) quadratic
1129b92b1d3SBarry Smith  programming
1139b92b1d3SBarry Smith- [PetIGA](https://github.com/dalcinl/PetIGA) A framework
1149b92b1d3SBarry Smith  for high performance Isogeometric Analysis
1159b92b1d3SBarry Smith- [PFLOTRAN](https://pflotran.org/) An open source, state-of-the-art
1169b92b1d3SBarry Smith  code for massively parallel simulation of subsurface flow, reactive transport, geomechanics, and electrical resistivity tomography
1179b92b1d3SBarry Smith- [PHAML](https://math.nist.gov/phaml/) The Parallel
1189b92b1d3SBarry Smith  Hierarchical Adaptive MultiLevel Project
1199b92b1d3SBarry Smith- [preCICE](https://www.precice.org) - A fully parallel
1209b92b1d3SBarry Smith  coupling library for partitioned multi-physics simulations
1219b92b1d3SBarry Smith- [PyClaw](https://www.clawpack.org/pyclaw/) A massively
1229b92b1d3SBarry Smith  parallel, high order accurate, hyperbolic PDE solver
1239b92b1d3SBarry Smith- [SLEPc](https://slepc.upv.es/) Scalable Library for
1249b92b1d3SBarry Smith  Eigenvalue Problems
1259b92b1d3SBarry Smith
1269b92b1d3SBarry Smith(doc_index_citing_petsc)=
1279b92b1d3SBarry Smith
1289b92b1d3SBarry Smith## Citing PETSc
1299b92b1d3SBarry Smith
1309b92b1d3SBarry SmithYou can run PETSc programs with the option `-citations` to print appropriate citations for the software and algorithms being used in that program.
1319b92b1d3SBarry Smith
1329b92b1d3SBarry SmithFor general citations on PETSc please use the following:
1339b92b1d3SBarry Smith
1349b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1359b92b1d3SBarry Smith:append: '}'
1369b92b1d3SBarry Smith:end-at: year
1379b92b1d3SBarry Smith:language: none
1389b92b1d3SBarry Smith:start-at: petsc-web-page
1399b92b1d3SBarry Smith```
1409b92b1d3SBarry Smith
1419b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1429b92b1d3SBarry Smith:append: '}'
1439b92b1d3SBarry Smith:end-at: year
1449b92b1d3SBarry Smith:language: none
1459b92b1d3SBarry Smith:start-at: petsc-user-ref
1469b92b1d3SBarry Smith```
1479b92b1d3SBarry Smith
1489b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1499b92b1d3SBarry Smith:append: '}'
1509b92b1d3SBarry Smith:end-at: year
1519b92b1d3SBarry Smith:language: none
1529b92b1d3SBarry Smith:start-at: petsc-efficient
1539b92b1d3SBarry Smith```
1549b92b1d3SBarry Smith
1559b92b1d3SBarry SmithFor petsc4py usage please cite
1569b92b1d3SBarry Smith
1579b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1589b92b1d3SBarry Smith:append: '}'
1599b92b1d3SBarry Smith:end-at: year
1609b92b1d3SBarry Smith:language: none
1619b92b1d3SBarry Smith:start-at: dalcinpazklercosimo2011
1629b92b1d3SBarry Smith```
1639b92b1d3SBarry Smith
1649b92b1d3SBarry SmithFor PETSc usage on GPUs please cite
1659b92b1d3SBarry Smith
1669b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1679b92b1d3SBarry Smith:append: '}'
1689b92b1d3SBarry Smith:end-at: author
1699b92b1d3SBarry Smith:language: none
1709b92b1d3SBarry Smith:start-at: mills2021
1719b92b1d3SBarry Smith```
1729b92b1d3SBarry Smith
1739b92b1d3SBarry SmithFor `PetscSF` -- parallel communication in PETSc -- please cite
1749b92b1d3SBarry Smith
1759b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1769b92b1d3SBarry Smith:append: '}'
1779b92b1d3SBarry Smith:end-at: pages
1789b92b1d3SBarry Smith:language: none
1799b92b1d3SBarry Smith:start-at: petscsf2022
1809b92b1d3SBarry Smith```
1819b92b1d3SBarry Smith
1829b92b1d3SBarry SmithIf you use the `TS` component of PETSc please cite the following:
1839b92b1d3SBarry Smith
1849b92b1d3SBarry Smith```{literalinclude} petsc.bib
1859b92b1d3SBarry Smith:append: '}'
1869b92b1d3SBarry Smith:end-at: year
1879b92b1d3SBarry Smith:language: none
1889b92b1d3SBarry Smith:start-at: abhyankaretal2018
1899b92b1d3SBarry Smith```
1909b92b1d3SBarry Smith
1919b92b1d3SBarry SmithIf you utilize the `TS` adjoint solver please cite
1929b92b1d3SBarry Smith
1939b92b1d3SBarry Smith```{literalinclude} /petsc.bib
1949b92b1d3SBarry Smith:append: '}'
1959b92b1d3SBarry Smith:end-at: year
1969b92b1d3SBarry Smith:language: none
1979b92b1d3SBarry Smith:start-at: zhang2022tsadjoint
1989b92b1d3SBarry Smith```
199