StressResult

class compas_fea2.results.StressResult[source]

Bases: ElementResult

StressResult object.

Parameters:
elementcompas_fea2.model._Element

The location of the result.

s11float

The 11 component of the stress tensor in local coordinates.

s12float

The 12 component of the stress tensor in local coordinates.

s13float

The 13 component of the stress tensor in local coordinates.

s22float

The 22 component of the stress tensor in local coordinates.

s23float

The 23 component of the stress tensor in local coordinates.

s33float

The 33 component of the stress tensor in local coordinates.

Attributes:
elementcompas_fea2.model._Element

The location of the result.

s11float

The 11 component of the stress tensor in local coordinates.

s12float

The 12 component of the stress tensor in local coordinates.

s13float

The 13 component of the stress tensor in local coordinates.

s22float

The 22 component of the stress tensor in local coordinates.

s23float

The 23 component of the stress tensor in local coordinates.

s33float

The 33 component of the stress tensor in local coordinates.

local_stressnumpy array

Stress tensor in local coordinates.

global_stressnumpy array

Stress tensor transformed to global coordinates.

global_strainsnumpy array

The strsin tensor in global coordinates.

I1numpy array

First invariant (trace of stress tensor).

I2numpy array

Second invariant of the stress tensor.

I3numpy array

Third invariant (determinant of stress tensor).

J2numpy array

Second invariant of deviatoric stress tensor.

J3numpy array

Third invariant of deviatoric stress tensor.

hydrostatic_stressnumpy array

Mean (hydrostatic) stress.

deviatoric_stressnumpy array

Deviatoric stress tensor.

octahedral_stressnumpy array

Octahedral normal and shear stresses

principal_stresses_valueslist(float)

Sorted principal stresses (eigenvalues of stress tensor).

principal_stresses_vectorslist(compas.geometry.Vector)

Sorted eigenvectors of the stress tensor.

principal_stresseszip obj

Iterator providing the eigenvalue/eigenvector pair.

sminfloat

Minimum principal stress.

smidfloat

Middle principal stress (works for both 2D & 3D).

smaxfloat

Maximum principal stress.

von_mises_stressfloat

Von Mises stress.

Notes

StressResults are registered to a :class:`compas_fea2.model._Element

Methods

bresler_pister

compute_mohr_circle_2d

compute_mohr_circles_3d

Computes the centers and radii of the three Mohr's circles for a 3D stress state.

draw_mohr_circle_2d

Draws the three Mohr's circles for a 3D stress state.

draw_mohr_circles_3d

Draws the three Mohr's circles for a 3D stress state.

drucker_prager

generate_html_report

Generates an HTML report summarizing the stress results, including Mohr's Circles and yield criteria.

griffith

lade_duncan

modified_mohr

mohr_coulomb

rankine

safety_factor_max

Maximum safety factor based on principal stress.

safety_factor_min

Minimum safety factor based on principal stress.

stress_along_direction

Computes the stress along a given direction.

thermal_stress_analysis

transform_stress_tensor

Transforms the stress tensor to a new reference frame.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

safety_factor

Compute the safety factor (absolute ration value/limit) of the displacement.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.