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

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

◆ materialdata_cfd()

subroutine materialdata_cfd ( 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,
real*8, dimension(0:1,ntmat_,*)  rhcon,
integer, dimension(*)  nrhcon 
)
22 !
23 ! calculation of material properties at elements centers and
24 ! face centers (incompressible 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,*),nrhcon(*)
30 !
31  real*8 t1l,vel(nef,0:7),shcon(0:3,ntmat_,*),cvel(*),vfa(0:7,*),
32  & cocon(0:6,ntmat_,*),physcon(*),cvfa(*),umel(*),umfa(*),
33  & hcfa(*),rhcon(0:1,ntmat_,*)
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& rhcon,nrhcon)
45 c$omp& private(i,t1l,imat)
46 !
47 ! element (cell) values
48 !
49 c$omp do
50  do i=1,nef
51  t1l=vel(i,0)
52  imat=ielmatf(1,i)
53 !
54 ! density
55 !
56  call materialdata_rho(rhcon,nrhcon,imat,vel(i,5),t1l,ntmat_,
57  & ithermal)
58 !
59 ! heat capacity at constant volume
60 ! (for liquids: =heat capacity at constant pressure)
61 !
62  call materialdata_cp_sec(imat,ntmat_,t1l,shcon,nshcon,cvel(i),
63  & physcon)
64 !
65 ! dynamic viscosity
66 !
67  call materialdata_dvi(shcon,nshcon,imat,umel(i),t1l,ntmat_,
68  & ithermal)
69  enddo
70 c$omp end do
71 !
72 ! facial values
73 !
74 c$omp do
75  do i=1,nface
76  t1l=vfa(0,i)
77 !
78 ! take the material of the first adjacent element
79 !
80  imat=ielmatf(1,ielfa(1,i))
81 !
82 ! density
83 !
84  call materialdata_rho(rhcon,nrhcon,imat,vfa(5,i),t1l,ntmat_,
85  & ithermal)
86 !
87 ! heat capacity at constant volume
88 !
89  call materialdata_cp_sec(imat,ntmat_,t1l,shcon,nshcon,cvfa(i),
90  & physcon)
91 !
92 ! dynamic viscosity
93 !
94  call materialdata_dvi(shcon,nshcon,imat,umfa(i),t1l,ntmat_,
95  & ithermal)
96 !
97 ! heat conduction
98 !
99  call materialdata_cond(imat,ntmat_,t1l,cocon,ncocon,hcfa(i))
100  enddo
101 c$omp end do
102 c$omp end parallel
103 !
104  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
subroutine materialdata_rho(rhcon, nrhcon, imat, rho, t1l, ntmat_, ithermal)
Definition: materialdata_rho.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)