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 calcrhofa(nface,vfa,rhcon,nrhcon,ielmat,ntmat_, 20 & ithermal,mi,ielfa) 21! 22! calculation of the density at the face centers 23! (incompressible fluids) 24! 25 implicit none 26! 27 integer nface,i,nrhcon(*),imat,ithermal(*),ntmat_,mi(*), 28 & ielmat(mi(3),*),ielfa(4,*) 29! 30 real*8 t1l,vfa(0:7,*),rhcon(0:1,ntmat_,*) 31! 32 do i=1,nface 33 t1l=vfa(0,i) 34! 35! take the material of the first adjacent element 36! 37 imat=ielmat(1,ielfa(1,i)) 38 call materialdata_rho(rhcon,nrhcon,imat,vfa(5,i),t1l,ntmat_, 39 & ithermal) 40 enddo 41! 42 return 43 end 44