mapping:system coupling mapping
Last update: 31.07.2026Version: 0.0.0
Description
Apply System Coupling 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 | Required | abstract_meshed_region |
| 1 | target_mesh | Required | abstract_meshed_region |
| 2 | is_conservative | Required | bool |
| 3 | location | Required | string |
| 4 | dimensionality | Required | int32 |
| 5 | target_scoping | scoping, scopings_container |
|
| 6 | source_data | Required | field, fields_container |
source_mesh (Pin 0)
- Required: Yes
- Expected type(s):
abstract_meshed_region
Mesh where the source data is defined.interpolations only support meshed_region.
target_mesh (Pin 1)
- Required: Yes
- Expected type(s):
abstract_meshed_region
Mesh where the target data is defined. interpolations only support meshed_region.
is_conservative (Pin 2)
- Required: Yes
- Expected type(s):
bool
Boolean that indicates if the mapped variable is conservative (e.g. force) or not (e.g. pressure).
location (Pin 3)
- Required: Yes
- Expected type(s):
string
Mesh support of the mapped variable. Supported options: Nodal and Elemental.
dimensionality (Pin 4)
- Required: Yes
- Expected type(s):
int32
Dimensionality of the mapped variable. Supported options: 1 and 3 (scalars or vectors).
target_scoping (Pin 5)
- Required: No
- Expected type(s):
scoping,scopings_container
Scoping that restricts the interpolation to a given set of nodes/elements in the target mesh.
source_data (Pin 6)
- Required: Yes
- Expected type(s):
field,fields_container
data to be mapped.
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 | target_data | fields_container |
target_data (Pin 0)
- Expected type(s):
fields_container
data mapped on the target mesh
Configurations
This operator supports configuration options that modify its behavior.
mutex
- Expected type(s):
bool - Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
permissive
- Expected type(s):
bool - 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: sc_mapping
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.
C++
#include "dpf_api.h"
ansys::dpf::Operator op("sc_mapping"); // operator instantiation
op.connect(0, my_source_mesh);
op.connect(1, my_target_mesh);
op.connect(2, my_is_conservative);
op.connect(3, my_location);
op.connect(4, my_dimensionality);
op.connect(5, my_target_scoping);
op.connect(6, my_source_data);
ansys::dpf::FieldsContainer my_target_data = op.getOutput<ansys::dpf::FieldsContainer>(0);
CPython
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.is_conservative.connect(my_is_conservative)
op.inputs.location.connect(my_location)
op.inputs.dimensionality.connect(my_dimensionality)
op.inputs.target_scoping.connect(my_target_scoping)
op.inputs.source_data.connect(my_source_data)
my_target_data = op.outputs.target_data()
IPython
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.is_conservative.Connect(my_is_conservative)
op.inputs.location.Connect(my_location)
op.inputs.dimensionality.Connect(my_dimensionality)
op.inputs.target_scoping.Connect(my_target_scoping)
op.inputs.source_data.Connect(my_source_data)
my_target_data = op.outputs.target_data.GetData()
Changelog
- Version 0.0.0: Initial release.