1! 2! CalculiX - A 3-dimensional finite element program 3! Copyright (C) 1998-2021 Guido Dhondt 4! 5! This program is free software; you can redistribute it and/or 6! modify it under the terms of the GNU General Public License as 7! published by the Free Software Foundation(version 2); 8! 9! 10! This program is distributed in the hope that it will be useful, 11! but WITHOUT ANY WARRANTY; without even the implied warranty of 12! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13! GNU General Public License for more details. 14! 15! You should have received a copy of the GNU General Public License 16! along with this program; if not, write to the Free Software 17! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18! 19 subroutine extrapol_kel2(ipnei,neifa,vfa,area,xxna,volume,gradkel, 20 & nefa,nefb,ncfd) 21! 22! calculate the gradient of the temperature at the center of 23! the elements 24! 25 implicit none 26! 27 integer ipnei(*),neifa(*),nefa,nefb,ifa,i,l,indexf,ncfd 28! 29 real*8 vfa(0:7,*),area(*),xxna(3,*),volume(*),gradkel(3,*) 30! 31! 32! 33 do i=nefa,nefb 34! 35! initialization 36! 37 do l=1,ncfd 38 gradkel(l,i)=0.d0 39 enddo 40! 41 do indexf=ipnei(i)+1,ipnei(i+1) 42 ifa=neifa(indexf) 43 do l=1,ncfd 44 gradkel(l,i)=gradkel(l,i)+ 45 & vfa(6,ifa)*xxna(l,indexf) 46 enddo 47 enddo 48! 49! dividing by the volume of the element 50! 51 do l=1,ncfd 52 gradkel(l,i)=gradkel(l,i)/volume(i) 53 enddo 54 enddo 55! 56 return 57 end 58