InputsMergeAny#

class ansys.dpf.core.operators.utility.merge_any.InputsMergeAny(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to merge_any operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.merge_any()
>>> my_any1 = dpf.Any()
>>> op.inputs.any1.connect(my_any1)
>>> my_any2 = dpf.Any()
>>> op.inputs.any2.connect(my_any2)

Overview#

connect

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

any1

Allows to connect any1 input to the operator.

any2

Allows to connect any2 input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.merge_any import InputsMergeAny

Property detail#

property InputsMergeAny.any1: ansys.dpf.core.inputs.Input[ansys.dpf.core.any.Any]#

Allows to connect any1 input to the operator.

Either a vector of objects (sharing the same data types) or objects from pin 0 to … to merge. Supported types rely on existing type specific merge operators.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.merge_any()
>>> op.inputs.any1.connect(my_any1)
>>> # or
>>> op.inputs.any1(my_any1)
property InputsMergeAny.any2: ansys.dpf.core.inputs.Input[ansys.dpf.core.any.Any]#

Allows to connect any2 input to the operator.

Either a vector of objects (sharing the same data types) or objects from pin 0 to … to merge. Supported types rely on existing type specific merge operators.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.merge_any()
>>> op.inputs.any2.connect(my_any2)
>>> # or
>>> op.inputs.any2(my_any2)

Method detail#

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

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