Skip to main content

averaging:elemental nodal to nodal (fields container)

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

InputNameExpected type(s)Description
Pin 0
Required
fields_containerfields_container
Pin 1meshabstract_meshed_region, meshes_containerThe mesh region in this pin is used to perform the averaging. It is used if there is no fields support.
Pin 2should_averageboolEach nodal value is divided by the number of elements linked to this node (default is true for discrete quantities).
Pin 3scopingscoping, scopings_containerAverage only on these nodes. If it is a scoping container, the label must correspond to the one of the fields containers.
Pin 4extend_to_mid_nodesboolCompute mid nodes (when available) by averaging the neighbour primary nodes.
Pin 5extend_weights_to_mid_nodesboolExtends weights to mid nodes (when available). Default is false.
Pin 26merge_solid_shellboolFor 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.
Pin 27shell_layerint320: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. 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

OutputNameExpected type(s)Description
Pin 0fields_containerfields_container
Pin 1weightsclass 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

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
num_threadsint320Number of threads to use to run in parallel
run_in_parallelbooltrueLoops are allowed to run in parallel if the value of this config is set to true.

Scripting

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

Changelog

  • Version 0.0.0: Initial release.