zoomy_core.mesh.subvolume_mesh

zoomy_core.mesh.subvolume_mesh#

SubVolumeMesh: FVMMesh with cached face subvolumes for flux splitting.

Module Contents#

Classes#

SubVolumeMesh

FVMMesh plus precomputed face_subvolumes.

API#

class zoomy_core.mesh.subvolume_mesh.SubVolumeMesh(**kwargs)#

Bases: zoomy_core.mesh.fvm_mesh.FVMMesh

FVMMesh plus precomputed face_subvolumes.

Initialization

Create the mesh from its topology arrays and normalise boundary faces so face_cells[0] is the inner cell.

face_subvolumes_computed() → numpy.ndarray#

Return the cached face subvolumes.

classmethod from_fvm(fvm: zoomy_core.mesh.fvm_mesh.FVMMesh) → zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#

Build a SubVolumeMesh from an FVMMesh by computing its face subvolumes.

classmethod from_msh(filepath: str) → zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#

Load a gmsh .msh file as a SubVolumeMesh.

classmethod from_hdf5(filepath: str) → zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#

Load an HDF5 mesh as a SubVolumeMesh.

classmethod create_1d(domain: tuple, n_inner_cells: int) → zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#

Structured 1D SubVolumeMesh on domain with n_inner_cells cells.

classmethod create_2d(domain: tuple, nx: int, ny: int) → zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#

Structured 2D SubVolumeMesh on domain with nx x ny cells.

classmethod create_3d(domain: tuple, nx: int, ny: int, nz: int) → zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#

Structured 3D SubVolumeMesh on domain with nx x ny x nz cells.