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

Go to the source code of this file.

Functions/Subroutines

subroutine calcrhoelcomp (nef, vel, shcon, ielmat, ntmat_, mi)
 

Function/Subroutine Documentation

◆ calcrhoelcomp()

subroutine calcrhoelcomp ( integer  nef,
real*8, dimension(nef,0:7)  vel,
real*8, dimension(0:3,ntmat_,*)  shcon,
integer, dimension(mi(3),*)  ielmat,
integer  ntmat_,
integer, dimension(*)  mi 
)
21 !
22 ! calculation of rho in the element centers (compressible
23 ! fluids)
24 !
25  implicit none
26 !
27  integer nef,i,imat,ntmat_,mi(*),
28  & ielmat(mi(3),*)
29 !
30  real*8 t1l,vel(nef,0:7),shcon(0:3,ntmat_,*)
31 !
32 c$omp parallel default(none)
33 c$omp& shared(nef,vel,ielmat,shcon)
34 c$omp& private(i,t1l,imat)
35 c$omp do
36  do i=1,nef
37  t1l=vel(i,0)
38  imat=ielmat(1,i)
39  vel(i,5)=vel(i,4)/(shcon(3,1,imat)*t1l)
40  enddo
41 c$omp end do
42 c$omp end parallel
43 !
44  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)