OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
ini_fvminivel.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!|| ini_fvminivel ../starter/source/elements/initia/ini_fvminivel.F
25!||--- called by ------------------------------------------------------
26!|| initia ../starter/source/elements/initia/initia.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE ini_fvminivel(FVM_INIVEL ,MULTI_FVM ,IGRBRIC ,IGRQUAD ,IGRSH3N)
30C-----------------------------------------------
31C M o d u l e s
32C-----------------------------------------------
33 USE multi_fvm_mod
34 USE groupdef_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!LIGNR1
43!INVEL
44#include "com04_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 TYPE(fvm_inivel_struct), INTENT(IN) :: FVM_INIVEL(*)
49 TYPE(multi_fvm_struct), INTENT(INOUT) :: MULTI_FVM
50C-----------------------------------------------
51 TYPE (GROUP_) , DIMENSION(NGRBRIC) :: IGRBRIC
52 TYPE (GROUP_) , DIMENSION(NGRQUAD) :: IGRQUAD
53 TYPE (GROUP_) , DIMENSION(NGRSH3N) :: IGRSH3N
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER I, IGRS, NOSYS, J
58
59 DO i = 1, ninvel
60 IF (fvm_inivel(i)%FLAG) THEN
61C Bric groups
62 IF (fvm_inivel(i)%GRBRICID /= -1) THEN
63 igrs = fvm_inivel(i)%GRBRICID
64 DO j=1,igrbric(igrs)%NENTITY
65 nosys=igrbric(igrs)%ENTITY(j)
66 multi_fvm%VEL(1, nosys) = fvm_inivel(i)%VX
67 multi_fvm%VEL(2, nosys) = fvm_inivel(i)%VY
68 multi_fvm%VEL(3, nosys) = fvm_inivel(i)%VZ
69 ENDDO
70 ENDIF
71C Quad groups
72 IF (fvm_inivel(i)%GRQUADID /= -1) THEN
73 igrs = fvm_inivel(i)%GRQUADID
74 DO j=1,igrquad(igrs)%NENTITY
75 nosys=igrquad(igrs)%ENTITY(j)
76 multi_fvm%VEL(1, nosys) = fvm_inivel(i)%VX
77 multi_fvm%VEL(2, nosys) = fvm_inivel(i)%VY
78 multi_fvm%VEL(3, nosys) = fvm_inivel(i)%VZ
79 ENDDO
80 ENDIF
81C SH3N groups
82 IF (fvm_inivel(i)%GRSH3NID /= -1) THEN
83 igrs = fvm_inivel(i)%GRSH3NID
84 DO j=1,igrsh3n(igrs)%NENTITY
85 nosys=igrsh3n(igrs)%ENTITY(j)
86 multi_fvm%VEL(1, nosys) = fvm_inivel(i)%VX
87 multi_fvm%VEL(2, nosys) = fvm_inivel(i)%VY
88 multi_fvm%VEL(3, nosys) = fvm_inivel(i)%VZ
89 ENDDO
90 ENDIF
91 ENDIF
92 ENDDO
93 END SUBROUTINE ini_fvminivel
subroutine ini_fvminivel(fvm_inivel, multi_fvm, igrbric, igrquad, igrsh3n)