split_and_collapse_on_zonelets#

CollapseTool.split_and_collapse_on_zonelets(part_id, face_zonelets, register_id, split_params, collapse_params)#

Split and collapse elements on face zonelets with the specified register id.

Parameters:
part_idint

Id of a part.

face_zoneletsIterable[int]

Ids of face zonelets.

register_idint

Id used to identify face elements to split and collapse.

split_paramsSplitParams

Parameters to split longest edge of face elements before collapse.

collapse_paramsCollapseParams

Parameters to collapse shortest edge of face elements.

Returns:
CollapseResults

Returns the CollapseResults.

Return type:

CollapseResults

Examples

>>> collapse_tool = prime.CollapseTool(model = model)
>>> results = collapse_tool.split_and_collapse_on_zonelets(
>>>     part_id=part.id,
>>>     face_zonelets=part.get_face_zonelets(),
>>>     register_id=register_id,
>>>     split_params=prime.SplitParams(model=model),
>>>     collapse_params=prime.CollapseParams(model=model))