InputsMakeProducerConsumerForEachIterator#

class ansys.dpf.core.operators.utility.make_producer_consumer_for_each_iterator.InputsMakeProducerConsumerForEachIterator(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to make_producer_consumer_for_each_iterator operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.make_producer_consumer_for_each_iterator()
>>> my_try_generate_iterable = bool()
>>> op.inputs.try_generate_iterable.connect(my_try_generate_iterable)
>>> my_iterable = dpf.()
>>> op.inputs.iterable.connect(my_iterable)
>>> my_operator_to_iterate = dpf.Operator()
>>> op.inputs.operator_to_iterate.connect(my_operator_to_iterate)
>>> my_pin_index = int()
>>> op.inputs.pin_index.connect(my_pin_index)
>>> my_valueA = dpf.()
>>> op.inputs.valueA.connect(my_valueA)
>>> my_valueB = dpf.()
>>> op.inputs.valueB.connect(my_valueB)
>>> my_valueC1 = dpf.()
>>> op.inputs.valueC1.connect(my_valueC1)
>>> my_valueC2 = dpf.()
>>> op.inputs.valueC2.connect(my_valueC2)
>>> my_producer_op11 = dpf.Operator()
>>> op.inputs.producer_op11.connect(my_producer_op11)
>>> my_producer_op12 = dpf.Operator()
>>> op.inputs.producer_op12.connect(my_producer_op12)
>>> my_output_pin_of_producer_op11 = int()
>>> op.inputs.output_pin_of_producer_op11.connect(my_output_pin_of_producer_op11)
>>> my_output_pin_of_producer_op12 = int()
>>> op.inputs.output_pin_of_producer_op12.connect(my_output_pin_of_producer_op12)
>>> my_input_pin_of_consumer_op11 = int()
>>> op.inputs.input_pin_of_consumer_op11.connect(my_input_pin_of_consumer_op11)
>>> my_input_pin_of_consumer_op12 = int()
>>> op.inputs.input_pin_of_consumer_op12.connect(my_input_pin_of_consumer_op12)
>>> my_consumer_op11 = dpf.Operator()
>>> op.inputs.consumer_op11.connect(my_consumer_op11)
>>> my_consumer_op12 = dpf.Operator()
>>> op.inputs.consumer_op12.connect(my_consumer_op12)

Overview#

connect

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

try_generate_iterable

Allows to connect try_generate_iterable input to the operator.

iterable

Allows to connect iterable input to the operator.

operator_to_iterate

Allows to connect operator_to_iterate input to the operator.

pin_index

Allows to connect pin_index input to the operator.

valueA

Allows to connect valueA input to the operator.

valueB

Allows to connect valueB input to the operator.

valueC1

Allows to connect valueC1 input to the operator.

valueC2

Allows to connect valueC2 input to the operator.

producer_op11

Allows to connect producer_op11 input to the operator.

producer_op12

Allows to connect producer_op12 input to the operator.

output_pin_of_producer_op11

Allows to connect output_pin_of_producer_op11 input to the operator.

output_pin_of_producer_op12

Allows to connect output_pin_of_producer_op12 input to the operator.

input_pin_of_consumer_op11

Allows to connect input_pin_of_consumer_op11 input to the operator.

input_pin_of_consumer_op12

Allows to connect input_pin_of_consumer_op12 input to the operator.

consumer_op11

Allows to connect consumer_op11 input to the operator.

consumer_op12

Allows to connect consumer_op12 input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.make_producer_consumer_for_each_iterator import InputsMakeProducerConsumerForEachIterator

Property detail#

property InputsMakeProducerConsumerForEachIterator.try_generate_iterable: ansys.dpf.core.inputs.Input[bool]#

Allows to connect try_generate_iterable input to the operator.

if true, already iterable values connected in pin 3 like vectors, Scoping, TimefreqSupport, Containers and DataSources are split to iterate on it (default is true)

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.make_producer_consumer_for_each_iterator()
>>> op.inputs.try_generate_iterable.connect(my_try_generate_iterable)
>>> # or
>>> op.inputs.try_generate_iterable(my_try_generate_iterable)
property InputsMakeProducerConsumerForEachIterator.iterable: ansys.dpf.core.inputs.Input#

Allows to connect iterable input to the operator.

Iterable object, generated by make_for_each_range oeprator, that can be combined with the one currently generated.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.make_producer_consumer_for_each_iterator()
>>> op.inputs.iterable.connect(my_iterable)
>>> # or
>>> op.inputs.iterable(my_iterable)
property InputsMakeProducerConsumerForEachIterator.operator_to_iterate: ansys.dpf.core.inputs.Input[ansys.dpf.core.dpf_operator.Operator]#

Allows to connect operator_to_iterate input to the operator.

Operator that must be reconnected with the range values.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.make_producer_consumer_for_each_iterator()
>>> op.inputs.operator_to_iterate.connect(my_operator_to_iterate)
>>> # or
>>> op.inputs.operator_to_iterate(my_operator_to_iterate)
property InputsMakeProducerConsumerForEachIterator.pin_index: ansys.dpf.core.inputs.Input[int]#

Allows to connect pin_index 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.pin_index.connect(my_pin_index)
>>> # or
>>> op.inputs.pin_index(my_pin_index)
property InputsMakeProducerConsumerForEachIterator.valueA: ansys.dpf.core.inputs.Input#

Allows to connect valueA 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.valueA.connect(my_valueA)
>>> # or
>>> op.inputs.valueA(my_valueA)
property InputsMakeProducerConsumerForEachIterator.valueB: ansys.dpf.core.inputs.Input#

Allows to connect valueB 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.valueB.connect(my_valueB)
>>> # or
>>> op.inputs.valueB(my_valueB)
property InputsMakeProducerConsumerForEachIterator.valueC1: ansys.dpf.core.inputs.Input#

Allows to connect valueC1 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.valueC1.connect(my_valueC1)
>>> # or
>>> op.inputs.valueC1(my_valueC1)
property InputsMakeProducerConsumerForEachIterator.valueC2: ansys.dpf.core.inputs.Input#

Allows to connect valueC2 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.valueC2.connect(my_valueC2)
>>> # or
>>> op.inputs.valueC2(my_valueC2)
property InputsMakeProducerConsumerForEachIterator.producer_op11: ansys.dpf.core.inputs.Input[ansys.dpf.core.dpf_operator.Operator]#

Allows to connect producer_op11 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.producer_op11.connect(my_producer_op11)
>>> # or
>>> op.inputs.producer_op11(my_producer_op11)
property InputsMakeProducerConsumerForEachIterator.producer_op12: ansys.dpf.core.inputs.Input[ansys.dpf.core.dpf_operator.Operator]#

Allows to connect producer_op12 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.producer_op12.connect(my_producer_op12)
>>> # or
>>> op.inputs.producer_op12(my_producer_op12)
property InputsMakeProducerConsumerForEachIterator.output_pin_of_producer_op11: ansys.dpf.core.inputs.Input[int]#

Allows to connect output_pin_of_producer_op11 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.output_pin_of_producer_op11.connect(my_output_pin_of_producer_op11)
>>> # or
>>> op.inputs.output_pin_of_producer_op11(my_output_pin_of_producer_op11)
property InputsMakeProducerConsumerForEachIterator.output_pin_of_producer_op12: ansys.dpf.core.inputs.Input[int]#

Allows to connect output_pin_of_producer_op12 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.output_pin_of_producer_op12.connect(my_output_pin_of_producer_op12)
>>> # or
>>> op.inputs.output_pin_of_producer_op12(my_output_pin_of_producer_op12)
property InputsMakeProducerConsumerForEachIterator.input_pin_of_consumer_op11: ansys.dpf.core.inputs.Input[int]#

Allows to connect input_pin_of_consumer_op11 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.input_pin_of_consumer_op11.connect(my_input_pin_of_consumer_op11)
>>> # or
>>> op.inputs.input_pin_of_consumer_op11(my_input_pin_of_consumer_op11)
property InputsMakeProducerConsumerForEachIterator.input_pin_of_consumer_op12: ansys.dpf.core.inputs.Input[int]#

Allows to connect input_pin_of_consumer_op12 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.input_pin_of_consumer_op12.connect(my_input_pin_of_consumer_op12)
>>> # or
>>> op.inputs.input_pin_of_consumer_op12(my_input_pin_of_consumer_op12)
property InputsMakeProducerConsumerForEachIterator.consumer_op11: ansys.dpf.core.inputs.Input[ansys.dpf.core.dpf_operator.Operator]#

Allows to connect consumer_op11 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.consumer_op11.connect(my_consumer_op11)
>>> # or
>>> op.inputs.consumer_op11(my_consumer_op11)
property InputsMakeProducerConsumerForEachIterator.consumer_op12: ansys.dpf.core.inputs.Input[ansys.dpf.core.dpf_operator.Operator]#

Allows to connect consumer_op12 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.make_producer_consumer_for_each_iterator()
>>> op.inputs.consumer_op12.connect(my_consumer_op12)
>>> # or
>>> op.inputs.consumer_op12(my_consumer_op12)

Method detail#

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

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