55 istrgss,numelvol,svonmises)
86 INTEGER ::
i,
j, istrgss
87 REAL*8,
DIMENSION(1:NumElVol) :: svonmises
88 REAL*8,
DIMENSION(1:6) ::
s
89 REAL*8,
DIMENSION(1:istrgss,1:NumElVol) :: s11, s22, s33, s12, s23, s13
91 REAL*8 :: prin1, prin2, prin3
93 REAL*8 ::
r,
x,
y,
z,t,u,
a
95 REAL*8 :: rt2 = 1.414213562373090
96 REAL*8 :: pi23 = 2.094395102393210
116 x = (
s(1)+
s(4)+
s(6))/3.0
117 y =
s(1)*(
s(4)+
s(6))+
s(4)*
s(6)-
s(2)*
s(2)-
s(3)*
s(3)-
s(5)*
s(5)
118 z =
s(1)*
s(4)*
s(6)+2.0*
s(2)*
s(3)*
s(5)-
s(1)*
s(5)*
s(5) &
119 -
s(4)*
s(3)*
s(3)-
s(6)*
s(2)*
s(2)
122 IF(t.lt.1.0e-7.AND.t.gt.-1.0e-7) goto 20
124 a = (
z + (t-
x*
x)*
x)*rt2/u**3
129 prin1 = prin1 +
x + u*rt2*
cos(
r)
130 prin2 = prin2 +
x + u*rt2*
cos(
r - pi23)
131 prin3 = prin3 +
x + u*rt2*
cos(
r + pi23)
137 prin1 = prin1/float(istrgss)
138 prin2 = prin2/float(istrgss)
139 prin3 = prin3/float(istrgss)
143 svonmises(
j) =
sqrt((prin1-prin2)**2 + (prin2-prin3)**2 + (prin3-prin1)**2)/
sqrt(2.d0)
void int int REAL REAL * y
void int int int REAL REAL REAL * z
subroutine principal_stress(s11, s22, s33, s12, s23, s13, istrgss, NumElVol, SVonMises)