Learn R Programming

geophys (version 1.4-1)

setSTRESS: Set Stress Tensor

Description

Set Stress Tensor: given either 3-vector, or 6-vector, create the symmetric stress tensor matrix.

Usage

setSTRESS(Stensor)

Arguments

Stensor

stress tensor as a vector or a 3 by 3 matrix, a 3-vector (principal stresses) or a 6-vector (principal and off diagonal in row-order.

Value

List: eigen value decomposition

Details

Can be either three components of diagonal, or six components of the stress tensor. If the number of elements is neither 3 nor 6, returns NULL and an error message.

Examples

Run this code
# NOT RUN {
ES = setSTRESS(c(12, -6, 3) )

ES = setSTRESS(c(12, -6, 3, 3, 6, 1) )




# }

Run the code above in your browser using DataLab