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#
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:
inpt (str, int, double, Field, FieldsContainer, Scoping, DataSources, MeshedRegion,)
Output – Input of the operator.
Outputs – Input of the operator.
Operator – Input of the operator.
os.PathLike – Input of the operator.
- Input.__call__(inpt)#
Allow instances to be called like a function.
- Input.__str__()#
Provide detailed string representation of the class.