54 s11,s22,s33,s12,s23,s13, &
55 numnp,nstart,nend,numcstet,numat_vol,&
56 rho, cd_fastest, detfold, velo, dt)
74 REAL*8,
DIMENSION(1:3,1:numnp) :: coor
76 REAL*8,
DIMENSION(1:9,1:numat_vol) :: ci
78 REAL*8,
DIMENSION(1:3*numnp) :: r_in
80 REAL*8,
DIMENSION(1:3*numnp) ::
d
82 REAL*8,
DIMENSION(1:4,1:numcstet) :: s11, s22, s33, s12, s23, s13
84 INTEGER,
DIMENSION(1:10,1:numcstet) :: lmcstet
86 INTEGER,
DIMENSION(1:numcstet) :: matcstet
89 INTEGER :: n1,n2,n3,n4,n5,n6,n7,n8,n9,n10
91 REAL*8 :: u1,u2,u3,u4,u5,u6,u7,u8,u9,u10
92 REAL*8 :: v1,v2,v3,v4,v5,v6,v7,v8,v9,v10
93 REAL*8 :: w1,w2,w3,w4,w5,w6,w7,w8,w9,w10
97 REAL*8 :: b1,b2,b3,b4,b5,b6,b7,b8,b9,b10
98 REAL*8 :: b11,b12,b13,b14,b15,b16,b17,b18,b19,b20
99 REAL*8 :: b21,b22,b23,b24,b25,b26,b27,b28,b29,b30
101 REAL*8 :: dudx,dvdy,dwdz,dudy,dvdx,dvdz,dwdy,dudz,dwdx
103 REAL*8 :: e11,e22,e33,e12,e23,e13
105 REAL*8 :: x1,x2,x3,x4,x5,x6,x7,x8,x9,x10
106 REAL*8 :: y1,y2,y3,y4,y5,y6,y7,y8,y9,y10
107 REAL*8 :: z1,z2,z3,z4,z5,z6,z7,z8,z9,z10
109 INTEGER ::
i,
j,nstart,nend
110 REAL*8 :: aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9,aux10,aux11,aux12
112 REAL*8 :: r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18
113 REAL*8 :: r19,r20,r21,r22,r23,r24,r25,r26,r27,r28,r29,r30
114 REAL*8 :: g1, g2, g3, g4
115 REAL*8 :: xn1, xn2, xn3, xn4
117 REAL*8 :: x14, x24, x34, y14, y24, y34, z14, z24, z34
119 REAL*8 :: c11, c21, c31
120 INTEGER :: k1n1,k1n2,k1n3,k1n4,k1n5,k1n6,k1n7,k1n8,k1n9,k1n10
121 INTEGER :: k2n1,k2n2,k2n3,k2n4,k2n5,k2n6,k2n7,k2n8,k2n9,k2n10
122 INTEGER :: k3n1,k3n2,k3n3,k3n4,k3n5,k3n6,k3n7,k3n8,k3n9,k3n10
123 REAL*8,
DIMENSION(1:numat_vol) :: rho
125 real*8 ,
DIMENSION(1:4, 1:numcstet) :: detfold
127 REAL*8,
DIMENSION(1:3*numnp) :: velo
130 REAL*8 :: strssvisco(3,3)
133 REAL*8 :: vel_u1,vel_u2,vel_u3,vel_u4,vel_u5,vel_u6,vel_u7,vel_u8,vel_u9,vel_u10
134 REAL*8 :: vel_v1,vel_v2,vel_v3,vel_v4,vel_v5,vel_v6,vel_v7,vel_v8,vel_v9,vel_v10
135 REAL*8 :: vel_w1,vel_w2,vel_w3,vel_w4,vel_w5,vel_w6,vel_w7,vel_w8,vel_w9,vel_w10
137 REAL*8 :: f11, f12, f13, f21, f22, f23, f31, f32, f33
138 REAL*8 :: f(3,3), fdot(3,3)
230 vel_u10 = velo(k1n10)
240 vel_v10 = velo(k2n10)
250 vel_w10 = velo(k3n10)
265 vx6 = x2*y3*z4 - x2*y4*z3 - y2*x3*z4 + y2*x4*z3 + z2*x3*y4 &
266 - z2*x4*y3 - x1*y3*z4 + x1*y4*z3 + x1*y2*z4 - x1*y2*z3 &
267 - x1*z2*y4 + x1*z2*y3 + y1*x3*z4 - y1*x4*z3 - y1*x2*z4 &
268 + y1*x2*z3 + y1*z2*x4 - y1*z2*x3 - z1*x3*y4 + z1*x4*y3 &
269 + z1*x2*y4 - z1*x2*y3 - z1*y2*x4 + z1*y2*x3
273 aux1 = -(y3*z4 - y4*z3 - y2*z4 + y2*z3 + z2*y4 - z2*y3)
274 aux2 = (x3*z4 - x4*z3 - x2*z4 + x2*z3 + z2*x4 - z2*x3)
275 aux3 = -(x3*y4 - x4*y3 - x2*y4 + x2*y3 + y2*x4 - y2*x3)
276 aux4 = (y3*z4 - y4*z3 - y1*z4 + y1*z3 + z1*y4 - z1*y3)
277 aux5 = -(x3*z4 - x4*z3 - x1*z4 + x1*z3 + z1*x4 - z1*x3)
278 aux6 = (x3*y4 - x4*y3 - x1*y4 + x1*y3 + y1*x4 - y1*x3)
279 aux7 = -(y2*z4 - z2*y4 - y1*z4 + y1*z2 + z1*y4 - z1*y2)
280 aux8 = (x2*z4 - z2*x4 - x1*z4 + x1*z2 + z1*x4 - z1*x2)
281 aux9 = -(x2*y4 - y2*x4 - x1*y4 + x1*y2 + y1*x4 - y1*x2)
282 aux10 = (y2*z3 - z2*y3 - y1*z3 + y1*z2 + z1*y3 - z1*y2)
283 aux11 =-(x2*z3 - z2*x3 - x1*z3 + x1*z2 + z1*x3 - z1*x2)
284 aux12 = (x2*y3 - y2*x3 - x1*y3 + x1*y2 + y1*x3 - y1*x2)
317 b13 = 4.d0*(g2*aux1 + g1*aux4)
318 b14 = 4.d0*(g2*aux2 + g1*aux5)
319 b15 = 4.d0*(g2*aux3 + g1*aux6)
321 b16 = 4.d0*(g3*aux4 + g2*aux7)
322 b17 = 4.d0*(g3*aux5 + g2*aux8)
323 b18 = 4.d0*(g3*aux6 + g2*aux9)
325 b19 = 4.d0*(g1*aux7 + g3*aux1)
326 b20 = 4.d0*(g1*aux8 + g3*aux2)
327 b21 = 4.d0*(g1*aux9 + g3*aux3)
329 b22 = 4.d0*(g4*aux1 + g1*aux10)
330 b23 = 4.d0*(g4*aux2 + g1*aux11)
331 b24 = 4.d0*(g4*aux3 + g1*aux12)
333 b25 = 4.d0*(g4*aux4 + g2*aux10)
334 b26 = 4.d0*(g4*aux5 + g2*aux11)
335 b27 = 4.d0*(g4*aux6 + g2*aux12)
337 b28 = 4.d0*(g4*aux7 + g3*aux10)
338 b29 = 4.d0*(g4*aux8 + g3*aux11)
339 b30 = 4.d0*(g4*aux9 + g3*aux12)
343 dudx = (b1*u1 + b4*u2 + b7*u3 + b10*u4 + b13*u5 + b16*u6 + b19*u7 + b22*u8 + b25*u9 + b28*u10)*vx6inv
344 dvdy = (b2*v1 + b5*v2 + b8*v3 + b11*v4 + b14*v5 + b17*v6 + b20*v7 + b23*v8 + b26*v9 + b29*v10)*vx6inv
345 dwdz = (b3*w1 + b6*w2 + b9*w3 + b12*w4 + b15*w5 + b18*w6 + b21*w7 + b24*w8 + b27*w9 + b30*w10)*vx6inv
346 dudy = (b2*u1 + b5*u2 + b8*u3 + b11*u4 + b14*u5 + b17*u6 + b20*u7 + b23*u8 + b26*u9 + b29*u10)*vx6inv
347 dvdx = (b1*v1 + b4*v2 + b7*v3 + b10*v4 + b13*v5 + b16*v6 + b19*v7 + b22*v8 + b25*v9 + b28*v10)*vx6inv
348 dvdz = (b3*v1 + b6*v2 + b9*v3 + b12*v4 + b15*v5 + b18*v6 + b21*v7 + b24*v8 + b27*v9 + b30*v10)*vx6inv
349 dwdy = (b2*w1 + b5*w2 + b8*w3 + b11*w4 + b14*w5 + b17*w6 + b20*w7 + b23*w8 + b26*w9 + b29*w10)*vx6inv
350 dudz = (b3*u1 + b6*u2 + b9*u3 + b12*u4 + b15*u5 + b18*u6 + b21*u7 + b24*u8 + b27*u9 + b30*u10)*vx6inv
351 dwdx = (b1*w1 + b4*w2 + b7*w3 + b10*w4 + b13*w5 + b16*w6 + b19*w7 + b22*w8 + b25*w9 + b28*w10)*vx6inv
356 f11 = 1.d0 + ( dudx )
357 f22 = 1.d0 + ( dvdy )
358 f33 = 1.d0 + ( dwdz )
377 (b1*vel_u1 + b4*vel_u2 + b7*vel_u3 + b10*vel_u4 + b13*vel_u5 + &
378 b16*vel_u6 + b19*vel_u7 + b22*vel_u8 + b25*vel_u9 + b28*vel_u10)*vx6inv
380 (b2*vel_v1 + b5*vel_v2 + b8*vel_v3 + b11*vel_v4 + b14*vel_v5 + &
381 b17*vel_v6 + b20*vel_v7 + b23*vel_v8 + b26*vel_v9 + b29*vel_v10)*vx6inv
383 (b3*vel_w1 + b6*vel_w2 + b9*vel_w3 + b12*vel_w4 + b15*vel_w5 + &
384 b18*vel_w6 + b21*vel_w7 + b24*vel_w8 + b27*vel_w9 + b30*vel_w10)*vx6inv
385 fdot(1,2) = (b2*vel_u1 + b5*vel_u2 + b8*vel_u3 + b11*vel_u4 + b14*vel_u5 + &
386 b17*vel_u6 + b20*vel_u7 + b23*vel_u8 + b26*vel_u9 + b29*vel_u10)*vx6inv
387 fdot(2,1) = (b1*vel_v1 + b4*vel_v2 + b7*vel_v3 + b10*vel_v4 + b13*vel_v5 + &
388 b16*vel_v6 + b19*vel_v7 + b22*vel_v8 + b25*vel_v9 + b28*vel_v10)*vx6inv
389 fdot(2,3) = (b3*vel_v1 + b6*vel_v2 + b9*vel_v3 + b12*vel_v4 + b15*vel_v5 + &
390 b18*vel_v6 + b21*vel_v7 + b24*vel_v8 + b27*vel_v9 + b30*vel_v10)*vx6inv
391 fdot(3,2) = (b2*vel_w1 + b5*vel_w2 + b8*vel_w3 + b11*vel_w4 + b14*vel_w5 + &
392 b17*vel_w6 + b20*vel_w7 + b23*vel_w8 + b26*vel_w9 + b29*vel_w10)*vx6inv
393 fdot(1,3) = (b3*vel_u1 + b6*vel_u2 + b9*vel_u3 + b12*vel_u4 + b15*vel_u5 + &
394 b18*vel_u6 + b21*vel_u7 + b24*vel_u8 + b27*vel_u9 + b30*vel_u10)*vx6inv
395 fdot(3,1) = (b1*vel_w1 + b4*vel_w2 + b7*vel_w3 + b10*vel_w4 + b13*vel_w5 + &
396 b16*vel_w6 + b19*vel_w7 + b22*vel_w8 + b25*vel_w9 + b28*vel_w10)*vx6inv
399 rho(
j), cd_fastest, detfold(1,
i), dt, f, fdot, vx6, strssvisco)
405 e11 = dudx + 0.5d0*(dudx*dudx + dvdx*dvdx + dwdx*dwdx)
406 e22 = dvdy + 0.5d0*(dudy*dudy + dvdy*dvdy + dwdy*dwdy)
407 e33 = dwdz + 0.5d0*(dudz*dudz + dvdz*dvdz + dwdz*dwdz)
408 e12 = dudy + dvdx + ( dudx*dudy + dvdx*dvdy + dwdx*dwdy )
409 e23 = dvdz + dwdy + ( dudy*dudz + dvdy*dvdz + dwdy*dwdz )
410 e13 = dwdx + dudz + ( dudz*dudx + dvdz*dvdx + dwdz*dwdx )
414 s11(1,
i) = e11*ci(1,
j) + e22*ci(2,
j) + e33*ci(4,
j) + strssvisco(1,1)
415 s22(1,
i) = e11*ci(2,
j) + e22*ci(3,
j) + e33*ci(5,
j) + strssvisco(2,2)
416 s33(1,
i) = e11*ci(4,
j) + e22*ci(5,
j) + e33*ci(6,
j) + strssvisco(3,3)
417 s12(1,
i) = e12*ci(7,
j) + strssvisco(1,2)
418 s23(1,
i) = e23*ci(8,
j) + strssvisco(2,3)
419 s13(1,
i) = e13*ci(9,
j) + strssvisco(1,3)
422 ( s11(1,
i)*b1*(1.d0+dudx) + s22(1,
i)*b2*dudy + s33(1,
i)*b3*dudz &
423 + s12(1,
i)*( b2*(1.d0+dudx) + b1*dudy ) &
424 + s23(1,
i)*( b3*dudy + b2*dudz ) &
425 + s13(1,
i)*( b3*(1.d0+dudx) + b1*dudz ) )
427 ( s11(1,
i)*b1*dvdx + s22(1,
i)*b2*(1.d0+dvdy) + s33(1,
i)*b3*dvdz &
428 + s12(1,
i)*( b1*(1.d0+dvdy) + b2*dvdx ) &
429 + s23(1,
i)*( b3*(1.d0+dvdy) + b2*dvdz ) &
430 + s13(1,
i)*( b3*dvdx + b1*dvdz ) )
432 ( s11(1,
i)*b1*dwdx + s22(1,
i)*b2*dwdy + s33(1,
i)*b3*(1.d0+dwdz) &
433 + s12(1,
i)*( b2*dwdx + b1*dwdy ) &
434 + s23(1,
i)*( b3*dwdy + b2*(1.d0 + dwdz) ) &
435 + s13(1,
i)*( b3*dwdx + b1*(1.d0 + dwdz) ) )
438 ( s11(1,
i)*b4*(1.d0+dudx) + s22(1,
i)*b5*dudy + s33(1,
i)*b6*dudz &
439 + s12(1,
i)*( b5*(1.d0+dudx) + b4*dudy ) &
440 + s23(1,
i)*( b6*dudy + b5*dudz ) &
441 + s13(1,
i)*( b6*(1.d0+dudx) + b4*dudz ) )
443 ( s11(1,
i)*b4*dvdx + s22(1,
i)*b5*(1.d0+dvdy) + s33(1,
i)*b6*dvdz &
444 + s12(1,
i)*( b4*(1.d0+dvdy) + b5*dvdx ) &
445 + s23(1,
i)*( b6*(1.d0+dvdy) + b5*dvdz ) &
446 + s13(1,
i)*( b6*dvdx + b4*dvdz ) )
448 ( s11(1,
i)*b4*dwdx + s22(1,
i)*b5*dwdy + s33(1,
i)*b6*(1.d0+dwdz) &
449 + s12(1,
i)*( b5*dwdx + b4*dwdy ) &
450 + s23(1,
i)*( b6*dwdy + b5*(1.d0 + dwdz) ) &
451 + s13(1,
i)*( b6*dwdx + b4*(1.d0 + dwdz) ) )
454 ( s11(1,
i)*b7*(1.d0+dudx) + s22(1,
i)*b8*dudy + s33(1,
i)*b9*dudz &
455 + s12(1,
i)*( b8*(1.d0+dudx) + b7*dudy ) &
456 + s23(1,
i)*( b9*dudy + b8*dudz ) &
457 + s13(1,
i)*( b9*(1.d0+dudx) + b7*dudz ) )
459 ( s11(1,
i)*b7*dvdx + s22(1,
i)*b8*(1.d0+dvdy) + s33(1,
i)*b9*dvdz &
460 + s12(1,
i)*( b7*(1.d0+dvdy) + b8*dvdx ) &
461 + s23(1,
i)*( b9*(1.d0+dvdy) + b8*dvdz ) &
462 + s13(1,
i)*( b9*dvdx + b7*dvdz ) )
464 ( s11(1,
i)*b7*dwdx + s22(1,
i)*b8*dwdy + s33(1,
i)*b9*(1.d0+dwdz) &
465 + s12(1,
i)*( b8*dwdx + b7*dwdy ) &
466 + s23(1,
i)*( b9*dwdy + b8*(1.d0 + dwdz) ) &
467 + s13(1,
i)*( b9*dwdx + b7*(1.d0 + dwdz) ) )
470 ( s11(1,
i)*b10*(1.d0+dudx) + s22(1,
i)*b11*dudy+s33(1,
i)*b12*dudz &
471 + s12(1,
i)*( b11*(1.d0+dudx) + b10*dudy ) &
472 + s23(1,
i)*( b12*dudy + b11*dudz ) &
473 + s13(1,
i)*( b12*(1.d0+dudx) + b10*dudz ) )
475 ( s11(1,
i)*b10*dvdx + s22(1,
i)*b11*(1.d0+dvdy)+s33(1,
i)*b12*dvdz &
476 + s12(1,
i)*( b10*(1.d0+dvdy) + b11*dvdx ) &
477 + s23(1,
i)*( b12*(1.d0+dvdy) + b11*dvdz ) &
478 + s13(1,
i)*( b12*dvdx + b10*dvdz ) )
480 ( s11(1,
i)*b10*dwdx + s22(1,
i)*b11*dwdy+s33(1,
i)*b12*(1.d0+dwdz) &
481 + s12(1,
i)*( b11*dwdx + b10*dwdy ) &
482 + s23(1,
i)*( b12*dwdy + b11*(1.d0 + dwdz) ) &
483 + s13(1,
i)*( b12*dwdx + b10*(1.d0 + dwdz) ) )
486 ( s11(1,
i)*b13*(1.d0+dudx) + s22(1,
i)*b14*dudy + s33(1,
i)*b15*dudz &
487 + s12(1,
i)*( b14*(1.d0+dudx) + b13*dudy ) &
488 + s23(1,
i)*( b15*dudy + b14*dudz ) &
489 + s13(1,
i)*( b15*(1.d0+dudx) + b13*dudz ) )
491 ( s11(1,
i)*b13*dvdx + s22(1,
i)*b14*(1.d0+dvdy) + s33(1,
i)*b15*dvdz &
492 + s12(1,
i)*( b13*(1.d0+dvdy) + b14*dvdx ) &
493 + s23(1,
i)*( b15*(1.d0+dvdy) + b14*dvdz ) &
494 + s13(1,
i)*( b15*dvdx + b13*dvdz ) )
496 ( s11(1,
i)*b13*dwdx + s22(1,
i)*b14*dwdy + s33(1,
i)*b15*(1.d0+dwdz) &
497 + s12(1,
i)*( b14*dwdx + b13*dwdy ) &
498 + s23(1,
i)*( b15*dwdy + b14*(1.d0 + dwdz) ) &
499 + s13(1,
i)*( b15*dwdx + b13*(1.d0 + dwdz) ) )
502 ( s11(1,
i)*b16*(1.d0+dudx) + s22(1,
i)*b17*dudy + s33(1,
i)*b18*dudz &
503 + s12(1,
i)*( b17*(1.d0+dudx) + b16*dudy ) &
504 + s23(1,
i)*( b18*dudy + b17*dudz ) &
505 + s13(1,
i)*( b18*(1.d0+dudx) + b16*dudz ) )
507 ( s11(1,
i)*b16*dvdx + s22(1,
i)*b17*(1.d0+dvdy) + s33(1,
i)*b18*dvdz &
508 + s12(1,
i)*( b16*(1.d0+dvdy) + b17*dvdx ) &
509 + s23(1,
i)*( b18*(1.d0+dvdy) + b17*dvdz ) &
510 + s13(1,
i)*( b18*dvdx + b16*dvdz ) )
512 ( s11(1,
i)*b16*dwdx + s22(1,
i)*b17*dwdy + s33(1,
i)*b18*(1.d0+dwdz) &
513 + s12(1,
i)*( b17*dwdx + b16*dwdy ) &
514 + s23(1,
i)*( b18*dwdy + b17*(1.d0 + dwdz) ) &
515 + s13(1,
i)*( b18*dwdx + b16*(1.d0 + dwdz) ) )
518 ( s11(1,
i)*b19*(1.d0+dudx) + s22(1,
i)*b20*dudy + s33(1,
i)*b21*dudz &
519 + s12(1,
i)*( b20*(1.d0+dudx) + b19*dudy ) &
520 + s23(1,
i)*( b21*dudy + b20*dudz ) &
521 + s13(1,
i)*( b21*(1.d0+dudx) + b19*dudz ) )
523 ( s11(1,
i)*b19*dvdx + s22(1,
i)*b20*(1.d0+dvdy) + s33(1,
i)*b21*dvdz &
524 + s12(1,
i)*( b19*(1.d0+dvdy) + b20*dvdx ) &
525 + s23(1,
i)*( b21*(1.d0+dvdy) + b20*dvdz ) &
526 + s13(1,
i)*( b21*dvdx + b19*dvdz ) )
528 ( s11(1,
i)*b19*dwdx + s22(1,
i)*b20*dwdy + s33(1,
i)*b21*(1.d0+dwdz) &
529 + s12(1,
i)*( b20*dwdx + b19*dwdy ) &
530 + s23(1,
i)*( b21*dwdy + b20*(1.d0 + dwdz) ) &
531 + s13(1,
i)*( b21*dwdx + b19*(1.d0 + dwdz) ) )
534 ( s11(1,
i)*b22*(1.d0+dudx) + s22(1,
i)*b23*dudy+s33(1,
i)*b24*dudz &
535 + s12(1,
i)*( b23*(1.d0+dudx) + b22*dudy ) &
536 + s23(1,
i)*( b24*dudy + b23*dudz ) &
537 + s13(1,
i)*( b24*(1.d0+dudx) + b22*dudz ) )
539 ( s11(1,
i)*b22*dvdx + s22(1,
i)*b23*(1.d0+dvdy)+s33(1,
i)*b24*dvdz &
540 + s12(1,
i)*( b22*(1.d0+dvdy) + b23*dvdx ) &
541 + s23(1,
i)*( b24*(1.d0+dvdy) + b23*dvdz ) &
542 + s13(1,
i)*( b24*dvdx + b22*dvdz ) )
544 ( s11(1,
i)*b22*dwdx + s22(1,
i)*b23*dwdy+s33(1,
i)*b24*(1.d0+dwdz) &
545 + s12(1,
i)*( b23*dwdx + b22*dwdy ) &
546 + s23(1,
i)*( b24*dwdy + b23*(1.d0 + dwdz) ) &
547 + s13(1,
i)*( b24*dwdx + b22*(1.d0 + dwdz) ) )
550 ( s11(1,
i)*b25*(1.d0+dudx) + s22(1,
i)*b26*dudy+s33(1,
i)*b27*dudz &
551 + s12(1,
i)*( b26*(1.d0+dudx) + b25*dudy ) &
552 + s23(1,
i)*( b27*dudy + b26*dudz ) &
553 + s13(1,
i)*( b27*(1.d0+dudx) + b25*dudz ) )
555 ( s11(1,
i)*b25*dvdx + s22(1,
i)*b26*(1.d0+dvdy)+s33(1,
i)*b27*dvdz &
556 + s12(1,
i)*( b25*(1.d0+dvdy) + b26*dvdx ) &
557 + s23(1,
i)*( b27*(1.d0+dvdy) + b26*dvdz ) &
558 + s13(1,
i)*( b27*dvdx + b25*dvdz ) )
560 ( s11(1,
i)*b25*dwdx + s22(1,
i)*b26*dwdy+s33(1,
i)*b27*(1.d0+dwdz) &
561 + s12(1,
i)*( b26*dwdx + b25*dwdy ) &
562 + s23(1,
i)*( b27*dwdy + b26*(1.d0 + dwdz) ) &
563 + s13(1,
i)*( b27*dwdx + b25*(1.d0 + dwdz) ) )
566 ( s11(1,
i)*b28*(1.d0+dudx) + s22(1,
i)*b29*dudy+s33(1,
i)*b30*dudz &
567 + s12(1,
i)*( b29*(1.d0+dudx) + b28*dudy ) &
568 + s23(1,
i)*( b30*dudy + b29*dudz ) &
569 + s13(1,
i)*( b30*(1.d0+dudx) + b28*dudz ) )
571 ( s11(1,
i)*b28*dvdx + s22(1,
i)*b29*(1.d0+dvdy)+s33(1,
i)*b30*dvdz &
572 + s12(1,
i)*( b28*(1.d0+dvdy) + b29*dvdx ) &
573 + s23(1,
i)*( b30*(1.d0+dvdy) + b29*dvdz ) &
574 + s13(1,
i)*( b30*dvdx + b28*dvdz ) )
576 ( s11(1,
i)*b28*dwdx + s22(1,
i)*b29*dwdy+s33(1,
i)*b30*(1.d0+dwdz) &
577 + s12(1,
i)*( b29*dwdx + b28*dwdy ) &
578 + s23(1,
i)*( b30*dwdy + b29*(1.d0 + dwdz) ) &
579 + s13(1,
i)*( b30*dwdx + b28*(1.d0 + dwdz) ) )
612 b13 = 4.d0*(g2*aux1 + g1*aux4)
613 b14 = 4.d0*(g2*aux2 + g1*aux5)
614 b15 = 4.d0*(g2*aux3 + g1*aux6)
616 b16 = 4.d0*(g3*aux4 + g2*aux7)
617 b17 = 4.d0*(g3*aux5 + g2*aux8)
618 b18 = 4.d0*(g3*aux6 + g2*aux9)
620 b19 = 4.d0*(g1*aux7 + g3*aux1)
621 b20 = 4.d0*(g1*aux8 + g3*aux2)
622 b21 = 4.d0*(g1*aux9 + g3*aux3)
624 b22 = 4.d0*(g4*aux1 + g1*aux10)
625 b23 = 4.d0*(g4*aux2 + g1*aux11)
626 b24 = 4.d0*(g4*aux3 + g1*aux12)
628 b25 = 4.d0*(g4*aux4 + g2*aux10)
629 b26 = 4.d0*(g4*aux5 + g2*aux11)
630 b27 = 4.d0*(g4*aux6 + g2*aux12)
632 b28 = 4.d0*(g4*aux7 + g3*aux10)
633 b29 = 4.d0*(g4*aux8 + g3*aux11)
634 b30 = 4.d0*(g4*aux9 + g3*aux12)
636 dudx = (b1*u1 + b4*u2 + b7*u3 + b10*u4 + b13*u5 + b16*u6 + b19*u7 + b22*u8 + b25*u9 + b28*u10)*vx6inv
637 dvdy = (b2*v1 + b5*v2 + b8*v3 + b11*v4 + b14*v5 + b17*v6 + b20*v7 + b23*v8 + b26*v9 + b29*v10)*vx6inv
638 dwdz = (b3*w1 + b6*w2 + b9*w3 + b12*w4 + b15*w5 + b18*w6 + b21*w7 + b24*w8 + b27*w9 + b30*w10)*vx6inv
639 dudy = (b2*u1 + b5*u2 + b8*u3 + b11*u4 + b14*u5 + b17*u6 + b20*u7 + b23*u8 + b26*u9 + b29*u10)*vx6inv
640 dvdx = (b1*v1 + b4*v2 + b7*v3 + b10*v4 + b13*v5 + b16*v6 + b19*v7 + b22*v8 + b25*v9 + b28*v10)*vx6inv
641 dvdz = (b3*v1 + b6*v2 + b9*v3 + b12*v4 + b15*v5 + b18*v6 + b21*v7 + b24*v8 + b27*v9 + b30*v10)*vx6inv
642 dwdy = (b2*w1 + b5*w2 + b8*w3 + b11*w4 + b14*w5 + b17*w6 + b20*w7 + b23*w8 + b26*w9 + b29*w10)*vx6inv
643 dudz = (b3*u1 + b6*u2 + b9*u3 + b12*u4 + b15*u5 + b18*u6 + b21*u7 + b24*u8 + b27*u9 + b30*u10)*vx6inv
644 dwdx = (b1*w1 + b4*w2 + b7*w3 + b10*w4 + b13*w5 + b16*w6 + b19*w7 + b22*w8 + b25*w9 + b28*w10)*vx6inv
649 f11 = 1.d0 + ( dudx )
650 f22 = 1.d0 + ( dvdy )
651 f33 = 1.d0 + ( dwdz )
670 (b1*vel_u1 + b4*vel_u2 + b7*vel_u3 + b10*vel_u4 + b13*vel_u5 + &
671 b16*vel_u6 + b19*vel_u7 + b22*vel_u8 + b25*vel_u9 + b28*vel_u10)*vx6inv
673 (b2*vel_v1 + b5*vel_v2 + b8*vel_v3 + b11*vel_v4 + b14*vel_v5 + &
674 b17*vel_v6 + b20*vel_v7 + b23*vel_v8 + b26*vel_v9 + b29*vel_v10)*vx6inv
676 (b3*vel_w1 + b6*vel_w2 + b9*vel_w3 + b12*vel_w4 + b15*vel_w5 + &
677 b18*vel_w6 + b21*vel_w7 + b24*vel_w8 + b27*vel_w9 + b30*vel_w10)*vx6inv
678 fdot(1,2) = (b2*vel_u1 + b5*vel_u2 + b8*vel_u3 + b11*vel_u4 + b14*vel_u5 + &
679 b17*vel_u6 + b20*vel_u7 + b23*vel_u8 + b26*vel_u9 + b29*vel_u10)*vx6inv
680 fdot(2,1) = (b1*vel_v1 + b4*vel_v2 + b7*vel_v3 + b10*vel_v4 + b13*vel_v5 + &
681 b16*vel_v6 + b19*vel_v7 + b22*vel_v8 + b25*vel_v9 + b28*vel_v10)*vx6inv
682 fdot(2,3) = (b3*vel_v1 + b6*vel_v2 + b9*vel_v3 + b12*vel_v4 + b15*vel_v5 + &
683 b18*vel_v6 + b21*vel_v7 + b24*vel_v8 + b27*vel_v9 + b30*vel_v10)*vx6inv
684 fdot(3,2) = (b2*vel_w1 + b5*vel_w2 + b8*vel_w3 + b11*vel_w4 + b14*vel_w5 + &
685 b17*vel_w6 + b20*vel_w7 + b23*vel_w8 + b26*vel_w9 + b29*vel_w10)*vx6inv
686 fdot(1,3) = (b3*vel_u1 + b6*vel_u2 + b9*vel_u3 + b12*vel_u4 + b15*vel_u5 + &
687 b18*vel_u6 + b21*vel_u7 + b24*vel_u8 + b27*vel_u9 + b30*vel_u10)*vx6inv
688 fdot(3,1) = (b1*vel_w1 + b4*vel_w2 + b7*vel_w3 + b10*vel_w4 + b13*vel_w5 + &
689 b16*vel_w6 + b19*vel_w7 + b22*vel_w8 + b25*vel_w9 + b28*vel_w10)*vx6inv
699 rho(
j), cd_fastest, detfold(2,
i), dt, f, fdot, vx6, strssvisco)
705 e11 = dudx + 0.5d0*(dudx*dudx + dvdx*dvdx + dwdx*dwdx)
706 e22 = dvdy + 0.5d0*(dudy*dudy + dvdy*dvdy + dwdy*dwdy)
707 e33 = dwdz + 0.5d0*(dudz*dudz + dvdz*dvdz + dwdz*dwdz)
708 e12 = dudy + dvdx + ( dudx*dudy + dvdx*dvdy + dwdx*dwdy )
709 e23 = dvdz + dwdy + ( dudy*dudz + dvdy*dvdz + dwdy*dwdz )
710 e13 = dwdx + dudz + ( dudz*dudx + dvdz*dvdx + dwdz*dwdx )
714 s11(2,
i) = e11*ci(1,
j) + e22*ci(2,
j) + e33*ci(4,
j)+ strssvisco(1,1)
715 s22(2,
i) = e11*ci(2,
j) + e22*ci(3,
j) + e33*ci(5,
j)+ strssvisco(2,2)
716 s33(2,
i) = e11*ci(4,
j) + e22*ci(5,
j) + e33*ci(6,
j)+ strssvisco(3,3)
717 s12(2,
i) = e12*ci(7,
j) + strssvisco(1,2)
718 s23(2,
i) = e23*ci(8,
j) + strssvisco(2,3)
719 s13(2,
i) = e13*ci(9,
j) + strssvisco(1,3)
724 ( s11(2,
i)*b1*(1.d0+dudx) + s22(2,
i)*b2*dudy + s33(2,
i)*b3*dudz &
725 + s12(2,
i)*( b2*(1.d0+dudx) + b1*dudy ) &
726 + s23(2,
i)*( b3*dudy + b2*dudz ) &
727 + s13(2,
i)*( b3*(1.d0+dudx) + b1*dudz ) )
729 ( s11(2,
i)*b1*dvdx + s22(2,
i)*b2*(1.d0+dvdy) + s33(2,
i)*b3*dvdz &
730 + s12(2,
i)*( b1*(1.d0+dvdy) + b2*dvdx ) &
731 + s23(2,
i)*( b3*(1.d0+dvdy) + b2*dvdz ) &
732 + s13(2,
i)*( b3*dvdx + b1*dvdz ) )
734 ( s11(2,
i)*b1*dwdx + s22(2,
i)*b2*dwdy + s33(2,
i)*b3*(1.d0+dwdz) &
735 + s12(2,
i)*( b2*dwdx + b1*dwdy ) &
736 + s23(2,
i)*( b3*dwdy + b2*(1.d0 + dwdz) ) &
737 + s13(2,
i)*( b3*dwdx + b1*(1.d0 + dwdz) ) )
740 ( s11(2,
i)*b4*(1.d0+dudx) + s22(2,
i)*b5*dudy + s33(2,
i)*b6*dudz &
741 + s12(2,
i)*( b5*(1.d0+dudx) + b4*dudy ) &
742 + s23(2,
i)*( b6*dudy + b5*dudz ) &
743 + s13(2,
i)*( b6*(1.d0+dudx) + b4*dudz ) )
745 ( s11(2,
i)*b4*dvdx + s22(2,
i)*b5*(1.d0+dvdy) + s33(2,
i)*b6*dvdz &
746 + s12(2,
i)*( b4*(1.d0+dvdy) + b5*dvdx ) &
747 + s23(2,
i)*( b6*(1.d0+dvdy) + b5*dvdz ) &
748 + s13(2,
i)*( b6*dvdx + b4*dvdz ) )
750 ( s11(2,
i)*b4*dwdx + s22(2,
i)*b5*dwdy + s33(2,
i)*b6*(1.d0+dwdz) &
751 + s12(2,
i)*( b5*dwdx + b4*dwdy ) &
752 + s23(2,
i)*( b6*dwdy + b5*(1.d0 + dwdz) ) &
753 + s13(2,
i)*( b6*dwdx + b4*(1.d0 + dwdz) ) )
756 ( s11(2,
i)*b7*(1.d0+dudx) + s22(2,
i)*b8*dudy + s33(2,
i)*b9*dudz &
757 + s12(2,
i)*( b8*(1.d0+dudx) + b7*dudy ) &
758 + s23(2,
i)*( b9*dudy + b8*dudz ) &
759 + s13(2,
i)*( b9*(1.d0+dudx) + b7*dudz ) )
761 ( s11(2,
i)*b7*dvdx + s22(2,
i)*b8*(1.d0+dvdy) + s33(2,
i)*b9*dvdz &
762 + s12(2,
i)*( b7*(1.d0+dvdy) + b8*dvdx ) &
763 + s23(2,
i)*( b9*(1.d0+dvdy) + b8*dvdz ) &
764 + s13(2,
i)*( b9*dvdx + b7*dvdz ) )
766 ( s11(2,
i)*b7*dwdx + s22(2,
i)*b8*dwdy + s33(2,
i)*b9*(1.d0+dwdz) &
767 + s12(2,
i)*( b8*dwdx + b7*dwdy ) &
768 + s23(2,
i)*( b9*dwdy + b8*(1.d0 + dwdz) ) &
769 + s13(2,
i)*( b9*dwdx + b7*(1.d0 + dwdz) ) )
772 ( s11(2,
i)*b10*(1.d0+dudx) + s22(2,
i)*b11*dudy+s33(2,
i)*b12*dudz &
773 + s12(2,
i)*( b11*(1.d0+dudx) + b10*dudy ) &
774 + s23(2,
i)*( b12*dudy + b11*dudz ) &
775 + s13(2,
i)*( b12*(1.d0+dudx) + b10*dudz ) )
777 ( s11(2,
i)*b10*dvdx + s22(2,
i)*b11*(1.d0+dvdy)+s33(2,
i)*b12*dvdz &
778 + s12(2,
i)*( b10*(1.d0+dvdy) + b11*dvdx ) &
779 + s23(2,
i)*( b12*(1.d0+dvdy) + b11*dvdz ) &
780 + s13(2,
i)*( b12*dvdx + b10*dvdz ) )
782 ( s11(2,
i)*b10*dwdx + s22(2,
i)*b11*dwdy+s33(2,
i)*b12*(1.d0+dwdz) &
783 + s12(2,
i)*( b11*dwdx + b10*dwdy ) &
784 + s23(2,
i)*( b12*dwdy + b11*(1.d0 + dwdz) ) &
785 + s13(2,
i)*( b12*dwdx + b10*(1.d0 + dwdz) ) )
788 ( s11(2,
i)*b13*(1.d0+dudx) + s22(2,
i)*b14*dudy + s33(2,
i)*b15*dudz &
789 + s12(2,
i)*( b14*(1.d0+dudx) + b13*dudy ) &
790 + s23(2,
i)*( b15*dudy + b14*dudz ) &
791 + s13(2,
i)*( b15*(1.d0+dudx) + b13*dudz ) )
793 ( s11(2,
i)*b13*dvdx + s22(2,
i)*b14*(1.d0+dvdy) + s33(2,
i)*b15*dvdz &
794 + s12(2,
i)*( b13*(1.d0+dvdy) + b14*dvdx ) &
795 + s23(2,
i)*( b15*(1.d0+dvdy) + b14*dvdz ) &
796 + s13(2,
i)*( b15*dvdx + b13*dvdz ) )
798 ( s11(2,
i)*b13*dwdx + s22(2,
i)*b14*dwdy + s33(2,
i)*b15*(1.d0+dwdz) &
799 + s12(2,
i)*( b14*dwdx + b13*dwdy ) &
800 + s23(2,
i)*( b15*dwdy + b14*(1.d0 + dwdz) ) &
801 + s13(2,
i)*( b15*dwdx + b13*(1.d0 + dwdz) ) )
804 ( s11(2,
i)*b16*(1.d0+dudx) + s22(2,
i)*b17*dudy + s33(2,
i)*b18*dudz &
805 + s12(2,
i)*( b17*(1.d0+dudx) + b16*dudy ) &
806 + s23(2,
i)*( b18*dudy + b17*dudz ) &
807 + s13(2,
i)*( b18*(1.d0+dudx) + b16*dudz ) )
809 ( s11(2,
i)*b16*dvdx + s22(2,
i)*b17*(1.d0+dvdy) + s33(2,
i)*b18*dvdz &
810 + s12(2,
i)*( b16*(1.d0+dvdy) + b17*dvdx ) &
811 + s23(2,
i)*( b18*(1.d0+dvdy) + b17*dvdz ) &
812 + s13(2,
i)*( b18*dvdx + b16*dvdz ) )
814 ( s11(2,
i)*b16*dwdx + s22(2,
i)*b17*dwdy + s33(2,
i)*b18*(1.d0+dwdz) &
815 + s12(2,
i)*( b17*dwdx + b16*dwdy ) &
816 + s23(2,
i)*( b18*dwdy + b17*(1.d0 + dwdz) ) &
817 + s13(2,
i)*( b18*dwdx + b16*(1.d0 + dwdz) ) )
820 ( s11(2,
i)*b19*(1.d0+dudx) + s22(2,
i)*b20*dudy + s33(2,
i)*b21*dudz &
821 + s12(2,
i)*( b20*(1.d0+dudx) + b19*dudy ) &
822 + s23(2,
i)*( b21*dudy + b20*dudz ) &
823 + s13(2,
i)*( b21*(1.d0+dudx) + b19*dudz ) )
825 ( s11(2,
i)*b19*dvdx + s22(2,
i)*b20*(1.d0+dvdy) + s33(2,
i)*b21*dvdz &
826 + s12(2,
i)*( b19*(1.d0+dvdy) + b20*dvdx ) &
827 + s23(2,
i)*( b21*(1.d0+dvdy) + b20*dvdz ) &
828 + s13(2,
i)*( b21*dvdx + b19*dvdz ) )
830 ( s11(2,
i)*b19*dwdx + s22(2,
i)*b20*dwdy + s33(2,
i)*b21*(1.d0+dwdz) &
831 + s12(2,
i)*( b20*dwdx + b19*dwdy ) &
832 + s23(2,
i)*( b21*dwdy + b20*(1.d0 + dwdz) ) &
833 + s13(2,
i)*( b21*dwdx + b19*(1.d0 + dwdz) ) )
836 ( s11(2,
i)*b22*(1.d0+dudx) + s22(2,
i)*b23*dudy+s33(2,
i)*b24*dudz &
837 + s12(2,
i)*( b23*(1.d0+dudx) + b22*dudy ) &
838 + s23(2,
i)*( b24*dudy + b23*dudz ) &
839 + s13(2,
i)*( b24*(1.d0+dudx) + b22*dudz ) )
841 ( s11(2,
i)*b22*dvdx + s22(2,
i)*b23*(1.d0+dvdy)+s33(2,
i)*b24*dvdz &
842 + s12(2,
i)*( b22*(1.d0+dvdy) + b23*dvdx ) &
843 + s23(2,
i)*( b24*(1.d0+dvdy) + b23*dvdz ) &
844 + s13(2,
i)*( b24*dvdx + b22*dvdz ) )
846 ( s11(2,
i)*b22*dwdx + s22(2,
i)*b23*dwdy+s33(2,
i)*b24*(1.d0+dwdz) &
847 + s12(2,
i)*( b23*dwdx + b22*dwdy ) &
848 + s23(2,
i)*( b24*dwdy + b23*(1.d0 + dwdz) ) &
849 + s13(2,
i)*( b24*dwdx + b22*(1.d0 + dwdz) ) )
852 ( s11(2,
i)*b25*(1.d0+dudx) + s22(2,
i)*b26*dudy+s33(2,
i)*b27*dudz &
853 + s12(2,
i)*( b26*(1.d0+dudx) + b25*dudy ) &
854 + s23(2,
i)*( b27*dudy + b26*dudz ) &
855 + s13(2,
i)*( b27*(1.d0+dudx) + b25*dudz ) )
857 ( s11(2,
i)*b25*dvdx + s22(2,
i)*b26*(1.d0+dvdy)+s33(2,
i)*b27*dvdz &
858 + s12(2,
i)*( b25*(1.d0+dvdy) + b26*dvdx ) &
859 + s23(2,
i)*( b27*(1.d0+dvdy) + b26*dvdz ) &
860 + s13(2,
i)*( b27*dvdx + b25*dvdz ) )
862 ( s11(2,
i)*b25*dwdx + s22(2,
i)*b26*dwdy+s33(2,
i)*b27*(1.d0+dwdz) &
863 + s12(2,
i)*( b26*dwdx + b25*dwdy ) &
864 + s23(2,
i)*( b27*dwdy + b26*(1.d0 + dwdz) ) &
865 + s13(2,
i)*( b27*dwdx + b25*(1.d0 + dwdz) ) )
868 ( s11(2,
i)*b28*(1.d0+dudx) + s22(2,
i)*b29*dudy+s33(2,
i)*b30*dudz &
869 + s12(2,
i)*( b29*(1.d0+dudx) + b28*dudy ) &
870 + s23(2,
i)*( b30*dudy + b29*dudz ) &
871 + s13(2,
i)*( b30*(1.d0+dudx) + b28*dudz ) )
873 ( s11(2,
i)*b28*dvdx + s22(2,
i)*b29*(1.d0+dvdy)+s33(2,
i)*b30*dvdz &
874 + s12(2,
i)*( b28*(1.d0+dvdy) + b29*dvdx ) &
875 + s23(2,
i)*( b30*(1.d0+dvdy) + b29*dvdz ) &
876 + s13(2,
i)*( b30*dvdx + b28*dvdz ) )
878 ( s11(2,
i)*b28*dwdx + s22(2,
i)*b29*dwdy+s33(2,
i)*b30*(1.d0+dwdz) &
879 + s12(2,
i)*( b29*dwdx + b28*dwdy ) &
880 + s23(2,
i)*( b30*dwdy + b29*(1.d0 + dwdz) ) &
881 + s13(2,
i)*( b30*dwdx + b28*(1.d0 + dwdz) ) )
913 b13 = 4.d0*(g2*aux1 + g1*aux4)
914 b14 = 4.d0*(g2*aux2 + g1*aux5)
915 b15 = 4.d0*(g2*aux3 + g1*aux6)
917 b16 = 4.d0*(g3*aux4 + g2*aux7)
918 b17 = 4.d0*(g3*aux5 + g2*aux8)
919 b18 = 4.d0*(g3*aux6 + g2*aux9)
921 b19 = 4.d0*(g1*aux7 + g3*aux1)
922 b20 = 4.d0*(g1*aux8 + g3*aux2)
923 b21 = 4.d0*(g1*aux9 + g3*aux3)
925 b22 = 4.d0*(g4*aux1 + g1*aux10)
926 b23 = 4.d0*(g4*aux2 + g1*aux11)
927 b24 = 4.d0*(g4*aux3 + g1*aux12)
929 b25 = 4.d0*(g4*aux4 + g2*aux10)
930 b26 = 4.d0*(g4*aux5 + g2*aux11)
931 b27 = 4.d0*(g4*aux6 + g2*aux12)
933 b28 = 4.d0*(g4*aux7 + g3*aux10)
934 b29 = 4.d0*(g4*aux8 + g3*aux11)
935 b30 = 4.d0*(g4*aux9 + g3*aux12)
937 dudx = (b1*u1 + b4*u2 + b7*u3 + b10*u4 + b13*u5 + b16*u6 + b19*u7 + b22*u8 + b25*u9 + b28*u10)*vx6inv
938 dvdy = (b2*v1 + b5*v2 + b8*v3 + b11*v4 + b14*v5 + b17*v6 + b20*v7 + b23*v8 + b26*v9 + b29*v10)*vx6inv
939 dwdz = (b3*w1 + b6*w2 + b9*w3 + b12*w4 + b15*w5 + b18*w6 + b21*w7 + b24*w8 + b27*w9 + b30*w10)*vx6inv
940 dudy = (b2*u1 + b5*u2 + b8*u3 + b11*u4 + b14*u5 + b17*u6 + b20*u7 + b23*u8 + b26*u9 + b29*u10)*vx6inv
941 dvdx = (b1*v1 + b4*v2 + b7*v3 + b10*v4 + b13*v5 + b16*v6 + b19*v7 + b22*v8 + b25*v9 + b28*v10)*vx6inv
942 dvdz = (b3*v1 + b6*v2 + b9*v3 + b12*v4 + b15*v5 + b18*v6 + b21*v7 + b24*v8 + b27*v9 + b30*v10)*vx6inv
943 dwdy = (b2*w1 + b5*w2 + b8*w3 + b11*w4 + b14*w5 + b17*w6 + b20*w7 + b23*w8 + b26*w9 + b29*w10)*vx6inv
944 dudz = (b3*u1 + b6*u2 + b9*u3 + b12*u4 + b15*u5 + b18*u6 + b21*u7 + b24*u8 + b27*u9 + b30*u10)*vx6inv
945 dwdx = (b1*w1 + b4*w2 + b7*w3 + b10*w4 + b13*w5 + b16*w6 + b19*w7 + b22*w8 + b25*w9 + b28*w10)*vx6inv
950 f11 = 1.d0 + ( dudx )
951 f22 = 1.d0 + ( dvdy )
952 f33 = 1.d0 + ( dwdz )
971 (b1*vel_u1 + b4*vel_u2 + b7*vel_u3 + b10*vel_u4 + b13*vel_u5 + &
972 b16*vel_u6 + b19*vel_u7 + b22*vel_u8 + b25*vel_u9 + b28*vel_u10)*vx6inv
974 (b2*vel_v1 + b5*vel_v2 + b8*vel_v3 + b11*vel_v4 + b14*vel_v5 + &
975 b17*vel_v6 + b20*vel_v7 + b23*vel_v8 + b26*vel_v9 + b29*vel_v10)*vx6inv
977 (b3*vel_w1 + b6*vel_w2 + b9*vel_w3 + b12*vel_w4 + b15*vel_w5 + &
978 b18*vel_w6 + b21*vel_w7 + b24*vel_w8 + b27*vel_w9 + b30*vel_w10)*vx6inv
979 fdot(1,2) = (b2*vel_u1 + b5*vel_u2 + b8*vel_u3 + b11*vel_u4 + b14*vel_u5 + &
980 b17*vel_u6 + b20*vel_u7 + b23*vel_u8 + b26*vel_u9 + b29*vel_u10)*vx6inv
981 fdot(2,1) = (b1*vel_v1 + b4*vel_v2 + b7*vel_v3 + b10*vel_v4 + b13*vel_v5 + &
982 b16*vel_v6 + b19*vel_v7 + b22*vel_v8 + b25*vel_v9 + b28*vel_v10)*vx6inv
983 fdot(2,3) = (b3*vel_v1 + b6*vel_v2 + b9*vel_v3 + b12*vel_v4 + b15*vel_v5 + &
984 b18*vel_v6 + b21*vel_v7 + b24*vel_v8 + b27*vel_v9 + b30*vel_v10)*vx6inv
985 fdot(3,2) = (b2*vel_w1 + b5*vel_w2 + b8*vel_w3 + b11*vel_w4 + b14*vel_w5 + &
986 b17*vel_w6 + b20*vel_w7 + b23*vel_w8 + b26*vel_w9 + b29*vel_w10)*vx6inv
987 fdot(1,3) = (b3*vel_u1 + b6*vel_u2 + b9*vel_u3 + b12*vel_u4 + b15*vel_u5 + &
988 b18*vel_u6 + b21*vel_u7 + b24*vel_u8 + b27*vel_u9 + b30*vel_u10)*vx6inv
989 fdot(3,1) = (b1*vel_w1 + b4*vel_w2 + b7*vel_w3 + b10*vel_w4 + b13*vel_w5 + &
990 b16*vel_w6 + b19*vel_w7 + b22*vel_w8 + b25*vel_w9 + b28*vel_w10)*vx6inv
993 rho(
j), cd_fastest, detfold(3,
i), dt, f, fdot, vx6, strssvisco)
999 e11 = dudx + 0.5d0*(dudx*dudx + dvdx*dvdx + dwdx*dwdx)
1000 e22 = dvdy + 0.5d0*(dudy*dudy + dvdy*dvdy + dwdy*dwdy)
1001 e33 = dwdz + 0.5d0*(dudz*dudz + dvdz*dvdz + dwdz*dwdz)
1002 e12 = dudy + dvdx + ( dudx*dudy + dvdx*dvdy + dwdx*dwdy )
1003 e23 = dvdz + dwdy + ( dudy*dudz + dvdy*dvdz + dwdy*dwdz )
1004 e13 = dwdx + dudz + ( dudz*dudx + dvdz*dvdx + dwdz*dwdx )
1008 s11(3,
i) = e11*ci(1,
j) + e22*ci(2,
j) + e33*ci(4,
j) + strssvisco(1,1)
1009 s22(3,
i) = e11*ci(2,
j) + e22*ci(3,
j) + e33*ci(5,
j) + strssvisco(2,2)
1010 s33(3,
i) = e11*ci(4,
j) + e22*ci(5,
j) + e33*ci(6,
j) + strssvisco(3,3)
1011 s12(3,
i) = e12*ci(7,
j) + strssvisco(1,2)
1012 s23(3,
i) = e23*ci(8,
j) + strssvisco(2,3)
1013 s13(3,
i) = e13*ci(9,
j) + strssvisco(1,3)
1016 ( s11(3,
i)*b1*(1.d0+dudx) + s22(3,
i)*b2*dudy + s33(3,
i)*b3*dudz &
1017 + s12(3,
i)*( b2*(1.d0+dudx) + b1*dudy ) &
1018 + s23(3,
i)*( b3*dudy + b2*dudz ) &
1019 + s13(3,
i)*( b3*(1.d0+dudx) + b1*dudz ) )
1021 ( s11(3,
i)*b1*dvdx + s22(3,
i)*b2*(1.d0+dvdy) + s33(3,
i)*b3*dvdz &
1022 + s12(3,
i)*( b1*(1.d0+dvdy) + b2*dvdx ) &
1023 + s23(3,
i)*( b3*(1.d0+dvdy) + b2*dvdz ) &
1024 + s13(3,
i)*( b3*dvdx + b1*dvdz ) )
1026 ( s11(3,
i)*b1*dwdx + s22(3,
i)*b2*dwdy + s33(3,
i)*b3*(1.d0+dwdz) &
1027 + s12(3,
i)*( b2*dwdx + b1*dwdy ) &
1028 + s23(3,
i)*( b3*dwdy + b2*(1.d0 + dwdz) ) &
1029 + s13(3,
i)*( b3*dwdx + b1*(1.d0 + dwdz) ) )
1032 ( s11(3,
i)*b4*(1.d0+dudx) + s22(3,
i)*b5*dudy + s33(3,
i)*b6*dudz &
1033 + s12(3,
i)*( b5*(1.d0+dudx) + b4*dudy ) &
1034 + s23(3,
i)*( b6*dudy + b5*dudz ) &
1035 + s13(3,
i)*( b6*(1.d0+dudx) + b4*dudz ) )
1037 ( s11(3,
i)*b4*dvdx + s22(3,
i)*b5*(1.d0+dvdy) + s33(3,
i)*b6*dvdz &
1038 + s12(3,
i)*( b4*(1.d0+dvdy) + b5*dvdx ) &
1039 + s23(3,
i)*( b6*(1.d0+dvdy) + b5*dvdz ) &
1040 + s13(3,
i)*( b6*dvdx + b4*dvdz ) )
1042 ( s11(3,
i)*b4*dwdx + s22(3,
i)*b5*dwdy + s33(3,
i)*b6*(1.d0+dwdz) &
1043 + s12(3,
i)*( b5*dwdx + b4*dwdy ) &
1044 + s23(3,
i)*( b6*dwdy + b5*(1.d0 + dwdz) ) &
1045 + s13(3,
i)*( b6*dwdx + b4*(1.d0 + dwdz) ) )
1048 ( s11(3,
i)*b7*(1.d0+dudx) + s22(3,
i)*b8*dudy + s33(3,
i)*b9*dudz &
1049 + s12(3,
i)*( b8*(1.d0+dudx) + b7*dudy ) &
1050 + s23(3,
i)*( b9*dudy + b8*dudz ) &
1051 + s13(3,
i)*( b9*(1.d0+dudx) + b7*dudz ) )
1053 ( s11(3,
i)*b7*dvdx + s22(3,
i)*b8*(1.d0+dvdy) + s33(3,
i)*b9*dvdz &
1054 + s12(3,
i)*( b7*(1.d0+dvdy) + b8*dvdx ) &
1055 + s23(3,
i)*( b9*(1.d0+dvdy) + b8*dvdz ) &
1056 + s13(3,
i)*( b9*dvdx + b7*dvdz ) )
1058 ( s11(3,
i)*b7*dwdx + s22(3,
i)*b8*dwdy + s33(3,
i)*b9*(1.d0+dwdz) &
1059 + s12(3,
i)*( b8*dwdx + b7*dwdy ) &
1060 + s23(3,
i)*( b9*dwdy + b8*(1.d0 + dwdz) ) &
1061 + s13(3,
i)*( b9*dwdx + b7*(1.d0 + dwdz) ) )
1064 ( s11(3,
i)*b10*(1.d0+dudx) + s22(3,
i)*b11*dudy+s33(3,
i)*b12*dudz &
1065 + s12(3,
i)*( b11*(1.d0+dudx) + b10*dudy ) &
1066 + s23(3,
i)*( b12*dudy + b11*dudz ) &
1067 + s13(3,
i)*( b12*(1.d0+dudx) + b10*dudz ) )
1069 ( s11(3,
i)*b10*dvdx + s22(3,
i)*b11*(1.d0+dvdy)+s33(3,
i)*b12*dvdz &
1070 + s12(3,
i)*( b10*(1.d0+dvdy) + b11*dvdx ) &
1071 + s23(3,
i)*( b12*(1.d0+dvdy) + b11*dvdz ) &
1072 + s13(3,
i)*( b12*dvdx + b10*dvdz ) )
1074 ( s11(3,
i)*b10*dwdx + s22(3,
i)*b11*dwdy+s33(3,
i)*b12*(1.d0+dwdz) &
1075 + s12(3,
i)*( b11*dwdx + b10*dwdy ) &
1076 + s23(3,
i)*( b12*dwdy + b11*(1.d0 + dwdz) ) &
1077 + s13(3,
i)*( b12*dwdx + b10*(1.d0 + dwdz) ) )
1080 ( s11(3,
i)*b13*(1.d0+dudx) + s22(3,
i)*b14*dudy + s33(3,
i)*b15*dudz &
1081 + s12(3,
i)*( b14*(1.d0+dudx) + b13*dudy ) &
1082 + s23(3,
i)*( b15*dudy + b14*dudz ) &
1083 + s13(3,
i)*( b15*(1.d0+dudx) + b13*dudz ) )
1085 ( s11(3,
i)*b13*dvdx + s22(3,
i)*b14*(1.d0+dvdy) + s33(3,
i)*b15*dvdz &
1086 + s12(3,
i)*( b13*(1.d0+dvdy) + b14*dvdx ) &
1087 + s23(3,
i)*( b15*(1.d0+dvdy) + b14*dvdz ) &
1088 + s13(3,
i)*( b15*dvdx + b13*dvdz ) )
1090 ( s11(3,
i)*b13*dwdx + s22(3,
i)*b14*dwdy + s33(3,
i)*b15*(1.d0+dwdz) &
1091 + s12(3,
i)*( b14*dwdx + b13*dwdy ) &
1092 + s23(3,
i)*( b15*dwdy + b14*(1.d0 + dwdz) ) &
1093 + s13(3,
i)*( b15*dwdx + b13*(1.d0 + dwdz) ) )
1096 ( s11(3,
i)*b16*(1.d0+dudx) + s22(3,
i)*b17*dudy + s33(3,
i)*b18*dudz &
1097 + s12(3,
i)*( b17*(1.d0+dudx) + b16*dudy ) &
1098 + s23(3,
i)*( b18*dudy + b17*dudz ) &
1099 + s13(3,
i)*( b18*(1.d0+dudx) + b16*dudz ) )
1101 ( s11(3,
i)*b16*dvdx + s22(3,
i)*b17*(1.d0+dvdy) + s33(3,
i)*b18*dvdz &
1102 + s12(3,
i)*( b16*(1.d0+dvdy) + b17*dvdx ) &
1103 + s23(3,
i)*( b18*(1.d0+dvdy) + b17*dvdz ) &
1104 + s13(3,
i)*( b18*dvdx + b16*dvdz ) )
1106 ( s11(3,
i)*b16*dwdx + s22(3,
i)*b17*dwdy + s33(3,
i)*b18*(1.d0+dwdz) &
1107 + s12(3,
i)*( b17*dwdx + b16*dwdy ) &
1108 + s23(3,
i)*( b18*dwdy + b17*(1.d0 + dwdz) ) &
1109 + s13(3,
i)*( b18*dwdx + b16*(1.d0 + dwdz) ) )
1112 ( s11(3,
i)*b19*(1.d0+dudx) + s22(3,
i)*b20*dudy + s33(3,
i)*b21*dudz &
1113 + s12(3,
i)*( b20*(1.d0+dudx) + b19*dudy ) &
1114 + s23(3,
i)*( b21*dudy + b20*dudz ) &
1115 + s13(3,
i)*( b21*(1.d0+dudx) + b19*dudz ) )
1117 ( s11(3,
i)*b19*dvdx + s22(3,
i)*b20*(1.d0+dvdy) + s33(3,
i)*b21*dvdz &
1118 + s12(3,
i)*( b19*(1.d0+dvdy) + b20*dvdx ) &
1119 + s23(3,
i)*( b21*(1.d0+dvdy) + b20*dvdz ) &
1120 + s13(3,
i)*( b21*dvdx + b19*dvdz ) )
1122 ( s11(3,
i)*b19*dwdx + s22(3,
i)*b20*dwdy + s33(3,
i)*b21*(1.d0+dwdz) &
1123 + s12(3,
i)*( b20*dwdx + b19*dwdy ) &
1124 + s23(3,
i)*( b21*dwdy + b20*(1.d0 + dwdz) ) &
1125 + s13(3,
i)*( b21*dwdx + b19*(1.d0 + dwdz) ) )
1128 ( s11(3,
i)*b22*(1.d0+dudx) + s22(3,
i)*b23*dudy+s33(3,
i)*b24*dudz &
1129 + s12(3,
i)*( b23*(1.d0+dudx) + b22*dudy ) &
1130 + s23(3,
i)*( b24*dudy + b23*dudz ) &
1131 + s13(3,
i)*( b24*(1.d0+dudx) + b22*dudz ) )
1133 ( s11(3,
i)*b22*dvdx + s22(3,
i)*b23*(1.d0+dvdy)+s33(3,
i)*b24*dvdz &
1134 + s12(3,
i)*( b22*(1.d0+dvdy) + b23*dvdx ) &
1135 + s23(3,
i)*( b24*(1.d0+dvdy) + b23*dvdz ) &
1136 + s13(3,
i)*( b24*dvdx + b22*dvdz ) )
1138 ( s11(3,
i)*b22*dwdx + s22(3,
i)*b23*dwdy+s33(3,
i)*b24*(1.d0+dwdz) &
1139 + s12(3,
i)*( b23*dwdx + b22*dwdy ) &
1140 + s23(3,
i)*( b24*dwdy + b23*(1.d0 + dwdz) ) &
1141 + s13(3,
i)*( b24*dwdx + b22*(1.d0 + dwdz) ) )
1144 ( s11(3,
i)*b25*(1.d0+dudx) + s22(3,
i)*b26*dudy+s33(3,
i)*b27*dudz &
1145 + s12(3,
i)*( b26*(1.d0+dudx) + b25*dudy ) &
1146 + s23(3,
i)*( b27*dudy + b26*dudz ) &
1147 + s13(3,
i)*( b27*(1.d0+dudx) + b25*dudz ) )
1149 ( s11(3,
i)*b25*dvdx + s22(3,
i)*b26*(1.d0+dvdy)+s33(3,
i)*b27*dvdz &
1150 + s12(3,
i)*( b25*(1.d0+dvdy) + b26*dvdx ) &
1151 + s23(3,
i)*( b27*(1.d0+dvdy) + b26*dvdz ) &
1152 + s13(3,
i)*( b27*dvdx + b25*dvdz ) )
1154 ( s11(3,
i)*b25*dwdx + s22(3,
i)*b26*dwdy+s33(3,
i)*b27*(1.d0+dwdz) &
1155 + s12(3,
i)*( b26*dwdx + b25*dwdy ) &
1156 + s23(3,
i)*( b27*dwdy + b26*(1.d0 + dwdz) ) &
1157 + s13(3,
i)*( b27*dwdx + b25*(1.d0 + dwdz) ) )
1160 ( s11(3,
i)*b28*(1.d0+dudx) + s22(3,
i)*b29*dudy+s33(3,
i)*b30*dudz &
1161 + s12(3,
i)*( b29*(1.d0+dudx) + b28*dudy ) &
1162 + s23(3,
i)*( b30*dudy + b29*dudz ) &
1163 + s13(3,
i)*( b30*(1.d0+dudx) + b28*dudz ) )
1165 ( s11(3,
i)*b28*dvdx + s22(3,
i)*b29*(1.d0+dvdy)+s33(3,
i)*b30*dvdz &
1166 + s12(3,
i)*( b28*(1.d0+dvdy) + b29*dvdx ) &
1167 + s23(3,
i)*( b30*(1.d0+dvdy) + b29*dvdz ) &
1168 + s13(3,
i)*( b30*dvdx + b28*dvdz ) )
1170 ( s11(3,
i)*b28*dwdx + s22(3,
i)*b29*dwdy+s33(3,
i)*b30*(1.d0+dwdz) &
1171 + s12(3,
i)*( b29*dwdx + b28*dwdy ) &
1172 + s23(3,
i)*( b30*dwdy + b29*(1.d0 + dwdz) ) &
1173 + s13(3,
i)*( b30*dwdx + b28*(1.d0 + dwdz) ) )
1181 xn1 = (4.d0*g1-1.d0)
1182 xn2 = (4.d0*g2-1.d0)
1183 xn3 = (4.d0*g3-1.d0)
1184 xn4 = (4.d0*g4-1.d0)
1205 b13 = 4.d0*(g2*aux1 + g1*aux4)
1206 b14 = 4.d0*(g2*aux2 + g1*aux5)
1207 b15 = 4.d0*(g2*aux3 + g1*aux6)
1209 b16 = 4.d0*(g3*aux4 + g2*aux7)
1210 b17 = 4.d0*(g3*aux5 + g2*aux8)
1211 b18 = 4.d0*(g3*aux6 + g2*aux9)
1213 b19 = 4.d0*(g1*aux7 + g3*aux1)
1214 b20 = 4.d0*(g1*aux8 + g3*aux2)
1215 b21 = 4.d0*(g1*aux9 + g3*aux3)
1217 b22 = 4.d0*(g4*aux1 + g1*aux10)
1218 b23 = 4.d0*(g4*aux2 + g1*aux11)
1219 b24 = 4.d0*(g4*aux3 + g1*aux12)
1221 b25 = 4.d0*(g4*aux4 + g2*aux10)
1222 b26 = 4.d0*(g4*aux5 + g2*aux11)
1223 b27 = 4.d0*(g4*aux6 + g2*aux12)
1225 b28 = 4.d0*(g4*aux7 + g3*aux10)
1226 b29 = 4.d0*(g4*aux8 + g3*aux11)
1227 b30 = 4.d0*(g4*aux9 + g3*aux12)
1229 dudx = (b1*u1 + b4*u2 + b7*u3 + b10*u4 + b13*u5 + b16*u6 + b19*u7 + b22*u8 + b25*u9 + b28*u10)*vx6inv
1230 dvdy = (b2*v1 + b5*v2 + b8*v3 + b11*v4 + b14*v5 + b17*v6 + b20*v7 + b23*v8 + b26*v9 + b29*v10)*vx6inv
1231 dwdz = (b3*w1 + b6*w2 + b9*w3 + b12*w4 + b15*w5 + b18*w6 + b21*w7 + b24*w8 + b27*w9 + b30*w10)*vx6inv
1232 dudy = (b2*u1 + b5*u2 + b8*u3 + b11*u4 + b14*u5 + b17*u6 + b20*u7 + b23*u8 + b26*u9 + b29*u10)*vx6inv
1233 dvdx = (b1*v1 + b4*v2 + b7*v3 + b10*v4 + b13*v5 + b16*v6 + b19*v7 + b22*v8 + b25*v9 + b28*v10)*vx6inv
1234 dvdz = (b3*v1 + b6*v2 + b9*v3 + b12*v4 + b15*v5 + b18*v6 + b21*v7 + b24*v8 + b27*v9 + b30*v10)*vx6inv
1235 dwdy = (b2*w1 + b5*w2 + b8*w3 + b11*w4 + b14*w5 + b17*w6 + b20*w7 + b23*w8 + b26*w9 + b29*w10)*vx6inv
1236 dudz = (b3*u1 + b6*u2 + b9*u3 + b12*u4 + b15*u5 + b18*u6 + b21*u7 + b24*u8 + b27*u9 + b30*u10)*vx6inv
1237 dwdx = (b1*w1 + b4*w2 + b7*w3 + b10*w4 + b13*w5 + b16*w6 + b19*w7 + b22*w8 + b25*w9 + b28*w10)*vx6inv
1242 f11 = 1.d0 + ( dudx )
1243 f22 = 1.d0 + ( dvdy )
1244 f33 = 1.d0 + ( dwdz )
1262 fdot(1,1) = 1.d0 + &
1263 (b1*vel_u1 + b4*vel_u2 + b7*vel_u3 + b10*vel_u4 + b13*vel_u5 + &
1264 b16*vel_u6 + b19*vel_u7 + b22*vel_u8 + b25*vel_u9 + b28*vel_u10)*vx6inv
1265 fdot(2,2) = 1.d0 + &
1266 (b2*vel_v1 + b5*vel_v2 + b8*vel_v3 + b11*vel_v4 + b14*vel_v5 + &
1267 b17*vel_v6 + b20*vel_v7 + b23*vel_v8 + b26*vel_v9 + b29*vel_v10)*vx6inv
1268 fdot(3,3) = 1.d0 + &
1269 (b3*vel_w1 + b6*vel_w2 + b9*vel_w3 + b12*vel_w4 + b15*vel_w5 + &
1270 b18*vel_w6 + b21*vel_w7 + b24*vel_w8 + b27*vel_w9 + b30*vel_w10)*vx6inv
1271 fdot(1,2) = (b2*vel_u1 + b5*vel_u2 + b8*vel_u3 + b11*vel_u4 + b14*vel_u5 + &
1272 b17*vel_u6 + b20*vel_u7 + b23*vel_u8 + b26*vel_u9 + b29*vel_u10)*vx6inv
1273 fdot(2,1) = (b1*vel_v1 + b4*vel_v2 + b7*vel_v3 + b10*vel_v4 + b13*vel_v5 + &
1274 b16*vel_v6 + b19*vel_v7 + b22*vel_v8 + b25*vel_v9 + b28*vel_v10)*vx6inv
1275 fdot(2,3) = (b3*vel_v1 + b6*vel_v2 + b9*vel_v3 + b12*vel_v4 + b15*vel_v5 + &
1276 b18*vel_v6 + b21*vel_v7 + b24*vel_v8 + b27*vel_v9 + b30*vel_v10)*vx6inv
1277 fdot(3,2) = (b2*vel_w1 + b5*vel_w2 + b8*vel_w3 + b11*vel_w4 + b14*vel_w5 + &
1278 b17*vel_w6 + b20*vel_w7 + b23*vel_w8 + b26*vel_w9 + b29*vel_w10)*vx6inv
1279 fdot(1,3) = (b3*vel_u1 + b6*vel_u2 + b9*vel_u3 + b12*vel_u4 + b15*vel_u5 + &
1280 b18*vel_u6 + b21*vel_u7 + b24*vel_u8 + b27*vel_u9 + b30*vel_u10)*vx6inv
1281 fdot(3,1) = (b1*vel_w1 + b4*vel_w2 + b7*vel_w3 + b10*vel_w4 + b13*vel_w5 + &
1282 b16*vel_w6 + b19*vel_w7 + b22*vel_w8 + b25*vel_w9 + b28*vel_w10)*vx6inv
1285 rho(
j), cd_fastest, detfold(4,
i), dt, f, fdot, vx6, strssvisco)
1289 e11 = dudx + 0.5d0*(dudx*dudx + dvdx*dvdx + dwdx*dwdx)
1290 e22 = dvdy + 0.5d0*(dudy*dudy + dvdy*dvdy + dwdy*dwdy)
1291 e33 = dwdz + 0.5d0*(dudz*dudz + dvdz*dvdz + dwdz*dwdz)
1292 e12 = dudy + dvdx + ( dudx*dudy + dvdx*dvdy + dwdx*dwdy )
1293 e23 = dvdz + dwdy + ( dudy*dudz + dvdy*dvdz + dwdy*dwdz )
1294 e13 = dwdx + dudz + ( dudz*dudx + dvdz*dvdx + dwdz*dwdx )
1298 s11(4,
i) = e11*ci(1,
j) + e22*ci(2,
j) + e33*ci(4,
j) + strssvisco(1,1)
1299 s22(4,
i) = e11*ci(2,
j) + e22*ci(3,
j) + e33*ci(5,
j) + strssvisco(2,2)
1300 s33(4,
i) = e11*ci(4,
j) + e22*ci(5,
j) + e33*ci(6,
j) + strssvisco(3,3)
1301 s12(4,
i) = e12*ci(7,
j) + strssvisco(1,2)
1302 s23(4,
i) = e23*ci(8,
j) + strssvisco(2,3)
1303 s13(4,
i) = e13*ci(9,
j) + strssvisco(1,3)
1306 ( s11(4,
i)*b1*(1.d0+dudx) + s22(4,
i)*b2*dudy + s33(4,
i)*b3*dudz &
1307 + s12(4,
i)*( b2*(1.d0+dudx) + b1*dudy ) &
1308 + s23(4,
i)*( b3*dudy + b2*dudz ) &
1309 + s13(4,
i)*( b3*(1.d0+dudx) + b1*dudz ) )
1311 ( s11(4,
i)*b1*dvdx + s22(4,
i)*b2*(1.d0+dvdy) + s33(4,
i)*b3*dvdz &
1312 + s12(4,
i)*( b1*(1.d0+dvdy) + b2*dvdx ) &
1313 + s23(4,
i)*( b3*(1.d0+dvdy) + b2*dvdz ) &
1314 + s13(4,
i)*( b3*dvdx + b1*dvdz ) )
1316 ( s11(4,
i)*b1*dwdx + s22(4,
i)*b2*dwdy + s33(4,
i)*b3*(1.d0+dwdz) &
1317 + s12(4,
i)*( b2*dwdx + b1*dwdy ) &
1318 + s23(4,
i)*( b3*dwdy + b2*(1.d0 + dwdz) ) &
1319 + s13(4,
i)*( b3*dwdx + b1*(1.d0 + dwdz) ) )
1322 ( s11(4,
i)*b4*(1.d0+dudx) + s22(4,
i)*b5*dudy + s33(4,
i)*b6*dudz &
1323 + s12(4,
i)*( b5*(1.d0+dudx) + b4*dudy ) &
1324 + s23(4,
i)*( b6*dudy + b5*dudz ) &
1325 + s13(4,
i)*( b6*(1.d0+dudx) + b4*dudz ) )
1327 ( s11(4,
i)*b4*dvdx + s22(4,
i)*b5*(1.d0+dvdy) + s33(4,
i)*b6*dvdz &
1328 + s12(4,
i)*( b4*(1.d0+dvdy) + b5*dvdx ) &
1329 + s23(4,
i)*( b6*(1.d0+dvdy) + b5*dvdz ) &
1330 + s13(4,
i)*( b6*dvdx + b4*dvdz ) )
1332 ( s11(4,
i)*b4*dwdx + s22(4,
i)*b5*dwdy + s33(4,
i)*b6*(1.d0+dwdz) &
1333 + s12(4,
i)*( b5*dwdx + b4*dwdy ) &
1334 + s23(4,
i)*( b6*dwdy + b5*(1.d0 + dwdz) ) &
1335 + s13(4,
i)*( b6*dwdx + b4*(1.d0 + dwdz) ) )
1338 ( s11(4,
i)*b7*(1.d0+dudx) + s22(4,
i)*b8*dudy + s33(4,
i)*b9*dudz &
1339 + s12(4,
i)*( b8*(1.d0+dudx) + b7*dudy ) &
1340 + s23(4,
i)*( b9*dudy + b8*dudz ) &
1341 + s13(4,
i)*( b9*(1.d0+dudx) + b7*dudz ) )
1343 ( s11(4,
i)*b7*dvdx + s22(4,
i)*b8*(1.d0+dvdy) + s33(4,
i)*b9*dvdz &
1344 + s12(4,
i)*( b7*(1.d0+dvdy) + b8*dvdx ) &
1345 + s23(4,
i)*( b9*(1.d0+dvdy) + b8*dvdz ) &
1346 + s13(4,
i)*( b9*dvdx + b7*dvdz ) )
1348 ( s11(4,
i)*b7*dwdx + s22(4,
i)*b8*dwdy + s33(4,
i)*b9*(1.d0+dwdz) &
1349 + s12(4,
i)*( b8*dwdx + b7*dwdy ) &
1350 + s23(4,
i)*( b9*dwdy + b8*(1.d0 + dwdz) ) &
1351 + s13(4,
i)*( b9*dwdx + b7*(1.d0 + dwdz) ) )
1354 ( s11(4,
i)*b10*(1.d0+dudx) + s22(4,
i)*b11*dudy+s33(4,
i)*b12*dudz &
1355 + s12(4,
i)*( b11*(1.d0+dudx) + b10*dudy ) &
1356 + s23(4,
i)*( b12*dudy + b11*dudz ) &
1357 + s13(4,
i)*( b12*(1.d0+dudx) + b10*dudz ) )
1359 ( s11(4,
i)*b10*dvdx + s22(4,
i)*b11*(1.d0+dvdy)+s33(4,
i)*b12*dvdz &
1360 + s12(4,
i)*( b10*(1.d0+dvdy) + b11*dvdx ) &
1361 + s23(4,
i)*( b12*(1.d0+dvdy) + b11*dvdz ) &
1362 + s13(4,
i)*( b12*dvdx + b10*dvdz ) )
1364 ( s11(4,
i)*b10*dwdx + s22(4,
i)*b11*dwdy+s33(4,
i)*b12*(1.d0+dwdz) &
1365 + s12(4,
i)*( b11*dwdx + b10*dwdy ) &
1366 + s23(4,
i)*( b12*dwdy + b11*(1.d0 + dwdz) ) &
1367 + s13(4,
i)*( b12*dwdx + b10*(1.d0 + dwdz) ) )
1370 ( s11(4,
i)*b13*(1.d0+dudx) + s22(4,
i)*b14*dudy + s33(4,
i)*b15*dudz &
1371 + s12(4,
i)*( b14*(1.d0+dudx) + b13*dudy ) &
1372 + s23(4,
i)*( b15*dudy + b14*dudz ) &
1373 + s13(4,
i)*( b15*(1.d0+dudx) + b13*dudz ) )
1375 ( s11(4,
i)*b13*dvdx + s22(4,
i)*b14*(1.d0+dvdy) + s33(4,
i)*b15*dvdz &
1376 + s12(4,
i)*( b13*(1.d0+dvdy) + b14*dvdx ) &
1377 + s23(4,
i)*( b15*(1.d0+dvdy) + b14*dvdz ) &
1378 + s13(4,
i)*( b15*dvdx + b13*dvdz ) )
1380 ( s11(4,
i)*b13*dwdx + s22(4,
i)*b14*dwdy + s33(4,
i)*b15*(1.d0+dwdz) &
1381 + s12(4,
i)*( b14*dwdx + b13*dwdy ) &
1382 + s23(4,
i)*( b15*dwdy + b14*(1.d0 + dwdz) ) &
1383 + s13(4,
i)*( b15*dwdx + b13*(1.d0 + dwdz) ) )
1386 ( s11(4,
i)*b16*(1.d0+dudx) + s22(4,
i)*b17*dudy + s33(4,
i)*b18*dudz &
1387 + s12(4,
i)*( b17*(1.d0+dudx) + b16*dudy ) &
1388 + s23(4,
i)*( b18*dudy + b17*dudz ) &
1389 + s13(4,
i)*( b18*(1.d0+dudx) + b16*dudz ) )
1391 ( s11(4,
i)*b16*dvdx + s22(4,
i)*b17*(1.d0+dvdy) + s33(4,
i)*b18*dvdz &
1392 + s12(4,
i)*( b16*(1.d0+dvdy) + b17*dvdx ) &
1393 + s23(4,
i)*( b18*(1.d0+dvdy) + b17*dvdz ) &
1394 + s13(4,
i)*( b18*dvdx + b16*dvdz ) )
1396 ( s11(4,
i)*b16*dwdx + s22(4,
i)*b17*dwdy + s33(4,
i)*b18*(1.d0+dwdz) &
1397 + s12(4,
i)*( b17*dwdx + b16*dwdy ) &
1398 + s23(4,
i)*( b18*dwdy + b17*(1.d0 + dwdz) ) &
1399 + s13(4,
i)*( b18*dwdx + b16*(1.d0 + dwdz) ) )
1402 ( s11(4,
i)*b19*(1.d0+dudx) + s22(4,
i)*b20*dudy + s33(4,
i)*b21*dudz &
1403 + s12(4,
i)*( b20*(1.d0+dudx) + b19*dudy ) &
1404 + s23(4,
i)*( b21*dudy + b20*dudz ) &
1405 + s13(4,
i)*( b21*(1.d0+dudx) + b19*dudz ) )
1407 ( s11(4,
i)*b19*dvdx + s22(4,
i)*b20*(1.d0+dvdy) + s33(4,
i)*b21*dvdz &
1408 + s12(4,
i)*( b19*(1.d0+dvdy) + b20*dvdx ) &
1409 + s23(4,
i)*( b21*(1.d0+dvdy) + b20*dvdz ) &
1410 + s13(4,
i)*( b21*dvdx + b19*dvdz ) )
1412 ( s11(4,
i)*b19*dwdx + s22(4,
i)*b20*dwdy + s33(4,
i)*b21*(1.d0+dwdz) &
1413 + s12(4,
i)*( b20*dwdx + b19*dwdy ) &
1414 + s23(4,
i)*( b21*dwdy + b20*(1.d0 + dwdz) ) &
1415 + s13(4,
i)*( b21*dwdx + b19*(1.d0 + dwdz) ) )
1418 ( s11(4,
i)*b22*(1.d0+dudx) + s22(4,
i)*b23*dudy+s33(4,
i)*b24*dudz &
1419 + s12(4,
i)*( b23*(1.d0+dudx) + b22*dudy ) &
1420 + s23(4,
i)*( b24*dudy + b23*dudz ) &
1421 + s13(4,
i)*( b24*(1.d0+dudx) + b22*dudz ) )
1423 ( s11(4,
i)*b22*dvdx + s22(4,
i)*b23*(1.d0+dvdy)+s33(4,
i)*b24*dvdz &
1424 + s12(4,
i)*( b22*(1.d0+dvdy) + b23*dvdx ) &
1425 + s23(4,
i)*( b24*(1.d0+dvdy) + b23*dvdz ) &
1426 + s13(4,
i)*( b24*dvdx + b22*dvdz ) )
1428 ( s11(4,
i)*b22*dwdx + s22(4,
i)*b23*dwdy+s33(4,
i)*b24*(1.d0+dwdz) &
1429 + s12(4,
i)*( b23*dwdx + b22*dwdy ) &
1430 + s23(4,
i)*( b24*dwdy + b23*(1.d0 + dwdz) ) &
1431 + s13(4,
i)*( b24*dwdx + b22*(1.d0 + dwdz) ) )
1434 ( s11(4,
i)*b25*(1.d0+dudx) + s22(4,
i)*b26*dudy+s33(4,
i)*b27*dudz &
1435 + s12(4,
i)*( b26*(1.d0+dudx) + b25*dudy ) &
1436 + s23(4,
i)*( b27*dudy + b26*dudz ) &
1437 + s13(4,
i)*( b27*(1.d0+dudx) + b25*dudz ) )
1439 ( s11(4,
i)*b25*dvdx + s22(4,
i)*b26*(1.d0+dvdy)+s33(4,
i)*b27*dvdz &
1440 + s12(4,
i)*( b25*(1.d0+dvdy) + b26*dvdx ) &
1441 + s23(4,
i)*( b27*(1.d0+dvdy) + b26*dvdz ) &
1442 + s13(4,
i)*( b27*dvdx + b25*dvdz ) )
1444 ( s11(4,
i)*b25*dwdx + s22(4,
i)*b26*dwdy+s33(4,
i)*b27*(1.d0+dwdz) &
1445 + s12(4,
i)*( b26*dwdx + b25*dwdy ) &
1446 + s23(4,
i)*( b27*dwdy + b26*(1.d0 + dwdz) ) &
1447 + s13(4,
i)*( b27*dwdx + b25*(1.d0 + dwdz) ) )
1450 ( s11(4,
i)*b28*(1.d0+dudx) + s22(4,
i)*b29*dudy+s33(4,
i)*b30*dudz &
1451 + s12(4,
i)*( b29*(1.d0+dudx) + b28*dudy ) &
1452 + s23(4,
i)*( b30*dudy + b29*dudz ) &
1453 + s13(4,
i)*( b30*(1.d0+dudx) + b28*dudz ) )
1455 ( s11(4,
i)*b28*dvdx + s22(4,
i)*b29*(1.d0+dvdy)+s33(4,
i)*b30*dvdz &
1456 + s12(4,
i)*( b28*(1.d0+dvdy) + b29*dvdx ) &
1457 + s23(4,
i)*( b30*(1.d0+dvdy) + b29*dvdz ) &
1458 + s13(4,
i)*( b30*dvdx + b28*dvdz ) )
1460 ( s11(4,
i)*b28*dwdx + s22(4,
i)*b29*dwdy+s33(4,
i)*b30*(1.d0+dwdz) &
1461 + s12(4,
i)*( b29*dwdx + b28*dwdy ) &
1462 + s23(4,
i)*( b30*dwdy + b29*(1.d0 + dwdz) ) &
1463 + s13(4,
i)*( b30*dwdx + b28*(1.d0 + dwdz) ) )
1473 r_in(k1n1) = r_in(k1n1) - r1*0.04166666666666667d0
1474 r_in(k2n1) = r_in(k2n1) - r2*0.04166666666666667d0
1475 r_in(k3n1) = r_in(k3n1) - r3*0.04166666666666667d0
1477 r_in(k1n2) = r_in(k1n2) - r4*0.04166666666666667d0
1478 r_in(k2n2) = r_in(k2n2) - r5*0.04166666666666667d0
1479 r_in(k3n2) = r_in(k3n2) - r6*0.04166666666666667d0
1481 r_in(k1n3) = r_in(k1n3) - r7*0.04166666666666667d0
1482 r_in(k2n3) = r_in(k2n3) - r8*0.04166666666666667d0
1483 r_in(k3n3) = r_in(k3n3) - r9*0.04166666666666667d0
1485 r_in(k1n4) = r_in(k1n4) - r10*0.04166666666666667d0
1486 r_in(k2n4) = r_in(k2n4) - r11*0.04166666666666667d0
1487 r_in(k3n4) = r_in(k3n4) - r12*0.04166666666666667d0
1489 r_in(k1n5) = r_in(k1n5) - r13*0.04166666666666667d0
1490 r_in(k2n5) = r_in(k2n5) - r14*0.04166666666666667d0
1491 r_in(k3n5) = r_in(k3n5) - r15*0.04166666666666667d0
1493 r_in(k1n6) = r_in(k1n6) - r16*0.04166666666666667d0
1494 r_in(k2n6) = r_in(k2n6) - r17*0.04166666666666667d0
1495 r_in(k3n6) = r_in(k3n6) - r18*0.04166666666666667d0
1497 r_in(k1n7) = r_in(k1n7) - r19*0.04166666666666667d0
1498 r_in(k2n7) = r_in(k2n7) - r20*0.04166666666666667d0
1499 r_in(k3n7) = r_in(k3n7) - r21*0.04166666666666667d0
1501 r_in(k1n8) = r_in(k1n8) - r22*0.04166666666666667d0
1502 r_in(k2n8) = r_in(k2n8) - r23*0.04166666666666667d0
1503 r_in(k3n8) = r_in(k3n8) - r24*0.04166666666666667d0
1505 r_in(k1n9) = r_in(k1n9) - r25*0.04166666666666667d0
1506 r_in(k2n9) = r_in(k2n9) - r26*0.04166666666666667d0
1507 r_in(k3n9) = r_in(k3n9) - r27*0.04166666666666667d0
1509 r_in(k1n10) = r_in(k1n10) - r28*0.04166666666666667d0
1510 r_in(k2n10) = r_in(k2n10) - r29*0.04166666666666667d0
1511 r_in(k3n10) = r_in(k3n10) - r30*0.04166666666666667d0
subroutine artificialdamping(numcstet, numnp, rho, cd_fastest, DetFold, dt, F, Fdot, Vx6, StrssVisco)
subroutine v3d10_nl_damping(coor, matcstet, lmcstet, R_in, d, ci, S11, S22, S33, S12, S23, S13, numnp, nstart, nend, numcstet, numat_vol, rho, cd_fastest, DetFold, velo, dt)