CollapseParams#

class ansys.meshing.prime.CollapseParams(model=None, feature_type=None, collapse_ratio=None, preserve_quality=None, target_skewness=None, json_data=None, **kwargs)#

Parameters to collapse face elements.

Parameters:
model: Model

Model to create a CollapseParams object with default parameters.

feature_type: SurfaceFeatureType, optional

Feature type to be preserved when performing collapse.

collapse_ratio: float, optional

Maximum ratio of shortest face edge length to longest face edge length.

preserve_quality: bool, optional

Option to preserve quality of neighboring triangles when performing collapse.Collapse may lead to quality deterioration beyond target skewness. Such collapse is prevented, when the option is enabled.

target_skewness: float, optional

Skewness limit used as target to preserve quality. Better quality elements are skipped for collapse.

json_data: dict, optional

JSON dictionary to create a CollapseParams object with provided parameters.

Examples

>>> collapse_params = prime.CollapseParams(model = model)

Methods

CollapseParams.print_default()

Print the default values of CollapseParams object.

CollapseParams.set_default([feature_type, ...])

Set the default values of the CollapseParams object.

Attributes

CollapseParams.collapse_ratio

Maximum ratio of shortest face edge length to longest face edge length.

CollapseParams.feature_type

Feature type to be preserved when performing collapse.

CollapseParams.preserve_quality

Option to preserve quality of neighboring triangles when performing collapse.Collapse may lead to quality deterioration beyond target skewness.

CollapseParams.target_skewness

Skewness limit used as target to preserve quality.