The database_utils.py module#

Summary#

get_compatible_input

Extract a preprocessor-compatible input surface.

Description#

Some helper methods to process cases from Strocchi and Rodero databases.

Module detail#

database_utils.get_compatible_input(mesh_path: str, model_type: Literal['FullHeart', 'FourChamber', 'BiVentricle', 'LeftVentricle'] = 'FullHeart', database: str = 'Rodero2021') tuple[pyvista.PolyData, dict]#

Extract a preprocessor-compatible input surface.

Parameters:
mesh_pathstr

Path to the input mesh (UnstructuredGrid or MultiBlock).

model_typestr, default: 'FullHeart'

Type of model to extract. Options are 'FullHeart', 'FourChamber', 'BiVentricle', and 'LeftVentricle'.

databasestr, default: 'Rodero2021'

Database name. Options are 'Rodero2021' and 'Strocchi2020'.

Returns:
Tuple[pv.PolyData, dict]

Preprocessor-compatible polydata object and dictionary with part definitions.