Input#

class ansys.dpf.core.inputs.Input(spec, pin, operator, count_ellipsis=-1)#

Intermediate class internally instantiated by the ansys.dpf.core.dpf_operator.Operator.

Used to connect inputs to the Operator.

Examples

>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> data_src = dpf.DataSources(examples.find_msup_transient())
>>> disp_op = dpf.operators.result.displacement()
>>> isinstance(disp_op.inputs.data_sources, dpf.inputs.Input)
True
>>> disp_op.inputs.data_sources(data_src)
>>> disp_op.inputs.time_scoping([2])

Overview#

connect

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

__call__

Allow instances to be called like a function.

__str__

Provide detailed string representation of the class.

Import detail#

from ansys.dpf.core.inputs import Input

Attribute detail#

Input.name#

Method detail#

Input.connect(inpt)#

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

Parameters:
Input.__call__(inpt)#

Allow instances to be called like a function.

Input.__str__()#

Provide detailed string representation of the class.