InputsProducerConsumerForEach#
- class ansys.dpf.core.operators.utility.producer_consumer_for_each.InputsProducerConsumerForEach(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to producer_consumer_for_each operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.producer_consumer_for_each() >>> my_producer_consumer_iterableq = dpf.() >>> op.inputs.producer_consumer_iterableq.connect(my_producer_consumer_iterableq) >>> my_forward1 = dpf.() >>> op.inputs.forward1.connect(my_forward1) >>> my_forward2 = dpf.() >>> op.inputs.forward2.connect(my_forward2)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect producer_consumer_iterableq input to the operator. |
|
Allows to connect forward1 input to the operator. |
|
Allows to connect forward2 input to the operator. |
Import detail#
from ansys.dpf.core.operators.utility.producer_consumer_for_each import InputsProducerConsumerForEach
Property detail#
- property InputsProducerConsumerForEach.producer_consumer_iterableq: ansys.dpf.core.inputs.Input#
Allows to connect producer_consumer_iterableq input to the operator.
The result of the make_producer_consumer_for_each_iterator operator.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.producer_consumer_for_each() >>> op.inputs.producer_consumer_iterableq.connect(my_producer_consumer_iterableq) >>> # or >>> op.inputs.producer_consumer_iterableq(my_producer_consumer_iterableq)
- property InputsProducerConsumerForEach.forward1: ansys.dpf.core.inputs.Input#
Allows to connect forward1 input to the operator.
output of the last operators of the workflow
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.producer_consumer_for_each() >>> op.inputs.forward1.connect(my_forward1) >>> # or >>> op.inputs.forward1(my_forward1)
- property InputsProducerConsumerForEach.forward2: ansys.dpf.core.inputs.Input#
Allows to connect forward2 input to the operator.
output of the last operators of the workflow
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.producer_consumer_for_each() >>> op.inputs.forward2.connect(my_forward2) >>> # or >>> op.inputs.forward2(my_forward2)
Method detail#
- InputsProducerConsumerForEach.__str__()#
- InputsProducerConsumerForEach.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.
- InputsProducerConsumerForEach.__call__(inpt)#