OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
aturbn.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "com08_c.inc"
#include "param_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine aturbn (pm, off, rho, rk, re, geo, einc, dvol, vnew, pturb, tmu, vis, vd2, mat, ngeo, lft, llt, jpor, jclose)

Function/Subroutine Documentation

◆ aturbn()

subroutine aturbn ( pm,
off,
rho,
rk,
re,
geo,
einc,
dvol,
vnew,
dimension(1:llt), intent(inout) pturb,
tmu,
vis,
vd2,
integer, dimension(*) mat,
integer, dimension(*) ngeo,
integer, intent(in) lft,
integer, intent(in) llt,
integer, intent(in) jpor,
integer, intent(in) jclose )

Definition at line 28 of file aturbn.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com04_c.inc"
40#include "com08_c.inc"
41#include "param_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER MAT(*),NGEO(*)
46 INTEGER, INTENT(IN) :: LFT, LLT, JPOR, JCLOSE
47
48 my_real pm(npropm,nummat), off(*), rho(*), rk(*), re(*),geo(npropg,numgeo)
49 my_real einc(*), dvol(*), vnew(*), tmu(*), vis(*), vd2(*)
50 my_real,intent(inout) :: pturb(1:llt) ! turbulent pressure (additional term)
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I
55 my_real ei, xfac, ark, c1, c2, c3, sgsl, cmu, se, fac, resgs
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59C
60 IF(jpor /= 2)THEN
61
62 DO i=lft,llt
63 xfac=tmu(i)/vis(i)
64 pturb(i)=two*rk(i)/(vnew(i)*three)
65 ei =xfac*einc(i)-dvol(i)*pturb(i)
66 ei =max(zero,ei)
67 rk(i) =rk(i)+(ei-re(i)*dt1)*off(i)
68 ark= max(rk(i),em15)
69 c1 =pm(82,mat(i))/ark
70 c2 =pm(83,mat(i))/ark
71 c3 =pm(84,mat(i))
72 re(i)=re(i)*(one +(c1*ei-c2*re(i)*dt1+c3*dvol(i)/vnew(i))*off(i))
73 rk(i)= max(em15,rk(i)/vnew(i))
74 re(i)= max(em15,re(i)/vnew(i))
75 ENDDO
76 IF(jclose == 0)THEN
77 DO i=lft,llt
78 sgsl=pm(46,mat(i))
79 cmu=pm(81,mat(i))
80 c1 =pm(82,mat(i))
81 c2 =pm(83,mat(i))
82 se =pm(86,mat(i))
83 fac=sqrt(cmu/(se*(c2-c1)))/sgsl
84 resgs=rho(i)*fac*(rk(i)/rho(i))**three_half
85 re(i)= max(re(i),resgs)
86 ENDDO
87 ELSE
88 DO i=lft,llt
89 sgsl=max(2.*geo(130,ngeo(i)),pm(46,mat(i)))
90 cmu=pm(81,mat(i))
91 c1 =pm(82,mat(i))
92 c2 =pm(83,mat(i))
93 se =pm(86,mat(i))
94 fac=sqrt(cmu/(se*(c2-c1)))/max(sgsl,em15)
95 resgs=rho(i)*fac*(rk(i)/rho(i))**three_half
96 re(i)= max(re(i),resgs)
97 ENDDO
98 ENDIF
99 ELSE
100 !POROUS MEDIA : IMPOSED TURBULENCY
101 DO i=lft,llt
102 ! W (GRID/MESH VELOCITY) SUPPOSED TO BE LOW REGARDING MATERIAL VELOCITY V (QUASI EULERIAN)
103 rk(i)=rho(i)*geo(22,ngeo(i))**2*vd2(i)
104 re(i)=(rk(i)**3/rho(i))**half/geo(23,ngeo(i))
105 ENDDO
106
107 endif! (JPOR /= 2)
108C
109 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21