Prof. Taylor, for the kinetic energy calculation in sengy.f in the solid2d folder, ul(ndf,nel,4) was used. I guess this variable is the velocity for each Gaussian point. However, I don't where it was calculated. I need to calculate it in my user element. So I am wondering in which file I can find it. Thanks.
in the sengy.f file:
vsqr = 0.0d0
do i = 1,is
vl = 0.0d0
do j = 1,nel
vl = vl + ul(i,j,4)*shp(ns,j)
end do ! j
vsqr = vsqr + vl*vl
vl = vl*cfac*dmas ! Set consistent mass part
do j = 1,nel
mom(i,j) = mom(i,j) + shp(ns,j)*vl
end do ! j
end do ! i