Skip to main content
Rocky’s PrePost Scripting provides Grid Functions or Properties that are retrieved by its respective name (a string parameter) as shown in the following example:
The following documentation provides details about some particular Grid Functions or Properties.

Stress Tensor

The Stress Tensor Grid Function is available when the contacts collection is activated.
The Stress Tensor array can be retrieved by:
The retrieved array has the structure of N x 9 elements where N is the number of particles present in the respective time_step. Each 9 element array list represents the particle Stress Tensor components in the following order: σXX, σXY, σXZ, σYX, σYY, σYZ, σZX, σZY, σZZ.