zoomy_core.mesh.subvolume_mesh module#
SubVolumeMesh — FVMMesh with precomputed face subvolumes for flux splitting.
- class zoomy_core.mesh.subvolume_mesh.SubVolumeMesh(*, _face_subvolumes, _cell_centers, _cell_inradius, _cell_volumes, _face_centers, _face_normals, _face_volumes, boundary_conditions_sorted_names, boundary_conditions_sorted_physical_tags, boundary_face_cells, boundary_face_face_indices, boundary_face_function_numbers, boundary_face_ghosts, boundary_face_physical_tags, cell_faces, cell_neighbors, cell_vertices, dimension, face_cells, n_boundary_faces, n_cells, n_faces, n_faces_per_cell, n_inner_cells, n_vertices, type, vertex_coordinates, z_ordering, name)#
Bases:
FVMMeshFVMMesh + precomputed face_subvolumes for FVM flux splitting.
- face_subvolumes_computed()#
Compute face subvolumes. Shape (n_faces, 2).
- Return type:
ndarray
- classmethod from_fvm(fvm)#
Build a SubVolumeMesh from an existing FVMMesh.
- Parameters:
fvm (FVMMesh) –
- Return type:
- classmethod from_msh(filepath)#
Load .msh and build FVMMesh with precomputed geometry.
- Parameters:
filepath (str) –
- Return type:
- classmethod from_hdf5(filepath)#
Load BaseMesh from H5 and compute geometry.
- Parameters:
filepath (str) –
- Return type:
- classmethod create_1d(domain, n_inner_cells)#
Build a uniform 1D interval mesh.
- Parameters:
domain (tuple) –
n_inner_cells (int) –
- Return type:
- classmethod create_2d(domain, nx, ny)#
Build a uniform 2D quad mesh.
- Parameters:
domain ((x_min, x_max, y_min, y_max)) –
nx (number of inner cells in x and y directions) –
ny (number of inner cells in x and y directions) –
- Return type:
- classmethod create_3d(domain, nx, ny, nz)#
Build a uniform 3D hexahedral mesh.
- Parameters:
domain ((x_min, x_max, y_min, y_max, z_min, z_max)) –
nx (number of inner cells in each direction) –
ny (number of inner cells in each direction) –
nz (number of inner cells in each direction) –
- Return type:
- name = 'SubVolumeMesh'#