assign_mesh_regions#

VolumeMeshTool.assign_mesh_regions(target_part_id, target_cell_zonelets, source_part_ids, small_regions_volume_fraction)#

Assigns a region id to the cells in target cell zonelets of target part id. The region id is based on their location within source part ids.

Parameters:
target_part_idint

Id of the target part.

target_cell_zoneletsIterable[int]

Ids of cell zonelets to be split into regions.

source_part_idsIterable[int]

Ids of solids used as a reference for assigning regions.

small_regions_volume_fractionfloat

Regions with volumes smaller than a specified fraction of the total volume are merged into their largest adjacent region. This helps to eliminate isolated cells and thin regions from the output.

Returns:
:
VolumeMeshToolResults

Returns the VolumeMeshToolResults.

Return type:

VolumeMeshToolResults

Notes

This is a beta API. The behavior and implementation may change in future.

Examples

>>> results = volume_mesh_tool.AssignMeshRegions(target_part_id, target_cell_zonelets, source_part_ids, small_regions_volume_fraction)