This module contains a class describing the result objects.

class ansys.dpf.post.result_definition.Definition(**kwargs)#

Contains the attributes of the Result object as properties.

property location: str#

Location.

Accepts ansys.dpf.core.common.locations.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.location = post.locations.elemental
>>> stress.location
'Elemental'
property element_scoping#

Elemental scoping.

Accepts sequence or ansys.dpf.core.Scoping.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.element_scoping = [1, 4]
property node_scoping#

Nodal scoping property.

Accepts sequence or ansys.dpf.core.Scoping.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.node_scoping = [1, 4]
property named_selection: str#

Named selection.

For MAPDL, named selections are uppercase. Any name selections in lowercase are automatically set to uppercase.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.node_scoping = 'SELECTION'
property grouping: str#

Grouping.

Accepts ansys.dpf.post.grouping or str.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.node_scoping = post.grouping.by_el_shape
property time_scoping#

Time scoping.

Accepts sequence or ansys.dpf.core.Scoping.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.download_all_kinds_of_complexity())
>>> stress = solution.stress()
>>> stress.time_scoping = [1, 4]
property mapdl_grouping: int#

MAPDL grouping.

Examples

Set the grouping to the SOLID186 MAPDL element type.

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.mapdl_grouping = 186
property time: float#

Time step.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.download_all_kinds_of_complexity())
>>> stress = solution.stress()
>>> stress.time = 0.2
property set: int#

Result set.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> stress.set = 2
property path: DpfPath#

Coordinates path.

Examples

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.static_rst)
>>> stress = solution.stress()
>>> coordinates = [[0.0, 0.0, 0.0], [0.1, 0.1, 0.1], [0.0, 0.1, 0.0]]
>>> path = post.create_path_on_coordinates(coordinates=coordinates)
>>> stress.path = path