zone.stress.prin.dir

Syntax

v = zone.stress.prin.dir(z,prin,dir)

Get the zone principal stress directions, calculated from the volume-averaged tetra stresses.

Fills the array prin with the principal stress magnitudes and the array dir with the directions of the principal stresses. It also returns the principal stresses encoded as a vector (as does zone.stress.prin). prin indices 1, 2, and 3 are filled with the minimum, intermediate, and maximum principal stresses, respectively. dir indices 1-3 are the x-, y-, z-components of the minimum principal stress directions; 4-6 indicate the intermediate principal stress directions; and 7-9 indicate the maximum principal stress directions.

Note that compressive stresses are negative in FLAC3D.

Returns:

v - the zone principal stresses as a vector in minimum, intermediate, maximum order

Arguments:

z - a zone pointer

prin - a pointer to an array of at least size 3, filled with the principal stress values

dir - a pointer to an array of at least size 9, filled with the principal stress directions