OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
aturbn.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| aturbn ../engine/source/ale/turbulence/aturbn.F
25!||--- called by ------------------------------------------------------
26!|| mmain ../engine/source/materials/mat_share/mmain.F90
27!||====================================================================
28 SUBROUTINE aturbn(PM,OFF ,RHO ,RK ,RE ,GEO ,
29 2 EINC ,DVOL ,VNEW ,PTURB ,TMU ,VIS ,
30 3 VD2 ,MAT ,NGEO,
31 5 LFT, LLT, JPOR, JCLOSE)
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
110 END
subroutine aturbn(pm, off, rho, rk, re, geo, einc, dvol, vnew, pturb, tmu, vis, vd2, mat, ngeo, lft, llt, jpor, jclose)
Definition aturbn.F:32
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21