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 networkforc(vl,tnl,imat,konl,mi,ntmat_,shcon, 20 & nshcon,rhcon,nrhcon) 21! 22! calculates the concentrated flux of a generic networkelement 23! element label: D + blank 24! 25 implicit none 26! 27 integer konl(20),mi(*),imat,nshcon(*),nrhcon(*),ntmat_ 28! 29 real*8 vl(0:mi(2),20),tnl(9),gastemp,shcon(0:3,ntmat_,*), 30 & cp,r,dvi,rhcon(0:1,ntmat_,*),rho 31! 32 gastemp=(vl(0,1)+vl(0,3))/2.d0 33! 34 call materialdata_tg(imat,ntmat_,gastemp,shcon,nshcon,cp,r, 35 & dvi,rhcon,nrhcon,rho) 36! 37! internal force = - external force 38! 39 if(vl(1,2).gt.0.d0) then 40 tnl(3)=cp*(vl(0,3)-vl(0,1))*vl(1,2) 41 else 42 tnl(1)=-cp*(vl(0,1)-vl(0,3))*vl(1,2) 43 endif 44! 45 return 46 end 47 48