zoomy_core.mesh.subvolume_mesh module

zoomy_core.mesh.subvolume_mesh module#

SubVolumeMesh — FVMMesh with precomputed face subvolumes for flux splitting.

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

Bases: FVMMesh

FVMMesh + 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:

SubVolumeMesh

classmethod from_msh(filepath)#

Load .msh and build FVMMesh with precomputed geometry.

Parameters:

filepath (str) –

Return type:

SubVolumeMesh

classmethod from_hdf5(filepath)#

Load BaseMesh from H5 and compute geometry.

Parameters:

filepath (str) –

Return type:

SubVolumeMesh

classmethod create_1d(domain, n_inner_cells)#

Build a uniform 1D interval mesh.

Parameters:
  • domain (tuple) –

  • n_inner_cells (int) –

Return type:

SubVolumeMesh

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:

SubVolumeMesh

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:

SubVolumeMesh

name = 'SubVolumeMesh'#