OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i21gap3.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!|| i21gap3 ../engine/source/interfaces/int21/i21gap3.F
25!||--- called by ------------------------------------------------------
26!|| i21main_gap ../engine/source/interfaces/int21/i21main_gap.F
27!||====================================================================
28 SUBROUTINE i21gap3(
29 1 ITASK ,IRECTS ,NRTS ,NSN ,NSV ,
30 2 GAP ,IGAP ,GAP_S ,GAPMIN,CRITER,
31 3 GAPMAX,TZINF ,DIST ,THKNOD,GAPSCALE,
32 4 DEPTH ,MARGE ,DRAD ,IDEL ,THKNOD0,
33 5 GAP_S0,DGAPLOAD)
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38#include "comlock.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "task_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER ITASK, NRTS, NSN, IGAP, IDEL
47 INTEGER IRECTS(4,*), NSV(*)
48C REAL
49 my_real
50 . GAP, GAPMIN, CRITER, GAPMAX, TZINF, DIST, GAPSCALE,
51 . depth, marge
52 my_real , INTENT(IN) :: dgapload ,drad
53 my_real
54 . gap_s(*), thknod(*), gap_s0(*), thknod0(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER NSNF, NSNL, I, J, NELS, NELC, NELTG, NEL
59C REAL
60 my_real
61 . GAPM, CRITERL, GAPSUPL
62C------------------------------------
63C GAP VARIABLE NOEUDS SECONDS
64C------------------------------------
65 nsnf = 1 + itask*nsn / nthread
66 nsnl = (itask+1)*nsn / nthread
67
68 IF(igap>=2)THEN
69 DO i=nsnf,nsnl
70 gap_s(i) = max(half*gapscale*(thknod(nsv(i))-thknod0(i))
71 . +gap_s0(i),zero)
72 ENDDO
73 ENDIF
74C---------------------------------------------
75C
76C Calcul du gap reel a utiliser lors du critere de retri
77C
78 IF (igap==0) THEN
79 criter =max(gap,em01*max(depth,drad,gap+dgapload))
80 dist =tzinf-max(gap+dgapload,depth,drad)
81 ELSE
82 criterl=ep30
83 gapsupl=zero
84 DO i = nsnf,nsnl
85 IF(idel==0.OR.gap_s(i)/=zero)THEN
86C gap_s/=0 <=> node is still connected through non deleted shells
87 criterl = min(criterl,gap_s(i))
88 gapsupl = max(gapsupl,gap_s(i))
89 END IF
90 ENDDO
91 criterl=max(max(gapmin,criterl),em01*max(depth,drad,gapsupl+dgapload))
92 gapsupl=min(gapmax,gapsupl)
93#include "lockon.inc"
94 criter=min(criter,criterl)
95 dist =min(dist,tzinf-max(gapsupl+dgapload,depth,drad))
96 IF( tzinf-gapsupl <= zero)THEN
97C assure le retri et remet la marge initiale (on a forcement depth <= gapsupl)
98 tzinf= gapsupl+marge
99 dist =-one
100 END IF
101#include "lockoff.inc"
102 ENDIF
103C------------------------------------
104 RETURN
105 END
subroutine i21gap3(itask, irects, nrts, nsn, nsv, gap, igap, gap_s, gapmin, criter, gapmax, tzinf, dist, thknod, gapscale, depth, marge, drad, idel, thknod0, gap_s0, dgapload)
Definition i21gap3.F:34
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21