to_elemental_fc class
Last update: 18.06.2026Namespace: Ans.DataProcessing.operators.averaging
Summary
Transforms Input fields into Elemental fields using an averaging process. The result is computed on a given element's scoping.
available inputs: fields_container (FieldsContainer), mesh (MeshedRegion) (optional), mesh_scoping (Scoping) (optional), smoothen_values (bool) (optional), collapse_shell_layers (bool) (optional), merge_solid_shell (bool) (optional), shell_layer (Int32) (optional)
available outputs: fields_container (FieldsContainer)
Example
op = to_elemental_fc()
op = to_elemental_fc(fields_container=my_fields_container,mesh=my_mesh,mesh_scoping=my_mesh_scoping,smoothen_values=my_smoothen_values,collapse_shell_layers=my_collapse_shell_layers,merge_solid_shell=my_merge_solid_shell,shell_layer=my_shell_layer)
Class Information
| Property | Value |
|---|---|
| Namespace | Ans.DataProcessing.operators.averaging |
| Assembly | Ans_Dpf_FEMutils_dll_cs |
| Base Class | Ans.DataProcessing.internal_objects.BaseOperator |
Inputs
fields_container
Type: LinkableInput
mesh
Type: LinkableInput
mesh_scoping
Type: LinkableInput
smoothen_values
if it is set to true, Elemental Nodal fields are first averaged on nodes and then averaged on elements (default is false).
Type: LinkableInput
collapse_shell_layers
If true, the data across different shell layers is averaged as well (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 and collapse_shell_layers is false, 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
to_elemental_fc()
Constructor
to_elemental_fc(fields_container, mesh, mesh_scoping, smoothen_values, collapse_shell_layers, merge_solid_shell, shell_layer, config)
Parameters:
fields_container(object)mesh(object)mesh_scoping(object)smoothen_values(object)collapse_shell_layers(object)merge_solid_shell(object)shell_layer(object)config(OperatorConfig)
Constructor
to_elemental_fc(config)
Parameters:
config(OperatorConfig)
Methods
Properties
inputs
Type: InputSpec
# Get or set the property
value = obj.inputs
obj.inputs = new_value
outputs
Type: OutputSpec
# Get or set the property
value = obj.outputs
obj.outputs = new_value
defaultConfig
Type: Config
# Get the property (read-only)
value = obj.defaultConfig