> ## 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.

# MatchPair

### *class* ansys.meshing.prime.MatchPair(model=None, source\_surfaces=None, target\_surfaces=None, target\_type=None, bc\_pairs=None, json\_data=None, \*\*kwargs)

Match pair to specify sources, targets for match morphing. Included boundary conditions specification.

* **Parameters:**

  **model: Model**
  : Model to create a `MatchPair` object with default parameters.

  **source\_surfaces: Iterable\[int], optional**
  : Ids of source surfaces.

  **target\_surfaces: Iterable\[int], optional**
  : Ids of target surfaces.

  **target\_type: MatchPairTargetType, optional**
  : Option to specify target surface type.

  **bc\_pairs: List\[BCPair], optional**
  : Array of boundary condition pairs.

  **json\_data: dict, optional**
  : JSON dictionary to create a `MatchPair` object with provided parameters.

### Examples

```python theme={null}
>>> match_pair = prime.MatchPair(model = model)
```

### Methods

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

### Attributes

| Name | Description |
| - | - |
| [`MatchPair.bc_pairs`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp01/api/_autosummary/ansys.meshing.prime.MatchPair.bc_pairs) | Array of boundary condition pairs. |
| [`MatchPair.source_surfaces`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp01/api/_autosummary/ansys.meshing.prime.MatchPair.source_surfaces) | Ids of source surfaces. |
| [`MatchPair.target_surfaces`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp01/api/_autosummary/ansys.meshing.prime.MatchPair.target_surfaces) | Ids of target surfaces. |
| [`MatchPair.target_type`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2025-r2-sp01/api/_autosummary/ansys.meshing.prime.MatchPair.target_type) | Option to specify target surface type. |
