CollapseParams#
- class ansys.meshing.prime.CollapseParams(model=None, feature_type=None, collapse_ratio=None, preserve_quality=None, target_skewness=None, keep_edge_connectivity=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.
- keep_edge_connectivity: bool, optional
Option to keep edge connectivity. The default value is false. When keep edge connectivity is true, edges that were connected to collapsed triangles will be connected to different triangles. Otherwise, edges will be disconnected from faces.
This is a beta parameter. The behavior and name may change in the future.
- json_data: dict, optional
JSON dictionary to create a
CollapseParams
object with provided parameters.
Examples
>>> collapse_params = prime.CollapseParams(model = model)
Methods
Print the default values of
CollapseParams
object.CollapseParams.set_default
([feature_type, ...])Set the default values of the
CollapseParams
object.Attributes
Maximum ratio of shortest face edge length to longest face edge length.
Feature type to be preserved when performing collapse.
Option to keep edge connectivity.
Option to preserve quality of neighboring triangles when performing collapse.Collapse may lead to quality deterioration beyond target skewness.
Skewness limit used as target to preserve quality.