ResultData#

class ansys.dpf.post.result_data.ResultData(operator_name: str, data_sources, model, elem_average: bool, location: Optional[str] = None, element_scoping=None, node_scoping=None, named_selection=None, time=None, grouping=None, phase=None, subresult=None, mapdl_grouping=None, set=None, path=None, time_scoping=None)#

Provides the result data for a DPF Result object.

This class is created using the ansys.dpf.core.Result class.

Parameters:
operator_namestr
data_sources
model
elem_averagebool
locationstr, optional

The default is None.

element_scopingoptional

The default is None.

node_scopingoptional

The default is None.

named_selectionoptional

The default is None.

timeoptional

The default is None.

groupingoptional

The default is None.

phaseoptional

The default is None.

subresultoptional

The default is None.

mapdl_groupingoptional

The default is None.

setoptional

The default is None.

pathoptional

The default is None.

time_scopingoptional

The default is None.

To see all parameters, you can use the ``post.print_available_keywords()``
method.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.download_all_kinds_of_complexity())
>>> disp = solution.displacement()
>>> disp_on_nodes = solution.displacement(node_scoping = [1, 23])
>>> disp_on_named_selection = solution.displacement(named_selection="SELECTION")

Methods

ResultData.get_all_label_spaces()

Get all label spaces contained in a result.

ResultData.get_data_at_field([field_index])

Get the data for the field with the specified index.

ResultData.get_max_data_at_field([field_index])

Get the maximum values field data for the field with the specified index.

ResultData.get_min_data_at_field([field_index])

Get the minimum values field data for the field with the specified index.

ResultData.get_scoping_at_field([field_index])

Get the scoping of the result for the field with the specified index.

ResultData.plot_contour([display_option, ...])

Plot the contour result on its mesh support.

Attributes

ResultData.max

Maximum value field.

ResultData.max_data

Maximum value field data.

ResultData.min

Minimum values field.

ResultData.min_data

Minimum values field data.

ResultData.num_fields

Number of fields contained in the result.

ResultData.result_fields_container

Result fields container.