InputsWeightedMergeFieldsByLabel#

class ansys.dpf.core.operators.utility.weighted_merge_fields_by_label.InputsWeightedMergeFieldsByLabel(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to weighted_merge_fields_by_label operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> my_fields_container = dpf.FieldsContainer()
>>> op.inputs.fields_container.connect(my_fields_container)
>>> my_label = str()
>>> op.inputs.label.connect(my_label)
>>> my_merged_field_support = dpf.AbstractFieldSupport()
>>> op.inputs.merged_field_support.connect(my_merged_field_support)
>>> my_sum_merge = bool()
>>> op.inputs.sum_merge.connect(my_sum_merge)
>>> my_weights1 = dpf.PropertyField()
>>> op.inputs.weights1.connect(my_weights1)
>>> my_weights2 = dpf.PropertyField()
>>> op.inputs.weights2.connect(my_weights2)

Overview#

connect

Connect any input (an entity or an operator output) to any input pin of this operator.

fields_container

Allows to connect fields_container input to the operator.

label

Allows to connect label input to the operator.

merged_field_support

Allows to connect merged_field_support input to the operator.

sum_merge

Allows to connect sum_merge input to the operator.

weights1

Allows to connect weights1 input to the operator.

weights2

Allows to connect weights2 input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.weighted_merge_fields_by_label import InputsWeightedMergeFieldsByLabel

Property detail#

property InputsWeightedMergeFieldsByLabel.fields_container: ansys.dpf.core.inputs.Input[ansys.dpf.core.fields_container.FieldsContainer]#

Allows to connect fields_container input to the operator.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> op.inputs.fields_container.connect(my_fields_container)
>>> # or
>>> op.inputs.fields_container(my_fields_container)
property InputsWeightedMergeFieldsByLabel.label: ansys.dpf.core.inputs.Input[str]#

Allows to connect label input to the operator.

Label identifier that should be merged.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> op.inputs.label.connect(my_label)
>>> # or
>>> op.inputs.label(my_label)
property InputsWeightedMergeFieldsByLabel.merged_field_support: ansys.dpf.core.inputs.Input#

Allows to connect merged_field_support input to the operator.

The FieldsContainer’s support that has already been merged.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> op.inputs.merged_field_support.connect(my_merged_field_support)
>>> # or
>>> op.inputs.merged_field_support(my_merged_field_support)
property InputsWeightedMergeFieldsByLabel.sum_merge: ansys.dpf.core.inputs.Input[bool]#

Allows to connect sum_merge input to the operator.

Default is false. If true, redundant quantities are summed instead of being ignored.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> op.inputs.sum_merge.connect(my_sum_merge)
>>> # or
>>> op.inputs.sum_merge(my_sum_merge)
property InputsWeightedMergeFieldsByLabel.weights1: ansys.dpf.core.inputs.Input[ansys.dpf.core.property_field.PropertyField]#

Allows to connect weights1 input to the operator.

Weights to apply to each field from pin 1000 to …

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> op.inputs.weights1.connect(my_weights1)
>>> # or
>>> op.inputs.weights1(my_weights1)
property InputsWeightedMergeFieldsByLabel.weights2: ansys.dpf.core.inputs.Input[ansys.dpf.core.property_field.PropertyField]#

Allows to connect weights2 input to the operator.

Weights to apply to each field from pin 1000 to …

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.weighted_merge_fields_by_label()
>>> op.inputs.weights2.connect(my_weights2)
>>> # or
>>> op.inputs.weights2(my_weights2)

Method detail#

InputsWeightedMergeFieldsByLabel.__str__()#
InputsWeightedMergeFieldsByLabel.connect(inpt)#

Connect any input (an entity or an operator output) to any input pin of this operator.

Searches for the input type corresponding to the output.

Deprecated since version Deprecated: in favor of explicit output-to-input connections.

InputsWeightedMergeFieldsByLabel.__call__(inpt)#
InputsWeightedMergeFieldsByLabel.__getitem__(item) → Input#