This function generates brick mesh according to grid set by vectors xx, yy, and zz.
[Nodes, Rectangles]=Rectangles_Mesh(xx,yy);
[Nodes3D,Bricks] = Mesh2D_to_Mesh3D(Nodes,Rectangles,zz);
input:
xx, yy, and zz are vectors for grids of size (Nx,1) , (Ny,1), and (Nz,1) , respectively.
output:
Nodes3D (Nx*Ny*Nz,3) is a matrix of coordinates of the mesh nodes.
Bricks((Nx-1)*(Ny-1)*(Nz-1),8) is a matrix of nodes connectivity for each element in right hand rule direction.
Example file is provided
引用格式
Ayad Al-Rumaithi (2024). Generate Brick Mesh (https://www.mathworks.com/matlabcentral/fileexchange/92263-generate-brick-mesh), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2017b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!