> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ContactPreventionParams

### *class* 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 `ContactPreventionParams` object 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 `ContactPreventionParams` object with provided parameters.

### Examples

```python theme={null}
>>> contact_prevention_params = prime.ContactPreventionParams(model = model)
```

### Methods

| Name | Description |
| - | - |
| [`ContactPreventionParams.print_default`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2/api/_autosummary/ansys.meshing.prime.ContactPreventionParams.print_default)() | Print the default values of `ContactPreventionParams` object. |
| [`ContactPreventionParams.set_default`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2/api/_autosummary/ansys.meshing.prime.ContactPreventionParams.set_default)(\[...]) | Set the default values of the `ContactPreventionParams` object. |

### Attributes

| Name | Description |
| - | - |
| [`ContactPreventionParams.size`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2/api/_autosummary/ansys.meshing.prime.ContactPreventionParams.size) | Minimum gap size (gap/4) to resolve contact between source and target. |
| [`ContactPreventionParams.source_scope`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2/api/_autosummary/ansys.meshing.prime.ContactPreventionParams.source_scope) | Source scope used for contact prevention control. |
| [`ContactPreventionParams.target_scope`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2/api/_autosummary/ansys.meshing.prime.ContactPreventionParams.target_scope) | Target scope used for contact prevention control. |
