OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
arezo2.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!|| arezo2_mod ../engine/source/ale/ale2d/arezo2.F
25!||--- called by ------------------------------------------------------
26!|| arezon ../engine/source/ale/arezon.F
27!||====================================================================
29 CONTAINS
30!||====================================================================
31!|| arezo2 ../engine/source/ale/ale2d/arezo2.F
32!||--- called by ------------------------------------------------------
33!|| arezon ../engine/source/ale/arezon.F
34!||--- uses -----------------------------------------------------
35!|| ale_connectivity_mod ../common_source/modules/ale/ale_connectivity_mod.F
36!||====================================================================
37 SUBROUTINE arezo2(ALE_CONNECT,VAR,PHI,FLUX,VOL)
38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
49#include "com08_c.inc"
50#include "vect01_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 my_real var(*), phi(*), flux(4,*), vol(*)
55 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I, IE, IV1, IV2, IV3, IV4, IAD2
60 my_real voln
61C-----------------------------------------------
62 IF (jmult == 0) THEN
63 DO i=lft,llt
64 ie =nft+i
65 iad2 = ale_connect%ee_connect%iad_connect(ie)
66 iv1=ale_connect%ee_connect%connected(iad2 + 1 - 1)
67 iv2=ale_connect%ee_connect%connected(iad2 + 2 - 1)
68 iv3=ale_connect%ee_connect%connected(iad2 + 3 - 1)
69 iv4=ale_connect%ee_connect%connected(iad2 + 4 - 1)
70 IF (iv1 <= 0)iv1=ie
71 IF (iv2 <= 0)iv2=ie
72 IF (iv3 <= 0)iv3=ie
73 IF (iv4 <= 0)iv4=ie
74 IF (vol(i) > zero) THEN
75 var(i)=var(i) + half*dt1*(phi(ie)* (flux(1,i)+flux(2,i)+flux(3,i)+flux(4,i))
76 . -phi(iv1)*flux(1,i)-phi(iv2)*flux(2,i)-phi(iv3)*flux(3,i)-phi(iv4)*flux(4,i)) / vol(i)
77 ENDIF
78 ENDDO
79 ELSE
80 DO i=lft,llt
81 ie =nft+i
82 iad2 = ale_connect%ee_connect%iad_connect(ie)
83 iv1=ale_connect%ee_connect%connected(iad2 + 1 - 1)
84 iv2=ale_connect%ee_connect%connected(iad2 + 2 - 1)
85 iv3=ale_connect%ee_connect%connected(iad2 + 3 - 1)
86 iv4=ale_connect%ee_connect%connected(iad2 + 4 - 1)
87
88 IF(iv1 <= 0)iv1=ie
89 IF(iv2 <= 0)iv2=ie
90 IF(iv3 <= 0)iv3=ie
91 IF(iv4 <= 0)iv4=ie
92 voln=vol(i)-dt1 * (flux(1,i)+flux(2,i)+flux(3,i)+flux(4,i))
93 IF (voln > em15) THEN
94 var(i) = var(i) + half * dt1 * (phi(ie)*(flux(1,i)+flux(2,i)+flux(3,i)+flux(4,i))
95 3 -phi(iv1)*flux(1,i)-phi(iv2)*flux(2,i)-phi(iv3)*flux(3,i)-phi(iv4)*flux(4,i)) / max(em15,voln)
96 ENDIF
97 ENDDO
98 ENDIF
99C-----------
100 RETURN
101 END SUBROUTINE arezo2
102 END MODULE arezo2_mod
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21
subroutine arezo2(ale_connect, var, phi, flux, vol)
Definition arezo2.F:38