ContactPreventionParams
Last update: 17.07.2025class ansys.meshing.prime.ContactPreventionParams(model=None, source_scope=None, target_scope=None, size=None, json_data=None, **kwargs)
ContactPreventionParams defines contact prevention control parameters for wrapper.
-
Parameters:
model: Model : Model to create a
ContactPreventionParamsobject with default parameters.source_scope: ScopeDefinition, optional : Source scope used for contact prevention control.
target_scope: ScopeDefinition, optional : Target scope used for contact prevention control.
size: float, optional : Minimum gap size (gap/4) to resolve contact between source and target.
json_data: dict, optional : JSON dictionary to create a
ContactPreventionParamsobject with provided parameters.
Examples
>>> contact_prevention_params = prime.ContactPreventionParams(model = model)
Methods
| Name | Description |
|---|---|
ContactPreventionParams.print_default() |
Print the default values of ContactPreventionParams object. |
ContactPreventionParams.set_default([...]) |
Set the default values of the ContactPreventionParams object. |
Attributes
| Name | Description |
|---|---|
ContactPreventionParams.size |
Minimum gap size (gap/4) to resolve contact between source and target. |
ContactPreventionParams.source_scope |
Source scope used for contact prevention control. |
ContactPreventionParams.target_scope |
Target scope used for contact prevention control. |