fedoo.mesh.box_mesh
- box_mesh(nx=11, ny=11, nz=11, x_min=0, x_max=1, y_min=0, y_max=1, z_min=0, z_max=1, elm_type='hex8', name='')
Create the mesh of a box
- Parameters:
nx (int) – Numbers of nodes in the x, y and z axes (default = 11).
ny (int) – Numbers of nodes in the x, y and z axes (default = 11).
nz (int) – Numbers of nodes in the x, y and z axes (default = 11).
x_min (int,float) – The boundary of the box (default : 0, 1, 0, 1, 0, 1).
x_max (int,float) – The boundary of the box (default : 0, 1, 0, 1, 0, 1).
y_min (int,float) – The boundary of the box (default : 0, 1, 0, 1, 0, 1).
y_max (int,float) – The boundary of the box (default : 0, 1, 0, 1, 0, 1).
z_min (int,float) – The boundary of the box (default : 0, 1, 0, 1, 0, 1).
z_max (int,float) – The boundary of the box (default : 0, 1, 0, 1, 0, 1).
elm_type ({'hex8', 'hex20'}) – The type of the element generated (default=’hex8’) * ‘hex8’ – 8 node hexahedron * ‘hex20’ – 20 node second order hexahedron
- Returns:
The generated geometry in Mesh format. See the Mesh class for more details.
- Return type:
See also
line_mesh
1D mesh of a line
rectangle_mesh
Surface mesh of a rectangle
grid_mesh_cylindric
Surface mesh of a grid in cylindrical coodrinate
line_mesh_cylindric
Line mesh in cylindrical coord