krakentools.meshes.NestedMesh

class krakentools.meshes.NestedMesh(source, name='')

Bases: Mesh

__init__(source, name='')

Methods

__init__(source[, name])

generate_interpolation(src)

rtype:

Tuple[csr_matrix, bool]

get_cell_at(x, y, z)

rtype:

int

get_cell_bounding_box(cell_idx)

rtype:

ndarray

get_cell_bounding_box_at_level(cell_idx, lvl)

rtype:

ndarray

get_cell_centerpoint(cell_idx)

rtype:

ndarray

get_cell_centerpoint_at_level(cell_idx, lvl)

rtype:

ndarray

get_cell_patches(cell_idx[, x0, y0, z0, ...])

rtype:

List[Patch]

get_dimensions()

rtype:

Tuple[int]

get_foam_face_data()

rtype:

Tuple[List[List[int]], List[List[int]], List[int], List[int], List[int]]

get_foam_points()

rtype:

ndarray

get_n_foam_points()

rtype:

int

get_point_at_cell(cell_idx)

rtype:

ndarray

write_foam(base_path, indexing, rewrite)

rtype:

None

write_mesh_data(fout)

rtype:

None