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 calcinitialflux(area,vfa,xxna, 20 & ipnei,nef,neifa,lakonf,flux) 21! 22! correction of v due to the balance of mass 23! the correction is in normal direction to the face 24! 25 implicit none 26! 27 character*8 lakonf(*) 28! 29 integer i,j,indexf,ipnei(*),ifa,nef,neifa(*),numfaces 30! 31 real*8 area(*),vfa(0:7,*),xxna(3,*),flux(*) 32! 33 do i=1,nef 34 do indexf=ipnei(i)+1,ipnei(i+1) 35 ifa=neifa(indexf) 36 flux(indexf)=vfa(5,ifa)* 37 & (vfa(1,ifa)*xxna(1,indexf)+ 38 & vfa(2,ifa)*xxna(2,indexf)+ 39 & vfa(3,ifa)*xxna(3,indexf)) 40 enddo 41 enddo 42! 43 return 44 end 45