OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fvdim.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!|| fvdim ../engine/source/airbag/fvdim.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| fvbag_mod ../engine/share/modules/fvbag_mod.F
29!||====================================================================
30 SUBROUTINE fvdim(MONVOL)
31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE fvbag_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com04_c.inc"
43#include "param_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER MONVOL(*)
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER K1, N, ITYP
52C
53 k1=1
54 nfvbag=0
55 DO n=1,nvolu
56 ityp=monvol(k1-1+2)
57 IF (ityp==6.OR.ityp==8) THEN
58 monvol(k1-1+57)=0
59 nfvbag = monvol(k1-1+29)
60 ENDIF
61 k1=k1+nimv
62 ENDDO
63C
64 RETURN
65 END
66!||====================================================================
67!|| fv_switch_crit ../engine/source/airbag/fvdim.F
68!||--- called by ------------------------------------------------------
69!|| resol ../engine/source/engine/resol.F
70!||--- uses -----------------------------------------------------
71!|| fvbag_mod ../engine/share/modules/fvbag_mod.F
72!||====================================================================
73 SUBROUTINE fv_switch_crit(MONVOL,CHECK_NPOLH)
74C checks if at least one FVMBAGS is using NPOLH to switch to UP
75C In that case, additional communication is needed
76C
77C-----------------------------------------------
78C M o d u l e s
79C-----------------------------------------------
80 USE fvbag_mod
81C-----------------------------------------------
82C I m p l i c i t T y p e s
83C-----------------------------------------------
84#include "implicit_f.inc"
85C-----------------------------------------------
86C C o m m o n B l o c k s
87C-----------------------------------------------
88#include "com04_c.inc"
89#include "param_c.inc"
90C-----------------------------------------------
91C D u m m y A r g u m e n t s
92C-----------------------------------------------
93 INTEGER MONVOL(*)
94 LOGICAL CHECK_NPOLH
95C-----------------------------------------------
96C L o c a l V a r i a b l e s
97C-----------------------------------------------
98 INTEGER K1, N, ITYP
99C
100
101 check_npolh = .false.
102 k1=1
103 DO n=1,nvolu
104 ityp=monvol(k1-1+2)
105 IF (ityp==8) THEN
106 IF(monvol(k1-1+37) > 0) check_npolh = .true.
107 ENDIF
108 k1=k1+nimv
109 ENDDO
110C
111 RETURN
112 END
113
subroutine fv_switch_crit(monvol, check_npolh)
Definition fvdim.F:74
subroutine fvdim(monvol)
Definition fvdim.F:31
integer nfvbag
Definition fvbag_mod.F:127