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
Cita come
Ayad Al-Rumaithi (2024). Generate Brick Mesh (https://www.mathworks.com/matlabcentral/fileexchange/92263-generate-brick-mesh), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2017b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.