krishnakumarg1984 / p4pdes

C and Python examples from Ed Bueler's book on PETSc and Firedrake to solve PDEs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

p4pdes

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

image of front cover

Order the paper book 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. They will remain here for the long term, and 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.

About

C and Python examples from Ed Bueler's book on PETSc and Firedrake to solve PDEs

License:MIT License


Languages

Language:C 69.7%Language:Python 17.4%Language:Shell 7.7%Language:Makefile 4.0%Language:Lua 0.5%Language:MATLAB 0.4%Language:GLSL 0.2%Language:Vim Snippet 0.2%