Skip to main content
Namespace: Ans.DataProcessing.operators.averaging

Summary

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. available inputs: fields_container (FieldsContainer), mesh (MeshedRegion, MeshesContainer) (optional), should_average (bool) (optional), scoping (Scoping, ScopingsContainer) (optional), extend_to_mid_nodes (bool) (optional), extend_weights_to_mid_nodes (bool) (optional), merge_solid_shell (bool) (optional), shell_layer (Int32) (optional) available outputs: fields_container (FieldsContainer), weights ()

Example

Class Information

Inputs

fields_container

Type: LinkableInput

mesh

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

should_average

Each nodal value is divided by the number of elements linked to this node (default is true for discrete quantities). Type: LinkableInput

scoping

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

extend_to_mid_nodes

Compute mid nodes (when available) by averaging the neighbour primary nodes. Type: LinkableInput

extend_weights_to_mid_nodes

Extends weights to mid nodes (when available). Default is false. Type: LinkableInput

merge_solid_shell

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. Type: LinkableInput

shell_layer

0: 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). Type: LinkableInput

Outputs

fields_container

Type: LinkableOutput

Constructors

Constructor

Constructor

Parameters:
  • fields_container (object)
  • mesh (object)
  • should_average (object)
  • scoping (object)
  • extend_to_mid_nodes (object)
  • extend_weights_to_mid_nodes (object)
  • merge_solid_shell (object)
  • shell_layer (object)
  • config (OperatorConfig)

Constructor

Parameters:
  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

outputs

Type: OutputSpec

defaultConfig

Type: Config