ResultData#

class ansys.dpf.post.result_data.ResultData(operator_name: str, data_sources, model, elem_average: bool, location: str | None = 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_name (str)

  • data_sources

  • model

  • elem_average (bool)

  • location (str, optional) – The default is None.

  • element_scoping (optional) – The default is None.

  • node_scoping (optional) – The default is None.

  • named_selection (optional) – The default is None.

  • time (optional) – The default is None.

  • grouping (optional) – The default is None.

  • phase (optional) – The default is None.

  • subresult (optional) – The default is None.

  • mapdl_grouping (optional) – The default is None.

  • set (optional) – The default is None.

  • path (optional) – The default is None.

  • time_scoping (optional) – The default is None.

  • parameters (To see all)

  • post.print_available_keywords() (you can use the)

  • 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.