Skip to content
/ p4pdes Public

C and Python examples from my book on using PETSc and Firedrake to solve PDEs

License

Notifications You must be signed in to change notification settings

bueler/p4pdes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

21b086f · Jan 27, 2025
Sep 12, 2024
Sep 12, 2024
Aug 20, 2021
Jan 4, 2023
Jan 4, 2023
Jul 18, 2023
Jul 20, 2018
Jan 27, 2025
Sep 20, 2020

Repository files navigation

p4pdes

PETSc for Partial Differential Equations is a book on using PETSc and Firedrake to solve partial differential equations by modern numerical methods.

image of front cover

Order a paper copy from SIAM Press, or the e-book from Google Play.

This repository contains the C and Python example programs upon which the book is based.

These example programs will remain here for the long term, and they will be maintained for future versions of PETSc.

C examples

To compile and run the C examples, for Chapters 1 through 12, see the README.md in the c/ directory.

Python/Firedrake examples

Chapters 13 and 14 use Firedrake, a Python finite element library based on PETSc. See the README.md in the python/ directory to run these examples.