mesh:morphing
Last update: 31.07.2026Version: 0.0.0
Description
Applies morphing on a meshed region depending on an input displacement field.
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 | displacement | Required | field, fields_container |
| 1 | disp_mesh | abstract_meshed_region |
|
| 2 | mesh | Required | abstract_meshed_region |
| 3 | in_place | bool |
|
| 4 | morphing_type | int32 |
|
| 5 | morphing_manager_data | ||
| 6 | sliding_planes | field |
|
| 7 | sliding_nodes | scopings_container |
displacement (Pin 0)
- Required: Yes
- Expected type(s):
field,fields_container
expects either a field or a fields container with one field
disp_mesh (Pin 1)
- Required: No
- Expected type(s):
abstract_meshed_region
mesh on which displacement are scoped
mesh (Pin 2)
- Required: Yes
- Expected type(s):
abstract_meshed_region
mesh to morph
in_place (Pin 3)
- Required: No
- Expected type(s):
bool
Apply in place morhing (the input mesh is changed instead of copied) (default is true)
morphing_type (Pin 4)
- Required: No
- Expected type(s):
int32
morphing algorithm to use (0=PrimeRBF, 1=BSpline, 2=TetLinear, 3=TetRBF, 4=FFI) (default is 0)
morphing_manager_data (Pin 5)
- Required: No
- Expected type(s):
Morphing Manager Data from prepare_morphing_operator (needed if disp_coordinates not specified).
sliding_planes (Pin 6)
- Required: No
- Expected type(s):
field
Sliding planes
sliding_nodes (Pin 7)
- Required: No
- Expected type(s):
scopings_container
Sliding nodes
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 | mesh | abstract_meshed_region |
mesh (Pin 0)
- Expected type(s):
abstract_meshed_region
morphed 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.
num_threads
- Expected type(s):
int32 - Default value: 1
run_in_parallel
- Expected type(s):
bool - Default value: false
Loops are allowed to run in parallel if the value of this config is set to true.
Scripting
This operator can be accessed through scripting interfaces using these identifiers.
Category: mesh
Plugin: N/A
Scripting name: morphing
Full name: mesh.morphing
Internal name: morphing
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("morphing"); // operator instantiation
op.connect(0, my_displacement);
op.connect(1, my_disp_mesh);
op.connect(2, my_mesh);
op.connect(3, my_in_place);
op.connect(4, my_morphing_type);
op.connect(5, my_morphing_manager_data);
op.connect(6, my_sliding_planes);
op.connect(7, my_sliding_nodes);
ansys::dpf::MeshedRegion my_mesh = op.getOutput<ansys::dpf::MeshedRegion>(0);
CPython
import ansys.dpf.core as dpf
op = dpf.operators.mesh.morphing() # operator instantiation
op.inputs.displacement.connect(my_displacement)
op.inputs.disp_mesh.connect(my_disp_mesh)
op.inputs.mesh.connect(my_mesh)
op.inputs.in_place.connect(my_in_place)
op.inputs.morphing_type.connect(my_morphing_type)
op.inputs.morphing_manager_data.connect(my_morphing_manager_data)
op.inputs.sliding_planes.connect(my_sliding_planes)
op.inputs.sliding_nodes.connect(my_sliding_nodes)
my_mesh = op.outputs.mesh()
IPython
import mech_dpf
import Ans.DataProcessing as dpf
op = dpf.operators.mesh.morphing() # operator instantiation
op.inputs.displacement.Connect(my_displacement)
op.inputs.disp_mesh.Connect(my_disp_mesh)
op.inputs.mesh.Connect(my_mesh)
op.inputs.in_place.Connect(my_in_place)
op.inputs.morphing_type.Connect(my_morphing_type)
op.inputs.morphing_manager_data.Connect(my_morphing_manager_data)
op.inputs.sliding_planes.Connect(my_sliding_planes)
op.inputs.sliding_nodes.Connect(my_sliding_nodes)
my_mesh = op.outputs.mesh.GetData()
Changelog
- Version 0.0.0: Initial release.