This module contains classes for stress results.

class ansys.dpf.post.stress.Stress(**kwargs)#

Defines the stress object, which is a tensor object.

Examples

Extract the stress from a solution.

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.multishells_rst)
>>> stress = solution.stress(location=post.locations.nodal, time_scoping=[1])
property von_mises#

Result data for the von Mises stress.

has_complex_frequencies()#

Check if the result contains complex frequencies.

Returns:

True if the result contains complex frequencies, False otherwise.

Return type:

bool

property principal_1#

Result data for the first principal component of the tensor.

property principal_2#

Result data for the second principal component of the tensor.

property principal_3#

Results data for the third principal component of the tensor.

property tensor#

Result data for the tensor values.

property xx#

Result data for the XX component of the tensor.

property xy#

Result data of for the XY component of the tensor.

property xz#

Result data for the XZ component of the tensor.

property yy#

Result data for the YY component of the tensor.

property yz#

Result data for the YZ component of the tensor.

property zz#

Result data for the ZZ component of the tensor.

class ansys.dpf.post.stress.ComplexStress(**kwargs)#

Defines the complex tensor stress object.

property von_mises_amplitude#

Amplitude for the von Mises stress.

von_mises_at_phase(phase: float)#

Get the von Mises stress at a specific phase.

has_complex_frequencies()#

Check if the result contains complex frequencies.

Returns:

True if the result contains complex frequencies, False otherwise.

Return type:

bool

property principal_1#

Result data for the first principal component of the tensor.

property principal_1_amplitude#

Result data for the first principal component of the tensor.

principal_1_at_phase(phase: float)#

Result data for the first principal component of the tensor at a phase.

property principal_2#

Result data for the second principal component of the tensor.

property principal_2_amplitude#

Result data for the second principal component of the tensor.

principal_2_at_phase(phase: float)#

Result data for the second principal component of the tensor at a specific phase.

property principal_3#

Results data for the third principal component of the tensor.

property principal_3_amplitude#

Result data for the third principal component of the tensor.

principal_3_at_phase(phase: float)#

Result data for the third principal component of the tensor at a specific phase.

property tensor#

Result data for the tensor values.

property tensor_amplitude#

Result data for the tensor values.

tensor_at_phase(phase: float)#

Result data for the tensor values at a specific phase.

property von_mises#

Result data for the von Mises stress.

property xx#

Result data for the XX component of the tensor.

property xx_amplitude#

Result data for the XX component of the tensor.

xx_at_phase(phase: float)#

Result data for the XX component of the tensor at a specific phase.

property xy#

Result data of for the XY component of the tensor.

property xy_amplitude#

Result data for the XY component of the tensor.

xy_at_phase(phase: float)#

Result data for the XY component of the tensor at a specific phase.

property xz#

Result data for the XZ component of the tensor.

property xz_amplitude#

Result data for the XZ component of the tensor.

xz_at_phase(phase: float)#

Result data for the XZ component of the tensor at a specific phase.

property yy#

Result data for the YY component of the tensor.

property yy_amplitude#

Result data for the YY component of the tensor.

yy_at_phase(phase: float)#

Result data for the YY component of the tensor at a specific phase.

property yz#

Result data for the YZ component of the tensor.

property yz_amplitude#

Result data for the YZ component of the tensor.

yz_at_phase(phase: float)#

Result data for the YZ component of the tensor at a specific phase.

property zz#

Result data for the ZZ component of the tensor.

property zz_amplitude#

Result data for the ZZ component of the tensor.

zz_at_phase(phase: float)#

Result data for the XX component of the tensor at a specific phase.