Outputs#

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()
get_data()#

Retrieves the output of the operator.

class ansys.dpf.core.outputs.Outputs(dict_outputs, operator)#

Intermediate class internally instantiated by the ansys.dpf.core.dpf_operator.Operator. Used to list the available ansys.dpf.core.outputs.Output s 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, dpf.inputs._Outputs)
True
>>> fc = disp_op.outputs.fields_container()