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

# mapping:create sysc shape function mapping workflow

**Version: 0.0.0**

## Description

Prepares a workflow able to map data from an input mesh to a target mesh.

## Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation.
Some inputs are required, while others are optional and provide additional configuration.
Each parameter is detailed in the sections that follow the table.

| Pin number | Name | Status | Expected type(s) |
| - | - | - | - |
| **0** | [source\_mesh](#input_0) | | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshed-region), [`meshes_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshes-container) |
| **1** | [target\_mesh](#input_1) | | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshed-region), [`meshes_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshes-container) |
| **6** | [target\_scoping](#input_6) | | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#scoping), [`scopings_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#scopings-container) |
| **10** | [options\_data\_tree](#input_10) | | [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#data-tree) |

### source\_mesh (Pin 0)

* **Required:** No
* **Expected type(s):** [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshed-region), [`meshes_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshes-container)

Mesh where the source data is defined. If not set, an input pin named "source\_mesh" is exposed.

### target\_mesh (Pin 1)

* **Required:** No
* **Expected type(s):** [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshed-region), [`meshes_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#meshes-container)

Mesh where the target data is defined. If not set, an input pin named "source\_mesh" is exposed.

### target\_scoping (Pin 6)

* **Required:** No
* **Expected type(s):** [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#scoping), [`scopings_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#scopings-container)

Scoping that restricts the interpolation to a given set of nodes/elements in the target mesh. If not set, an input pin named "target\_scoping" is exposed.

### options\_data\_tree (Pin 10)

* **Required:** No
* **Expected type(s):** [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#data-tree)

DataTree that contains an optional 'mapping\_options' subtree with 'conservative' (bool, default is false) information, and a mandatory 'data\_definition' subtree with 'location' (string) and 'dimensionality' (int) information, that are required by the mapping operator.

## Outputs

This table lists the output pins for this operator.
Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing.
Each output is detailed in the sections that follow the table.

| Pin number | Name | Expected type(s) |
| - | - | - |
| **0** | [mapping\_workflow](#output_0) | [`workflow`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#workflow) |

### mapping\_workflow (Pin 0)

* **Expected type(s):** [`workflow`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#workflow)

Workflow with input pin 'source\_data'; optionally 'source\_mesh', 'target\_mesh', 'target\_scoping', and 'options\_data\_tree'; and output pin 'target\_data'.

## Configurations

This operator supports [configuration options](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/operator-configurations.md#mutex)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types)
* **Default value:** false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

### [permissive](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/operator-configurations.md#permissive)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types)
* **Default value:** true

If permissive is set to false, the validity of the source and target meshes is checked before performing mapping, raising an error if they are invalid. If permissive is set to true, no check is done. Default is true.

## Scripting

This operator can be accessed through scripting interfaces using these identifiers.

**Category**: mapping

**Plugin**: N/A

**Scripting name**: None

**Full name**: None

**Internal name**: sysc\_shape\_function\_wf

**License**: any\_dpf\_supported\_increments

## Examples

These examples demonstrate how to use this operator in different programming environments.
Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

<details>
  <summary>C++</summary>

  ```cpp theme={null}
  #include "dpf_api.h"

  ansys::dpf::Operator op("sysc_shape_function_wf"); // operator instantiation
  op.connect(0, my_source_mesh);
  op.connect(1, my_target_mesh);
  op.connect(6, my_target_scoping);
  op.connect(10, my_options_data_tree);
  ansys::dpf::Workflow my_mapping_workflow = op.getOutput<ansys::dpf::Workflow>(0);
  ```
</details>

<details>
  <summary>CPython</summary>

  ```python theme={null}
  import ansys.dpf.core as dpf

  op = dpf.operators.mapping.None() # operator instantiation
  op.inputs.source_mesh.connect(my_source_mesh)
  op.inputs.target_mesh.connect(my_target_mesh)
  op.inputs.target_scoping.connect(my_target_scoping)
  op.inputs.options_data_tree.connect(my_options_data_tree)
  my_mapping_workflow = op.outputs.mapping_workflow()
  ```
</details>

<details>
  <summary>IPython</summary>

  ```python theme={null}
  import mech_dpf
  import Ans.DataProcessing as dpf

  op = dpf.operators.mapping.None() # operator instantiation
  op.inputs.source_mesh.Connect(my_source_mesh)
  op.inputs.target_mesh.Connect(my_target_mesh)
  op.inputs.target_scoping.Connect(my_target_scoping)
  op.inputs.options_data_tree.Connect(my_options_data_tree)
  my_mapping_workflow = op.outputs.mapping_workflow.GetData()
  ```
</details>

## Changelog

* Version 0.0.0: Initial release.
