petsc-3.8.4 2018-03-24
Report Typos and Errors

DMPlexCreateHexBoxMesh

Creates a mesh on the tensor product of unit intervals (box) using hexahedra.

Synopsis

#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateHexBoxMesh(MPI_Comm comm, PetscInt dim, const PetscInt cells[], DMBoundaryType periodicX, DMBoundaryType periodicY, DMBoundaryType periodicZ, DM *dm)
Collective on MPI_Comm

Input Parameters

comm - The communicator for the DM object
dim - The spatial dimension
periodicX - The boundary type for the X direction
periodicY - The boundary type for the Y direction
periodicZ - The boundary type for the Z direction
cells - The number of cells in each direction

Output Parameter

dm -The DM object

Note: Here is the numbering returned for 2 cells in each direction

22--8-23--9--24
 |     |     |
13  2 14  3  15
 |     |     |
19--6-20--7--21
 |     |     |
10  0 11  1 12
 |     |     |
16--4-17--5--18

Keywords

DM, create

See Also

DMPlexCreateBoxMesh(), DMSetType(), DMCreate()

Level:beginner
Location:
src/dm/impls/plex/plexcreate.c
Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex62.c.html
src/snes/examples/tutorials/ex77.c.html
src/ts/examples/tutorials/ex11.c.html