zoomy_core.mesh.subvolume_mesh#
SubVolumeMesh: FVMMesh with cached face subvolumes for flux splitting.
Module Contents#
Classes#
FVMMesh plus precomputed |
API#
- class zoomy_core.mesh.subvolume_mesh.SubVolumeMesh(**kwargs)#
Bases:
zoomy_core.mesh.fvm_mesh.FVMMeshFVMMesh 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
.mshfile 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
domainwithn_inner_cellscells.
- classmethod create_2d(domain: tuple, nx: int, ny: int) zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#
Structured 2D SubVolumeMesh on
domainwithnxxnycells.
- classmethod create_3d(domain: tuple, nx: int, ny: int, nz: int) zoomy_core.mesh.subvolume_mesh.SubVolumeMesh#
Structured 3D SubVolumeMesh on
domainwithnxxnyxnzcells.