Generate Cylinder Mesh

version 1.0.2 (2.27 KB) by Ayad Al-Rumaithi
Generates cylinder mesh with example


Updated 14 May 2021

View License

This function generates circle mesh
[Nodes, Triangles, Quads]=Circle_Mesh(R,Nr,Nt)
[Nodes3D,Prisms,Bricks] = Mesh2D_to_Mesh3D(Nodes,Triangles,Quads,zz)
R: radius
Nr: Number of mesh in radial direction
Nt: Number of mesh in tangent direction
zz: Vector for grid at direction z of size (Nz,1)
Nodes3D (Nz*(Nr*Nt+1),3) is a matrix of coordinates of the mesh nodes.
Prisms((Nz-1)*Nt,6) is a matrix of nodes connectivity for prism mesh in right hand rule direction.
Bricks((Nz-1)*(Nr-1)*Nt,8) is a matrix of nodes connectivity for brick mesh in right hand rule direction.
Example file is provided

Cite As

Ayad Al-Rumaithi (2022). Generate Cylinder Mesh (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!