Skip to main content
Version: 0.0.0

Description

Prepare mapping of source data from source mesh to target mesh by operating the source_mesh/target_mesh weights computation. This operator needs to be used with the apply mechanical native mapping associated one. At least one of the optional DataTree inputs need to be set, in order to chose the mapping algorithm and set the mapping options.

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.

source_mesh (Pin 0)

Source mesh

target_mesh (Pin 1)

Target mesh. Can be a meshed region or a node coordinates field depending on the algorithm that is used. Refer to the dedicated algorithm operator documentation.

target_mesh_scoping (Pin 3)

  • Required: No
  • Expected type(s): scoping
Target mesh scoping. If used, ensure to give only the elements where results are expected into source mesh input to have optimized computation.

html_report_path (Pin 8)

  • Required: No
  • Expected type(s): string
Path for html report (for example ‘my_disk/my_report.html’). If set, an html report will be generated and exported to the html file. If not set, nothing will be generated.

threads_user_requested (Pin 9)

  • Required: No
  • Expected type(s): int32
Number of threads to be used to parallelize apply operations.

shape_function_volumes_mapping (Pin 30)

Mapping options as DataTree object with ‘mapping_options’ subtree for mapping with shape function algorithm. Another ‘data_definition’ subtree needs to be contained, with at least ‘dimensionality’ int and ‘location’ string attributes. The other ‘data_definition’ and ‘mapping_options’ attributes can be found looking at the corresponding operator definition. The available mapping_options are: scale (int), edge_tolerance (double), conservative (bool), ignore_outside_nodes (bool). Corresponding operator definition can be checked to know the default values of the mapping options.

shape_function_surfaces_mapping (Pin 31)

Mapping options as DataTree object with ‘mapping_options’ subtree for mapping with shape function algorithm. Another ‘data_definition’ subtree needs to be contained, with at least ‘dimensionality’ int and ‘location’ string attributes. The other ‘data_definition’ and ‘mapping_options’ attributes can be found looking at the corresponding operator definition. The available mapping_options are: scale (int), edge_tolerance (double), conservative (bool), ignore_outside_nodes (bool), key (string), normal_distance_check (bool), normal_tolerance (double), pinball_controll (bool), pinball_key (string), exclude_elements_outside_pinball (bool), pinball_value (double). Corresponding operator definition can be checked to know the default values of the mapping options.

point_cloud_mapping (Pin 32)

Mapping options as DataTree object with ‘mapping_options’ subtree for mapping with point cloud algorithm. Another ‘data_definition’ subtree needs to be contained, with at least ‘dimensionality’ int and ‘location’ string attributes. The other ‘data_definition’ and ‘mapping_options’ attributes can be found looking at the corresponding operator definition. The available mapping_options are: weighting_type (string), outside_option (string), num_outside_nodes (int), max_outside_distance (double), search_limit (int), bouding_box_range (double), geometry_type (string),shell_thickness_factor (double). Corresponding operator definition can be checked to know the default values of the mapping options.

kriging_mapping (Pin 33)

Mapping options as DataTree object with ‘mapping_options’ subtree for mapping with kriging algorithm. Another ‘data_definition’ subtree needs to be contained, with at least ‘dimensionality’ int and ‘location’ string attributes. The other ‘data_definition’ and ‘mapping_options’ attributes can be found looking at the corresponding operator definition. The available mapping_options are: samples_limit (int), correlation_function_type (string), polynomial_type (string), outside_distance_checking (bool), bouding_box_tolerance (double), adaptive_tolerance_percent (double), geometry_type (string). Corresponding operator definition can be checked to know the default values of the mapping options.

is_element_centroidal_data_mapping (Pin 100)

  • Required: No
  • Expected type(s): bool
Default is ‘false’. Set to ‘true’ if the source elemental data is representing as element centroidal nodal data

projection_options (Pin 101)

Default is empty. This data tree contains 2D projection options for mapping 2D to 3D

dynamic_coordinate_system (Pin 102)

Default is empty. This data tree contains the dynamic coordinate system for performing rigid body transformation on the source mesh

source_dimension (Pin 103)

  • Required: No
  • Expected type(s): string
Default is empty string. The string contains either “2D” or “3D” which specifies the source dimension

wb_external_data_info (Pin 104)

Default is empty. This data tree contains the Rigid & Analytical transformations specified in the workbench external data system

target_dimension (Pin 105)

  • Required: No
  • Expected type(s): string
Default is empty string. The string contains either “2D” or “3D” which specifies the target dimension

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.

source_mesh (Pin 0)

Source mesh

source_mesh_id (Pin 1)

  • Expected type(s): int32
Source mesh id

target_mesh (Pin 2)

Target mesh

target_mesh_id (Pin 3)

  • Expected type(s): int32
Target mesh id

mapping_manager_data (Pin 4)

  • Expected type(s):

target_scoping (Pin 6)

Target scoping

prepare_output (Pin 7)

  • Expected type(s):
A Map containing the outputs of the mapping as a key value pair

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.

Scripting

This operator can be accessed through scripting interfaces using these identifiers. Category: mapping Plugin: N/A Scripting name: prepare_mechanical_native_mapping Full name: mapping.prepare_mechanical_native_mapping Internal name: mechanical_native_mapping::prepare 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.

Changelog

  • Version 0.0.0: Initial release.