OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
aturi3.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/.
23C
24!||====================================================================
25!|| aturi3 ../starter/source/ale/ale3d/aturi3.F
26!||--- called by ------------------------------------------------------
27!|| multifluid_init3 ../starter/source/multifluid/multifluid_init3.F
28!|| s4init3 ../starter/source/elements/solid/solide4/s4init3.F
29!|| sinit3 ../starter/source/elements/solid/solide/sinit3.F
30!||--- uses -----------------------------------------------------
31!||====================================================================
32 SUBROUTINE aturi3(IPARG,RHO,PM,IX,X,RK,RE,VOLU)
33 use element_mod , only : nixs
34C-----------------------------------------------
35C D e s c r i p t i o n
36C-----------------------------------------------
37C This subroutine is initializing state for
38C turbulency model K-EPS in ALE (3D)
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C G l o b a l P a r a m e t e r s
45C-----------------------------------------------
46#include "mvsiz_p.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "com01_c.inc"
51#include "vect01_c.inc"
52#include "param_c.inc"
53#include "com04_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER,INTENT(IN) :: IX(NIXS,*), IPARG(NPARG,NGROUP)
58 my_real,INTENT(IN) :: rho(mvsiz), volu(mvsiz),pm(npropm,nummat), x(3,numnod)
59 my_real,INTENT(INOUT) :: rk(mvsiz), re(mvsiz)
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER I, II, MAT, NG, MTN2, LLT2, NFT2, LFT2, JJ, J
64 my_real xl, xk, c1, xe, d2, x0, y0, z0, x1, y1, z1
65C-----------------------------------------------
66C S o u r c e L i n e s
67C-----------------------------------------------
68 IF(mtn == 17)THEN
69 DO i=lft,llt
70 ii=i+nft
71 mat=iabs(ix(1,ii))
72 rk(i)=rho(i)*pm(87,mat)
73 xl=volu(i)**zep333
74 xk= max(rk(i),em15)/rho(i)
75 c1=pm(81,mat)
76 xe=sqrt(xk*sqrt(c1))**3/(zep4187*xl)
77 re(i)=rho(i)*xe
78 END DO
79 ELSE
80 DO i=lft,llt
81 ii=i+nft
82 mat=iabs(ix(1,ii))
83 rk(i)=rho(i)*pm(87,mat)
84 xl=volu(i)**zep333
85 xk= max(rk(i),em15)/rho(i)
86 d2=ep30
87 x0=x(1,ix(2,ii))+x(1,ix(3,ii))+x(1,ix(4,ii))+x(1,ix(5,ii))+x(1,ix(6,ii))+x(1,ix(7,ii))+x(1,ix(8,ii))+x(1,ix(9,ii))
88 y0=x(2,ix(2,ii))+x(2,ix(3,ii))+x(2,ix(4,ii))+x(2,ix(5,ii))+x(2,ix(6,ii))+x(2,ix(7,ii))+x(2,ix(8,ii))+x(2,ix(9,ii))
89 z0=x(3,ix(2,ii))+x(3,ix(3,ii))+x(3,ix(4,ii))+x(3,ix(5,ii))+x(3,ix(6,ii))+x(3,ix(7,ii))+x(3,ix(8,ii))+x(3,ix(9,ii))
90 DO ng=1,ngroup
91 mtn2=iparg(1,ng)
92 IF(mtn2 == 17)THEN
93 llt2=iparg(2,ng)
94 nft2=iparg(3,ng)
95 lft2=1
96 DO jj=lft2,llt2
97 j=jj+nft2
98 x1=x(1,ix(2,j))+x(1,ix(3,j))+x(1,ix(4,j))+x(1,ix(5,j))+x(1,ix(6,j))+x(1,ix(7,j))+x(1,ix(8,j))+x(1,ix(9,j))
99 y1=x(2,ix(2,j))+x(2,ix(3,j))+x(2,ix(4,j))+x(2,ix(5,j))+x(2,ix(6,j))+x(2,ix(7,j))+x(2,ix(8,j))+x(2,ix(9,j))
100 z1=x(3,ix(2,j))+x(3,ix(3,j))+x(3,ix(4,j))+x(3,ix(5,j))+x(3,ix(6,j))+x(3,ix(7,j))+x(3,ix(8,j))+x(3,ix(9,j))
101 d2= min(d2,(x1-x0)**2+(y1-y0)**2+(z1-z0)**2)
102 END DO !JJ = LFT2, LLT2
103 ENDIF
104 END DO !NG=1,NGROUP
105 xl=xl+one_over_8*sqrt(d2)
106 xe=zep33*sqrt(xk)**3/xl
107 re(i)=rho(i)*xe
108 END DO !I=LFT,LLT
109 ENDIF
110C-----------------------------------------------
111 RETURN
112 END
subroutine aturi3(iparg, rho, pm, ix, x, rk, re, volu)
Definition aturi3.F:33
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21