elprinc2ΒΆ
- Purpose:
Draw element principal stresses as arrows for two dimensional elements.
- Syntax:
[sfac] = elprinc2(Ex, Ey, Es)
[sfac] = elprinc2(Ex, Ey, Es, plotpar)
elprinc2(Ex, Ey, Es, plotpar, sfac)
- Description:
elprinc2displays element principal stresses for a number of elements of the same type. The principal stresses are displayed as arrows at the element centroids. Note that only the principal stresses are displayed. To display the element mesh, useeldraw2.Input variables are the coordinate matrices
ExandEy, and the element stresses matrixEsdefined inplantsorplanqs.The variable
plotparsets plot parameters for the principal stress arrows:plotpar\(= [\, arrowtype \;\; arrowcolor \,]\)where
\(arrowtype\)
\(arrowcolor\)
1
solid line
1
black
2
dashed line
2
blue
3
dotted line
3
magenta
4
red
Default, if
plotparis omitted, is solid black arrows.The scale factor
sfacis a scalar that values are multiplied with to get a suitable arrow size in relation to the element size. The scale factor is set automatically if it is omitted in the input list.- Limitations:
Supported elements are triangular 3 node and quadrilateral 4 node elements.