OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fvmesh0.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!|| fvmesh0 ../engine/source/airbag/fvmesh0.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| fvbric ../engine/source/airbag/fvbric.F
29!|| fvmesh1 ../engine/source/airbag/fvmesh.F
30!||--- uses -----------------------------------------------------
31!|| element_mod ../common_source/modules/elements/element_mod.F90
32!|| fvbag_mod ../engine/share/modules/fvbag_mod.F
33!||====================================================================
34 SUBROUTINE fvmesh0(MONVOL, X, VOLMON, IXS)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE fvbag_mod
39 use element_mod , only : nixs
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com01_c.inc"
48#include "com04_c.inc"
49#include "param_c.inc"
50#include "task_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER MONVOL(*), IXS(NIXS,*)
56 . x(3,*), volmon(*)
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER K1, KK1, KIBALE, IFV,
61 . N, ITYP, NNS, NTG, NBRIC, KI1, KI2, NBX, NBY, NNB, IMESH,
62 . NBA, NTGA, NNA, KIA1, KIA2, KIA3, KIA4, KIA5, KIA6,
63 . NNI, NTGI
64C
65 ifv=0
66 k1=1
67 kibale=1+nimv*nvolu+licbag+libagjet+libaghol
68 kk1=1
69 DO n=1,nvolu
70 ityp=monvol(k1-1+2)
71 IF (ityp==6.OR.ityp==8) THEN
72 ifv=monvol(k1-1+45)
73 imesh=monvol(k1-1+56)
74 IF (imesh/=0) THEN
75 nns=monvol(k1-1+32)
76 ntg=monvol(k1-1+33)
77 nni =monvol(k1-1+68)
78 ntgi=monvol(k1-1+69)
79 nba =monvol(k1-1+62)
80 ntga=monvol(k1-1+63)
81 nna =monvol(k1-1+64)
82C
83 ki1=kibale+monvol(k1-1+31)
84 ki2=ki1+nns+nni
85 kia1=ki2+6*(ntg+ntgi)
86 kia2=kia1+2*nba
87 kia3=kia2+12*nba
88 kia4=kia3+2*(ntg+ntgi)
89 kia5=kia4+nna
90 kia6=kia5+3*ntga
91C
92 nbx=monvol(k1-1+54)
93 nby=monvol(k1-1+55)
94 nbric=nbx*nby
95 nnb=(nbx+1)*(nby+1)*2
96 IF (ispmd/=fvspmd(ifv)%PMAIN-1) THEN
97 ALLOCATE(fvdata(ifv)%BRIC(8,0),
98 . fvdata(ifv)%TBRIC(13,0),
99 . fvdata(ifv)%XB(3,0),
100 . fvdata(ifv)%SFAC(6,4,0))
101 ELSE
102 ALLOCATE(fvdata(ifv)%BRIC(8,nbric),
103 . fvdata(ifv)%TBRIC(13,nbric),
104 . fvdata(ifv)%XB(3,nnb),
105 . fvdata(ifv)%SFAC(6,4,nbric))
106 ENDIF
107C
108 CALL fvbric(monvol(k1), volmon(kk1), monvol(ki1), x, nns)
109C
110 monvol(k1-1+50)=monvol(k1-1+46)
111 monvol(k1-1+51)=monvol(k1-1+47)
112 monvol(k1-1+52)=monvol(k1-1+48)
113 monvol(k1-1+53)=monvol(k1-1+49)
114C
115 CALL fvmesh1(
116 . monvol(ki1), monvol(ki2), x, monvol(k1), fvdata(ifv)%BRIC,
117 . fvdata(ifv)%XB, volmon(kk1), ntg, nbric, fvdata(ifv)%TBRIC,
118 . fvdata(ifv)%SFAC, fvdata(ifv)%DLH, nba, ntga, nna,
119 . monvol(kia1), monvol(kia2), monvol(kia3), monvol(kia4),
120 . monvol(kia5), monvol(kia6), ixs, nns )
121C
122 DEALLOCATE(fvdata(ifv)%BRIC, fvdata(ifv)%TBRIC,
123 . fvdata(ifv)%XB, fvdata(ifv)%SFAC )
124 ENDIF
125 ENDIF
126 k1=k1+nimv
127 kk1=kk1+nrvolu
128 ENDDO
129C
130 RETURN
131 END
132
#define my_real
Definition cppsort.cpp:32
subroutine fvmesh0(monvol, x, volmon, ixs)
Definition fvmesh0.F:35
type(fvbag_spmd), dimension(:), allocatable fvspmd
Definition fvbag_mod.F:129
type(fvbag_data), dimension(:), allocatable fvdata
Definition fvbag_mod.F:128
subroutine fvbric(ivolu, rvolu, ibuf, x, nn)
Definition fvbric.F:31
subroutine fvmesh1(ibuf, elem, x, ivolu, bric, xb, rvolu, nel, neli, nbric, tbric, sfac, dxm, nba, nela, tba, tfaca, tagels, ibufa, elema, tagela, ixs, id, titr, nb_node, ityp)
Definition fvmesh.F:53