InputsForward#
- class ansys.dpf.core.operators.utility.forward.InputsForward(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to forward operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.forward() >>> my_any1 = dpf.Any() >>> op.inputs.any1.connect(my_any1) >>> my_any2 = dpf.Any() >>> op.inputs.any2.connect(my_any2)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Import detail#
from ansys.dpf.core.operators.utility.forward import InputsForward
Property detail#
- property InputsForward.any1: ansys.dpf.core.inputs.Input[ansys.dpf.core.any.Any]#
Allows to connect any1 input to the operator.
any type of input
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.forward() >>> op.inputs.any1.connect(my_any1) >>> # or >>> op.inputs.any1(my_any1)
- property InputsForward.any2: ansys.dpf.core.inputs.Input[ansys.dpf.core.any.Any]#
Allows to connect any2 input to the operator.
any type of input
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.forward() >>> op.inputs.any2.connect(my_any2) >>> # or >>> op.inputs.any2(my_any2)
Method detail#
- InputsForward.__getattr__(name)#
- InputsForward.__str__()#
- InputsForward.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.
- InputsForward.__call__(inpt)#