# DMPlexCreateHexCylinderMesh
Creates a mesh on the tensor product of the unit interval with the circle (cylinder) using hexahedra. 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateHexCylinderMesh(MPI_Comm comm, DMBoundaryType periodicZ, DM *dm)
```
Collective


## Input Parameters

- ***comm      -*** The communicator for the DM object
- ***periodicZ -*** The boundary type for the Z direction



## Output Parameter

- ***dm  -*** The DM object



## Note

## Here is the output numbering looking from the bottom of the cylinder
```none
17-----14
```
```none
|     |
```
```none
|  2  |
```
```none
|     |
```
```none
17-----8-----7-----14
```
```none
|     |     |     |
```
```none
|  3  |  0  |  1  |
```
```none
|     |     |     |
```
```none
19-----5-----6-----13
```
```none
|     |
```
```none
|  4  |
```
```none
|     |
```
```none
19-----13
```
```none
```
```none
and up through the top
```
```none
```
```none
18-----16
```
```none
|     |
```
```none
|  2  |
```
```none
|     |
```
```none
18----10----11-----16
```
```none
|     |     |     |
```
```none
|  3  |  0  |  1  |
```
```none
|     |     |     |
```
```none
20-----9----12-----15
```
```none
|     |
```
```none
|  4  |
```
```none
|     |
```
```none
20-----15
```




## See Also
 `DMPlexCreateBoxMesh()`, `DMSetType()`, `DMCreate()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexcreate.c.html#DMPlexCreateHexCylinderMesh">src/dm/impls/plex/plexcreate.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexcreate.c.html#DMPlexCreateHexCylinderMesh_Internal">DMPlexCreateHexCylinderMesh_Internal in src/dm/impls/plex/plexcreate.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexcreate.c)


[Index of all DMPlex routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
