#include "petscdmplex.h" #include "petscdmplex.h" PetscErrorCode DMPlexCreateHexCylinderMesh(MPI_Comm comm, PetscInt numRefine, DMBoundaryType periodicZ, DM *dm)Collective
comm | - The communicator for the DM object | |
numRefine | - The number of regular refinements to the basic 5 cell structure | |
periodicZ | - The boundary type for the Z direction |
17-----14
| |
| 2 |
| |
17-----8-----7-----14
| | | |
| 3 | 0 | 1 |
| | | |
19-----5-----6-----13
| |
| 4 |
| |
19-----13
and up through the top
18-----16
| |
| 2 |
| |
18----10----11-----16
| | | |
| 3 | 0 | 1 |
| | | |
20-----9----12-----15
| |
| 4 |
| |
20-----15