OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i21gap3.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "task_c.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

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)

Function/Subroutine Documentation

◆ i21gap3()

subroutine i21gap3 ( integer itask,
integer, dimension(4,*) irects,
integer nrts,
integer nsn,
integer, dimension(*) nsv,
gap,
integer igap,
gap_s,
gapmin,
criter,
gapmax,
tzinf,
dist,
thknod,
gapscale,
depth,
marge,
intent(in) drad,
integer idel,
thknod0,
gap_s0,
intent(in) dgapload )

Definition at line 28 of file i21gap3.F.

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
50 . gap, gapmin, criter, gapmax, tzinf, dist, gapscale,
51 . depth, marge
52 my_real , INTENT(IN) :: dgapload ,drad
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
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
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21