InputsRemoteOperatorInstantiate#

class ansys.dpf.core.operators.utility.remote_operator_instantiate.InputsRemoteOperatorInstantiate(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to remote_operator_instantiate operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.remote_operator_instantiate()
>>> my_operator_to_send = int()
>>> op.inputs.operator_to_send.connect(my_operator_to_send)
>>> my_output_pin = int()
>>> op.inputs.output_pin.connect(my_output_pin)
>>> my_streams_to_remote = dpf.StreamsContainer()
>>> op.inputs.streams_to_remote.connect(my_streams_to_remote)
>>> my_data_sources_to_remote = dpf.DataSources()
>>> op.inputs.data_sources_to_remote.connect(my_data_sources_to_remote)
>>> my_output_name = str()
>>> op.inputs.output_name.connect(my_output_name)

Overview#

connect

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

operator_to_send

Allows to connect operator_to_send input to the operator.

output_pin

Allows to connect output_pin input to the operator.

streams_to_remote

Allows to connect streams_to_remote input to the operator.

data_sources_to_remote

Allows to connect data_sources_to_remote input to the operator.

output_name

Allows to connect output_name input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.remote_operator_instantiate import InputsRemoteOperatorInstantiate

Property detail#

property InputsRemoteOperatorInstantiate.operator_to_send: ansys.dpf.core.inputs.Input[int]#

Allows to connect operator_to_send input to the operator.

local workflow to push to a remote or id of a remote workflow

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.remote_operator_instantiate()
>>> op.inputs.operator_to_send.connect(my_operator_to_send)
>>> # or
>>> op.inputs.operator_to_send(my_operator_to_send)
property InputsRemoteOperatorInstantiate.output_pin: ansys.dpf.core.inputs.Input[int]#

Allows to connect output_pin input to the operator.

pin number of the output to name

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.remote_operator_instantiate()
>>> op.inputs.output_pin.connect(my_output_pin)
>>> # or
>>> op.inputs.output_pin(my_output_pin)
property InputsRemoteOperatorInstantiate.streams_to_remote: ansys.dpf.core.inputs.Input[ansys.dpf.core.streams_container.StreamsContainer]#

Allows to connect streams_to_remote 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.remote_operator_instantiate()
>>> op.inputs.streams_to_remote.connect(my_streams_to_remote)
>>> # or
>>> op.inputs.streams_to_remote(my_streams_to_remote)
property InputsRemoteOperatorInstantiate.data_sources_to_remote: ansys.dpf.core.inputs.Input[ansys.dpf.core.data_sources.DataSources]#

Allows to connect data_sources_to_remote 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.remote_operator_instantiate()
>>> op.inputs.data_sources_to_remote.connect(my_data_sources_to_remote)
>>> # or
>>> op.inputs.data_sources_to_remote(my_data_sources_to_remote)
property InputsRemoteOperatorInstantiate.output_name: ansys.dpf.core.inputs.Input[str]#

Allows to connect output_name input to the operator.

output’s name of the workflow to return

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.remote_operator_instantiate()
>>> op.inputs.output_name.connect(my_output_name)
>>> # or
>>> op.inputs.output_name(my_output_name)

Method detail#

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

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