Function File: [mesh] = msh3m_structured_mesh(x,y,z,region,sides)
Construct a structured tetrahedral 3D mesh on a parallelepipedal domain.
- x, y and z are the one dimensional mesh vector of the corresponding Cartesian axis.
- region is a number identifying the geometrical volume, while sides is a 6 components vector containing the numbers used to identify the geometrical face edges.
The returned value mesh is a PDE-tool like mesh structure composed of the following fields:
- p: matrix with size 3 times number of mesh points.
- 1st row: x-coordinates of the points.
- 2nd row: y-coordinates of the points.
- 3rd row: z-coordinates of the points.
- e: matrix with size 10 times number of mesh face edges.
- 1st row: number of the first vertex of the face edge.
- 2nd row: number of the second vertex of the face edge.
- 3rd row: number of the third vertex of the face edge.
- 4th row: set to 0, present for compatibility with MatLab PDE-tool.
- 5th row: set to 0, present for compatibility with MatLab PDE-tool.
- 6th row: set to 0, present for compatibility with MatLab PDE-tool.
- 7th row: set to 0, present for compatibility with MatLab PDE-tool.
- 8th row: number of the geometrical volume to the right of the face edge.
- 9th row: number of the geometrical volume to the left of the face edge.
- 10th row: number of the geometrical border containing the face edge.
- t: matrix with size 5 times number of mesh elements.
- 1st row: number of the first vertex of the element.
- 2nd row: number of the second vertex of the element.
- 3rd row: number of the third vertex of the element.
- 4th row: number of the fourth vertex of the element.
- 5th row: number of the geometrical volume containing the element.
See also: msh2m_structured_mesh, msh3m_gmsh, msh2m_mesh_along_spline, msh3m_join_structured_mesh, msh3m_submesh.
Package: msh