zoomy_core.mesh.mesh_extrude

zoomy_core.mesh.mesh_extrude#

Pure-numpy helpers that extrude a 2D (or 1D) mesh’s points, elements and boundary faces by Nz vertical layers.

Module Contents#

Functions#

extrude_points

Replicate points at each z in Z, layer by layer.

extrude_element_vertices

Extruded element-vertex table: bottom-layer vertices followed by top-layer vertices.

extrude_element_vertices_line

Extruded quad vertices for 2-vertex line elements, in cyclic order.

extrude_boundary_face_vertices

Extruded boundary-face vertices, ordered bottom, sides, top.

extrude_boundary_face_corresponding_element

Owning extruded cell of each extruded boundary face, ordered bottom, sides, top.

extrude_boundary_face_tags

Boundary tag of each extruded boundary face (ordered bottom, sides, top), with two new tags for bottom and top.

API#

zoomy_core.mesh.mesh_extrude.extrude_points(points, Z)#

Replicate points at each z in Z, layer by layer.

zoomy_core.mesh.mesh_extrude.extrude_element_vertices(element_vertices, n_vertices, Nz)#

Extruded element-vertex table: bottom-layer vertices followed by top-layer vertices.

zoomy_core.mesh.mesh_extrude.extrude_element_vertices_line(element_vertices, n_vertices, Nz)#

Extruded quad vertices for 2-vertex line elements, in cyclic order.

zoomy_core.mesh.mesh_extrude.extrude_boundary_face_vertices(msh, Nz)#

Extruded boundary-face vertices, ordered bottom, sides, top.

zoomy_core.mesh.mesh_extrude.extrude_boundary_face_corresponding_element(msh, Nz)#

Owning extruded cell of each extruded boundary face, ordered bottom, sides, top.

zoomy_core.mesh.mesh_extrude.extrude_boundary_face_tags(msh, Nz)#

Boundary tag of each extruded boundary face (ordered bottom, sides, top), with two new tags for bottom and top.