Learn R Programming

geophys (version 1.2-1)

stress: Stress Box

Description

Display interactive Stress Box illustrating normal and shear stress on an arbitrary plane given a stress tensor.

Usage

stress(PPs = matrix(ncol = 4, nrow = 3), Rview = c(-130, -50), xscale = 100, Stensor = matrix(ncol = 3, nrow = 3))

Arguments

PPs
3Points in 3 by 4 matrix
Rview
Viewing matrix
xscale
arbitrary scale
Stensor
stress tensor

Value

  • Graphical Side effects

Details

Interactive program to examine stress. To change the plane orientation, click on one of the points and then on a new position along the axis selected.

If a stress tensor is provided, then a second graphics device is required to show the Mohr's circle.

See Also

pstart, PLOTbox, PLOTplane, NORMvec

Examples

Run this code
#####   no stress tensor provided => no mohr's circle
stress()

#########################  run program with a stress tensor
Stensor = matrix(c(
15, 0, 0,
0, 10, 0,
0,  0, 5), ncol=3)


stress(Stensor=Stensor)

P1 = c(0.2, 1, 1, 0)
P2 = c(1, 0.1, 1, 0)
P3 = c(1, 1, 0.4, 0)

  S = stressSETUP(P1, P2, P3, xscale=30   )

stress(PPs = S$PPs, Rview =S$Rview, xscale = S$xscale, Stensor=Stensor )

Run the code above in your browser using DataLab