gruvoc.umesh: Unstructured volume mesh class¶
This module provides the Umesh class that interacts with
traditional generic mixed-element volume grids. In particular, the type
of meshes considered are those whose surface elements consist of
triangles (3 points) and
quads (4 points)
and whose volume elements consist of
tetrahedra (4 tri faces and 4 nodes),
pyramids (4 tri faces, 1 quad, and 5 nodes),
prisms (2 tri faces, 3 quads, and 6 nodes), and
hexahedra (6 quad faces and 8 nodes).
- class cape.gruvoc.umesh.GridFileFormat(basename, infix, format)¶
- basename¶
Alias for field number 0
- format¶
Alias for field number 2
- infix¶
Alias for field number 1
- cape.gruvoc.umesh.name2format(fname: str, **kw)¶
Infer file format based on file name and/or kwargs
- Call:
>>> gridfmt = name2format(fname, **kw)
- Inputs:
- Outputs:
- gridfmt:
GridFileFormat Information on file format
- gridfmt.basename:
str Name of file w/o extension
- gridfmt.infix:
None|str Infix from penultimate part of file name
- gridfmt.format:
None|str Grid format based on file name or user overrides
- gridfmt: