Inputs#

class ansys.dpf.core.inputs.Inputs(dict_inputs, operator)#

Bases: _Inputs

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

Used to connect inputs to the Operator by automatically checking types to connect correct inputs.

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, dpf.inputs._Inputs)
True
>>> disp_op.inputs.connect(data_src)
>>> disp_op.inputs.connect([2])

Import detail#

from ansys.dpf.core.inputs import Inputs