Skip to main content

DPF Framework 2026 R1

mesh:morphed field

Last update: 31.07.2026

Version: 0.0.0

Description

Computes the displacement to apply on input coordinates (in 2) if a morphing field (in 0) is applied on coordinates (in 1)

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_coordinates abstract_meshed_region
2 coordinates Required field, abstract_meshed_region
4 morphing_type int32
5 morphing_manager_data
6 sliding_planes field
7 sliding_nodes scopings_container

displacement (Pin 0)

expects either a field or a fields container with one field

disp_coordinates (Pin 1)

coordinates on which the displacement field are applied

coordinates (Pin 2)

coordinates to evaluate

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)

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 coordinates_displacement field

coordinates_displacement (Pin 0)

  • Expected type(s): field

displacement of each point of the input coordinates

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: morphed_field

Full name: mesh.morphed_field

Internal name: morphed_field

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("morphed_field"); // operator instantiation
op.connect(0, my_displacement);
op.connect(1, my_disp_coordinates);
op.connect(2, my_coordinates);
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::Field my_coordinates_displacement = op.getOutput<ansys::dpf::Field>(0);
CPython
import ansys.dpf.core as dpf

op = dpf.operators.mesh.morphed_field() # operator instantiation
op.inputs.displacement.connect(my_displacement)
op.inputs.disp_coordinates.connect(my_disp_coordinates)
op.inputs.coordinates.connect(my_coordinates)
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_coordinates_displacement = op.outputs.coordinates_displacement()
IPython
import mech_dpf
import Ans.DataProcessing as dpf

op = dpf.operators.mesh.morphed_field() # operator instantiation
op.inputs.displacement.Connect(my_displacement)
op.inputs.disp_coordinates.Connect(my_disp_coordinates)
op.inputs.coordinates.Connect(my_coordinates)
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_coordinates_displacement = op.outputs.coordinates_displacement.GetData()

Changelog

  • Version 0.0.0: Initial release.

Connect with Ansys