CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
linvec10.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine linvec10 (vec, konl, vecl, istart, iend, shp)
 

Function/Subroutine Documentation

◆ linvec10()

subroutine linvec10 ( real*8, dimension(istart:iend,*)  vec,
integer, dimension(*)  konl,
real*8, dimension(3)  vecl,
integer  istart,
integer  iend,
real*8, dimension(4,*)  shp 
)
20 !
21 ! calculates a linear approximation to the quadratic interpolation
22 ! of the temperatures in a C3D10 element. A
23 ! quadratic interpolation of the temperatures leads to quadratic
24 ! thermal stresses, which cannot be handled by the elements
25 ! displacement functions (which lead to linear stresses). Thus,
26 ! the temperatures are approximated by a linear function.
27 !
28  implicit none
29 !
30  integer konl(*),j,istart,iend
31 !
32  real*8 vec(istart:iend,*),vecl(3),shp(4,*)
33 !
34  do j=1,3
35  vecl(j)=
36  & (shp(4,1)+(shp(4,5)+shp(4,7)+shp(4,8))/2.d0)*vec(j,konl(1))
37  & +(shp(4,2)+(shp(4,5)+shp(4,6)+shp(4,9))/2.d0)*vec(j,konl(2))
38  & +(shp(4,3)+(shp(4,6)+shp(4,7)+shp(4,10))/2.d0)*vec(j,konl(3))
39  & +(shp(4,4)+(shp(4,8)+shp(4,9)+shp(4,10))/2.d0)*vec(j,konl(4))
40  enddo
41 !
42  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)