InputsForwardFieldsContainer#

class ansys.dpf.core.operators.utility.forward_fields_container.InputsForwardFieldsContainer(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to forward_fields_container operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.forward_fields_container()
>>> my_fields = dpf.FieldsContainer()
>>> op.inputs.fields.connect(my_fields)

Overview#

connect

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

fields

Allows to connect fields input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.forward_fields_container import InputsForwardFieldsContainer

Property detail#

property InputsForwardFieldsContainer.fields: ansys.dpf.core.inputs.Input[ansys.dpf.core.fields_container.FieldsContainer | ansys.dpf.core.field.Field]#

Allows to connect fields input to the operator.

FieldsContainer or field to forward

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.forward_fields_container()
>>> op.inputs.fields.connect(my_fields)
>>> # or
>>> op.inputs.fields(my_fields)

Method detail#

InputsForwardFieldsContainer.__str__()#
InputsForwardFieldsContainer.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.

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