Skip to main content

Prime Mesh Python client library 2026 R1

assign_mesh_regions

Last update: 02.04.2026

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_id

Id of the target part.

target_cell_zonelets

Ids of cell zonelets to be split into regions.

source_part_ids

Ids of solids used as a reference for assigning regions.

small_regions_volume_fraction

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)

Connect with Ansys