petsc-3.14.0 2020-09-29
Report Typos and Errors

DMStag - Staggered Grids: Examples

The DMStag class encapsulates a Cartesian structured mesh, with "staggered" data living on elements, faces, edges, and vertices.

ex1.c: Solve a toy 1D problem on a staggered grid
ex2.c: Solve a toy 2D problem on a staggered grid\n\n
ex3.c: Solve a toy 3D problem on a staggered grid\n\n
ex4.c: Solves the incompressible, variable viscosity Stokes equation in 2D driven by buouyancy variations
ex6.c: Simple 2D or 3D finite difference seismic wave propagation, using\n
makefile