OutputsProducerConsumerForEach#

class ansys.dpf.core.operators.utility.producer_consumer_for_each.OutputsProducerConsumerForEach(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.outputs._Outputs

Intermediate class used to get outputs from producer_consumer_for_each operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.producer_consumer_for_each()
>>> # Connect inputs : op.inputs. ...
>>> result_empty = op.outputs.empty()
>>> result_output1 = op.outputs.output1()
>>> result_output2 = op.outputs.output2()

Overview#

empty

Allows to get empty output of the operator

output1

Allows to get output1 output of the operator

output2

Allows to get output2 output of the operator

Import detail#

from ansys.dpf.core.operators.utility.producer_consumer_for_each import OutputsProducerConsumerForEach

Property detail#

property OutputsProducerConsumerForEach.empty: ansys.dpf.core.outputs.Output#

Allows to get empty output of the operator

Returns:

An Output instance for this pin.

Return type:

output

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.producer_consumer_for_each()
>>> # Get the output from op.outputs. ...
>>> result_empty = op.outputs.empty()
property OutputsProducerConsumerForEach.output1: ansys.dpf.core.outputs.Output#

Allows to get output1 output of the operator

Returns:

An Output instance for this pin.

Return type:

output

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.producer_consumer_for_each()
>>> # Get the output from op.outputs. ...
>>> result_output1 = op.outputs.output1()
property OutputsProducerConsumerForEach.output2: ansys.dpf.core.outputs.Output#

Allows to get output2 output of the operator

Returns:

An Output instance for this pin.

Return type:

output

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.producer_consumer_for_each()
>>> # Get the output from op.outputs. ...
>>> result_output2 = op.outputs.output2()

Method detail#

OutputsProducerConsumerForEach.__getitem__(index) → Output#
OutputsProducerConsumerForEach.__str__()#