Output#

class ansys.dpf.core.outputs.Output(spec, pin, operator)#

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

Used to evaluate and get outputs of 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()
>>> disp_op.inputs.data_sources(data_src)
>>> isinstance(disp_op.outputs.fields_container, dpf.inputs.Output)
True
>>> fc = disp_op.outputs.fields_container()

Overview#

get_data

Retrieve the output of the operator.

__call__

Allow instances of the class to be callable for data retrieval purposes.

__str__

Return a string representation of the Output instance.

Import detail#

from ansys.dpf.core.outputs import Output

Method detail#

Output.get_data()#

Retrieve the output of the operator.

Output.__call__()#

Allow instances of the class to be callable for data retrieval purposes.

Output.__str__()#

Return a string representation of the Output instance.

Returns:

A string representation of the instance.

Return type:

str