Skip to main content

DPF Mechanical 2026 R1

average_over_label_fc class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.math

Summary

Compute the component-wise average over all the fields that have the same ID as the label set as input in the fields container. This computation can be incremental. If the input fields container is connected and the operator is run multiple times, the output field will be on all the connected inputs.

available inputs: fields_container (FieldsContainer), label (string) (optional)

available outputs: field (Field)

Example

op = average_over_label_fc()

op = average_over_label_fc(fields_container=my_fields_container,label=my_label)

Class Information

Property Value
Namespace Ans.DataProcessing.operators.math
Assembly Ans_Dpf_Native_dll_cs
Base Class Ans.DataProcessing.internal_objects.BaseOperator

Inputs

fields_container

Type: LinkableInput

label

Label of the fields container where it should operate. If not defined and the input Fields Container has only one Label, the operation will be done over all the fields.

Type: LinkableInput

Outputs

field

Type: LinkableOutput

Constructors

Constructor

average_over_label_fc()

Constructor

average_over_label_fc(fields_container, label, config)

Parameters:

  • fields_container (object)
  • label (object)
  • config (OperatorConfig)

Constructor

average_over_label_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

Connect with Ansys