OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
a4conv3.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!|| a4conv3 ../engine/source/ale/ale3d/a4conv3.F
25!||--- called by ------------------------------------------------------
26!|| aconve ../engine/source/ale/aconve.F
27!||--- uses -----------------------------------------------------
28!|| ale_connectivity_mod ../common_source/modules/ale/ale_connectivity_mod.F
29!||====================================================================
30 SUBROUTINE a4conv3(VTOT ,PHI,FLUX,FLU1,
31 . ALE_CONNECT,IOFF)
32C-----------------------------------------------
33C S o u r c e L i n e s
34C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40#include "mvsiz_p.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER IOFF
45 my_real vtot(*), phi(*), flux(6,*), flu1(*)
46 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "com08_c.inc"
51#include "vect01_c.inc"
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I, IE, IV,J,IAD2
56 my_real valvois(6,mvsiz),valel(mvsiz)
57C-----------------------------------------------
58C S o u r c e L i n e s
59C-----------------------------------------------
60 DO i=lft,llt
61 ie =nft+i
62 valel(i)=phi(ie)
63 ENDDO
64
65 DO i=lft,llt
66 ie =nft+i
67 iad2 = ale_connect%ee_connect%iad_connect(ie)
68!
69 j = 2
70 iv = ale_connect%ee_connect%connected(iad2 + 3 - 1)
71 IF(iv > 0)THEN
72 valvois(j,i)=phi(iv)
73 ELSEIF(iv == 0)THEN
74 valvois(j,i)=phi(ie)
75 ELSE
76 valvois(j,i)=phi(-iv+ioff)
77 ENDIF
78!
79 j = 4
80 iv = ale_connect%ee_connect%connected(iad2 + 4 - 1)
81 IF(iv > 0)THEN
82 valvois(j,i)=phi(iv)
83 ELSEIF(iv == 0)THEN
84 valvois(j,i)=phi(ie)
85 ELSE
86 valvois(j,i)=phi(-iv+ioff)
87 ENDIF
88!
89 j = 5
90 iv = ale_connect%ee_connect%connected(iad2 + 1 - 1)
91 IF(iv > 0)THEN
92 valvois(j,i)=phi(iv)
93 ELSEIF(iv == 0)THEN
94 valvois(j,i)=phi(ie)
95 ELSE
96 valvois(j,i)=phi(-iv+ioff)
97 ENDIF
98!
99 j = 6
100 iv = ale_connect%ee_connect%connected(iad2 + 2 - 1)
101 IF(iv > 0)THEN
102 valvois(j,i)=phi(iv)
103 ELSEIF(iv == 0)THEN
104 valvois(j,i)=phi(ie)
105 ELSE
106 valvois(j,i)=phi(-iv+ioff)
107 ENDIF
108 ENDDO
109C
110 DO i=lft,llt
111 vtot(i) = vtot(i) + half * dt1 *(
112 1 -valel(i)*flu1(i)
113 2 -valvois(2,i)*flux(2,i)
114 3 -valvois(4,i)*flux(4,i)
115 4 -valvois(5,i)*flux(5,i)
116 5 -valvois(6,i)*flux(6,i)
117 6 )
118 ENDDO
119C-----------------------------------------------
120 RETURN
121 END
122C
subroutine a4conv3(vtot, phi, flux, flu1, ale_connect, ioff)
Definition a4conv3.F:32
#define my_real
Definition cppsort.cpp:32