54 & lmcstet,meshcoor,nstart,nend)
87 REAL*8,
DIMENSION(1:3*numnp) :: d_bar
89 REAL*8,
DIMENSION(1:3*numnp) :: r_bar
91 REAL*8,
DIMENSION(1:3,1:numnp) :: meshcoor
95 INTEGER,
DIMENSION(1:4,1:NumElv) :: lmcstet
97 REAL*8,
DIMENSION(1:12) :: disp
99 INTEGER :: nstart,nend
102 REAL*8 :: x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4
104 REAL*8 :: x14, x24, x34, y14, y24, y34, z14, z24, z34
106 REAL*8 :: c11, c12, c13, c21, c22, c23, c31, c32, c33
108 REAL*8 :: g11, g14, g17
116 INTEGER ::
i,
j, i3, j3, ielem
117 INTEGER :: nd1, nd2, nd3, nd4
118 INTEGER :: nx, ny, nz
121 REAL*8,
DIMENSION(1:10) :: elstiff
123 INTEGER,
DIMENSION(1:4,1:4) ::
map = &
124 & RESHAPE((/1,2,3,4,2,5,6,7,3,6,8,9,4,7,9,10/),(/4,4/))
126 DO ielem = nstart, nend
128 nd1 = lmcstet(1,ielem)
129 nd2 = lmcstet(2,ielem)
130 nd3 = lmcstet(3,ielem)
131 nd4 = lmcstet(4,ielem)
147 i3 = lmcstet(
i,ielem)*3
151 disp(
i*3-2) = d_bar(nx)
152 disp(
i*3-1) = d_bar(ny)
153 disp(
i*3 ) = d_bar(nz)
166 c11 = y24*z34 - z24*y34
167 c12 = -( y14*z34 - z14*y34 )
168 c13 = y14*z24 - z14*y24
169 c21 = -( x24*z34 - z24*x34 )
170 c22 = x14*z34 - z14*x34
171 c23 = -( x14*z24 - z14*x24 )
172 c31 = x24*y34 - y24*x34
173 c32 = -( x14*y34 - y14*x34 )
174 c33 = x14*y24 - y14*x24
176 g11 = c11**2 + c21**2 + c31**2
177 g14 = c11*c12 + c21*c22 + c31*c32
178 g17 = c11*c13 + c21*c23 + c31*c33
180 g44 = c12**2 + c22**2 + c32**2
181 g47 = c12*c13 + c22*c23 + c32*c33
183 g77 = c13**2 + c23**2 + c33**2
192 elstiff(4) = -g11 - g14 - g17
195 elstiff(7)= -g14 - g44 - g47
197 elstiff(9)= -g17 - g47 - g77
198 elstiff(10)= g11 + 2.d0*g14 + 2.d0*g17 + g44 + 2.d0*g47 + g77
202 vx6 = -( x14*c11 + y14*c21 + z14*c31 )
207 den = 1.d0/(6.d0*vx6)
208 elstiff(1:10) = elstiff(1:10)*
den
211 nz = lmcstet(
i,ielem)*3
217 r_bar(nx) = r_bar(nx) + elstiff(
k) * disp(j3-2)
218 r_bar(ny) = r_bar(ny) + elstiff(
k) * disp(j3-1)
219 r_bar(nz) = r_bar(nz) + elstiff(
k) * disp(j3)
subroutine v3d4_r_bar(d_bar, R_bar, numnp, NumElv, lmcstet, meshcoor, nstart, nend)
CImg< T > & map(const CImg< t > &palette)
Map predefined palette on the scalar (indexed) instance image.