OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
bconv2.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!|| bconv2 ../engine/source/ale/ale2d/bconv2.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 bconv2(VTOT ,PHI ,FLUX ,FLU1 , ALE_CONNECT ,
31 . BHOLE ,NM )
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "com01_c.inc"
44#include "com08_c.inc"
45#include "vect01_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER BHOLE(NMULT,*) ,NM
50 my_real vtot(*), phi(*), flux(4,*), flu1(*)
51 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I, IE, IV1, IV2, IV3, IV4, IAD2
56C-----------------------------------------------
57C S o u r c e L i n e s
58C-----------------------------------------------
59 DO i=lft,llt
60 ie =nft+i
61 iad2 = ale_connect%ee_connect%iad_connect(ie)
62 iv1=ale_connect%ee_connect%connected(iad2 + 1 - 1)
63 iv2=ale_connect%ee_connect%connected(iad2 + 2 - 1)
64 iv3=ale_connect%ee_connect%connected(iad2 + 3 - 1)
65 iv4=ale_connect%ee_connect%connected(iad2 + 4 - 1)
66 IF(iv1 <= 0.)THEN
67 iv1=ie
68 ELSEIF(bhole(nm,ie) < 0. .AND.abs(bhole(nm,iv1)) /= abs(bhole(nm,ie)))THEN
69 iv1=ie
70 ENDIF
71 IF(iv2 <= 0.)THEN
72 iv2=ie
73 ELSEIF(bhole(nm,ie) < 0. .AND.abs(bhole(nm,iv2)) /= abs(bhole(nm,ie)))THEN
74 iv2=ie
75 ENDIF
76 IF(iv3 <= 0.)THEN
77 iv3=ie
78 ELSEIF(bhole(nm,ie) < 0. .AND.abs(bhole(nm,iv3)) /= abs(bhole(nm,ie)))THEN
79 iv3=ie
80 ENDIF
81 IF(iv4 <= 0.)THEN
82 iv4=ie
83 ELSEIF(bhole(nm,ie) < 0. .AND.abs(bhole(nm,iv4)) /= abs(bhole(nm,ie)))THEN
84 iv4=ie
85 ENDIF
86 vtot(i) = vtot(i) + half * dt1 *(
87 . - phi(ie)*flu1(i)
88 . - phi(iv1)*flux(1,i)-phi(iv2)*flux(2,i)-phi(iv3)*flux(3,i)-phi(iv4)*flux(4,i)
89 . )
90 ENDDO
91C-----------------------------------------------
92 RETURN
93 END
subroutine bconv2(vtot, phi, flux, flu1, ale_connect, bhole, nm)
Definition bconv2.F:32
#define my_real
Definition cppsort.cpp:32