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

Go to the source code of this file.

Functions/Subroutines

subroutine materialdata_cfd_comp (nef, vel, shcon, nshcon, ielmatf, ntmat_, mi, cvel, vfa, cocon, ncocon, physcon, cvfa, ithermal, nface, umel, umfa, ielfa, hcfa)
 

Function/Subroutine Documentation

◆ materialdata_cfd_comp()

subroutine materialdata_cfd_comp ( integer, intent(in)  nef,
real*8, dimension(nef,0:7), intent(inout)  vel,
real*8, dimension(0:3,ntmat_,*), intent(in)  shcon,
integer, dimension(2,*), intent(in)  nshcon,
integer, dimension(mi(3),*), intent(in)  ielmatf,
integer, intent(in)  ntmat_,
integer, dimension(*), intent(in)  mi,
real*8, dimension(*), intent(inout)  cvel,
real*8, dimension(0:7,*), intent(inout)  vfa,
real*8, dimension(0:6,ntmat_,*), intent(in)  cocon,
integer, dimension(2,*), intent(in)  ncocon,
real*8, dimension(*), intent(in)  physcon,
real*8, dimension(*), intent(inout)  cvfa,
integer, intent(in)  ithermal,
integer, intent(in)  nface,
real*8, dimension(*), intent(inout)  umel,
real*8, dimension(*), intent(inout)  umfa,
integer, dimension(4,*), intent(in)  ielfa,
real*8, dimension(*), intent(inout)  hcfa 
)
22 !
23 ! calculation of material properties at elements centers and
24 ! face centers (compressible fluids)
25 !
26  implicit none
27 !
28  integer nef,i,imat,ntmat_,mi(*),ielmatf(mi(3),*),ithermal,
29  & nshcon(2,*),nface,ncocon(2,*),ielfa(4,*)
30 !
31  real*8 t1l,vel(nef,0:7),shcon(0:3,ntmat_,*),cvel(*),vfa(0:7,*),
32  & cp,cocon(0:6,ntmat_,*),physcon(*),cvfa(*),umel(*),umfa(*),
33  & hcfa(*)
34 !
35  intent(in) nef,shcon,nshcon,ielmatf,
36  & ntmat_,mi,cocon,ncocon,physcon,ithermal,nface,
37  & ielfa
38 !
39  intent(inout) vel,vfa,cvel,cvfa,umel,umfa,hcfa
40 !
41 c$omp parallel default(none)
42 c$omp& shared(nef,vel,ielmatf,shcon,ntmat_,nshcon,physcon,cvel,umel,
43 c$omp& ithermal,nface,vfa,ielfa,cvfa,umfa,hcfa,cocon,ncocon)
44 c$omp& private(i,t1l,imat,cp)
45 !
46 ! element (cell) values
47 !
48 c$omp do
49  do i=1,nef
50  t1l=vel(i,0)
51  imat=ielmatf(1,i)
52 !
53 ! density
54 !
55 c vel(i,5)=vel(i,4)/(shcon(3,1,imat)*t1l)
56 !
57 ! heat capacity at constant volume
58 !
59  call materialdata_cp_sec(imat,ntmat_,t1l,shcon,nshcon,cp,
60  & physcon)
61 !
62 ! cv=cp-r
63 !
64  cvel(i)=cp-shcon(3,1,imat)
65 !
66 ! dynamic viscosity
67 !
68  call materialdata_dvi(shcon,nshcon,imat,umel(i),t1l,ntmat_,
69  & ithermal)
70  enddo
71 c$omp end do
72 !
73 ! facial values
74 !
75 c$omp do
76  do i=1,nface
77  t1l=vfa(0,i)
78 !
79 ! take the material of the first adjacent element
80 !
81  imat=ielmatf(1,ielfa(1,i))
82 !
83 ! density
84 !
85 c vfa(5,i)=vfa(4,i)/(shcon(3,1,imat)*t1l)
86 !
87 ! heat capacity at constant volume
88 !
89  call materialdata_cp_sec(imat,ntmat_,t1l,shcon,nshcon,cp,
90  & physcon)
91 !
92 ! cv=cp-r
93 !
94  cvfa(i)=cp-shcon(3,1,imat)
95 !
96 ! dynamic viscosity
97 !
98  call materialdata_dvi(shcon,nshcon,imat,umfa(i),t1l,ntmat_,
99  & ithermal)
100 !
101 ! heat conduction
102 !
103  call materialdata_cond(imat,ntmat_,t1l,cocon,ncocon,hcfa(i))
104  enddo
105 c$omp end do
106 c$omp end parallel
107 !
108  return
subroutine materialdata_cp_sec(imat, ntmat_, t1l, shcon, nshcon, cp, physcon)
Definition: materialdata_cp_sec.f:20
subroutine materialdata_cond(imat, ntmat_, t1l, cocon, ncocon, cond)
Definition: materialdata_cond.f:19
subroutine materialdata_dvi(shcon, nshcon, imat, dvi, t1l, ntmat_, ithermal)
Definition: materialdata_dvi.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)