Skip to main content
Version: 0.0.0

Description

Transforms Elemental Nodal fields into Nodal fields using an averaging process. The result is computed on a given node’s scoping. If the input fields are mixed shell/solid, then the fields are split by element shape and the output fields container has an elshape label depending on the merge_solid_shell input.

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.

fields_container (Pin 0)

mesh (Pin 1)

The mesh region in this pin is used to perform the averaging. It is used if there is no fields support.

should_average (Pin 2)

  • Required: No
  • Expected type(s): bool
Each nodal value is divided by the number of elements linked to this node (default is true for discrete quantities).

scoping (Pin 3)

Average only on these nodes. If it is a scoping container, the label must correspond to the one of the fields containers.

extend_to_mid_nodes (Pin 4)

  • Required: No
  • Expected type(s): bool
Compute mid nodes (when available) by averaging the neighbour primary nodes.

extend_weights_to_mid_nodes (Pin 5)

  • Required: No
  • Expected type(s): bool
Extends weights to mid nodes (when available). Default is false.

merge_solid_shell (Pin 26)

  • Required: No
  • Expected type(s): bool
For shell/solid mixed fields, group in the same field all solids and shells (false by default). If this pin is true, a shell_layer needs to be specified.

shell_layer (Pin 27)

  • Required: No
  • Expected type(s): int32
0: Top, 1: Bottom, 2: BottomTop, 3: Mid, 4: BottomTopMid. If merge_solid_shell is true, this pin needs to be specified to a value that extracts only one layer (Top, Bottom or Mid).

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.

fields_container (Pin 0)

weights (Pin 1)

  • Expected type(s): class dataProcessing::DpfTypeCollection<class dataProcessing::CPropertyField>
Gives for each node, the number of times it was found in the Elemental Nodal field. Can be used to average later.

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: 0
Number of threads to use to run in parallel

run_in_parallel

  • Expected type(s): bool
  • Default value: true
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: averaging Plugin: core Scripting name: elemental_nodal_to_nodal_fc Full name: averaging.elemental_nodal_to_nodal_fc Internal name: elemental_nodal_To_nodal_fc License: None

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.