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

Go to the source code of this file.

Functions/Subroutines

subroutine calcrhofa (nface, vfa, rhcon, nrhcon, ielmat, ntmat_, ithermal, mi, ielfa)
 

Function/Subroutine Documentation

◆ calcrhofa()

subroutine calcrhofa ( integer  nface,
real*8, dimension(0:7,*)  vfa,
real*8, dimension(0:1,ntmat_,*)  rhcon,
integer, dimension(*)  nrhcon,
integer, dimension(mi(3),*)  ielmat,
integer  ntmat_,
integer  ithermal,
integer, dimension(*)  mi,
integer, dimension(4,*)  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,*),rho,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,rho,t1l,ntmat_,
39  & ithermal)
40  vfa(5,i)=rho
41  enddo
42 !
43  return
subroutine materialdata_rho(rhcon, nrhcon, imat, rho, t1l, ntmat_, ithermal)
Definition: materialdata_rho.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)