OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i21cor3t.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!|| i21cor3t ../starter/source/interfaces/inter3d1/i21cor3t.F
25!||--- called by ------------------------------------------------------
26!|| i21buc1 ../starter/source/interfaces/inter3d1/i21buc3.F
27!|| i21tri ../starter/source/interfaces/inter3d1/i21tri.F
28!||====================================================================
29 SUBROUTINE i21cor3t(X ,IRECT ,NSV ,CAND_E ,CAND_N ,
30 2 GAPV ,IGAP ,GAP ,GAP_S ,GAPMIN ,
31 3 GAPMAX,XM0 ,DEPTH ,DRAD ,IX1 ,
32 4 IX2 ,IX3 ,IX4 ,NSVG ,X1 ,
33 5 X2 ,X3 ,X4 ,Y1 ,Y2 ,
34 6 Y3 ,Y4 ,Z1 ,Z2 ,Z3 ,
35 7 Z4 ,XI ,YI ,ZI ,DGAPLOAD)
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C G l o b a l P a r a m e t e r s
42C-----------------------------------------------
43#include "mvsiz_p.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER IGAP, IRECT(4,*), NSV(*), CAND_E(*), CAND_N(*)
48C REAL
49 my_real
50 . GAP, GAPMIN, GAPMAX, DEPTH, DRAD,
51 . X(3,*), GAPV(*), GAP_S(*), XM0(3,*)
52 my_real , INTENT(IN) :: DGAPLOAD
53 INTEGER, DIMENSION(MVSIZ), INTENT(INOUT) :: IX1,IX2,IX3,IX4,NSVG
54 my_real, DIMENSION(MVSIZ), INTENT(OUT) :: X1,X2,X3,X4
55 my_real, DIMENSION(MVSIZ), INTENT(OUT) :: y1,y2,y3,y4
56 my_real, DIMENSION(MVSIZ), INTENT(OUT) :: z1,z2,z3,z4
57 my_real, DIMENSION(MVSIZ), INTENT(OUT) :: xi,yi,zi
58C-----------------------------------------------
59C C o m m o n B l o c k s
60C-----------------------------------------------
61#include "vect07_c.inc"
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I, IL, L, NN, IG
66C-----------------------------------------------
67 IF(IGAP==0)then
68 DO i=lft,llt
69C Depth >= gap
70 gapv(i)=max(depth+dgapload,drad)
71 END DO
72 ELSE
73C ... on pourrait utiliser le fait Depth >= max(gapv) dans le starter ...
74 DO i=lft,llt
75 gapv(i)=gap_s(cand_n(i))
76 gapv(i)=min(gapv(i),gapmax)
77 gapv(i)=max(gapmin,gapv(i))
78C
79 gapv(i)=max(depth,drad,gapv(i)+dgapload)
80 END DO
81 END IF
82C
83 DO i=lft,llt
84 ig = nsv(cand_n(i))
85 nsvg(i) = ig
86 xi(i) = x(1,ig)
87 yi(i) = x(2,ig)
88 zi(i) = x(3,ig)
89 ENDDO
90C
91 DO i=lft,llt
92C
93 l = cand_e(i)
94C
95C attention nos locaux (1:NMN)
96 ix1(i)=irect(1,l)
97 ix2(i)=irect(2,l)
98 ix3(i)=irect(3,l)
99 ix4(i)=irect(4,l)
100C
101 ENDDO
102C
103 DO i=lft,llt
104C
105 nn=ix1(i)
106 x1(i)=xm0(1,nn)
107 y1(i)=xm0(2,nn)
108 z1(i)=xm0(3,nn)
109C
110 nn=ix2(i)
111 x2(i)=xm0(1,nn)
112 y2(i)=xm0(2,nn)
113 z2(i)=xm0(3,nn)
114C
115 nn=ix3(i)
116 x3(i)=xm0(1,nn)
117 y3(i)=xm0(2,nn)
118 z3(i)=xm0(3,nn)
119C
120 nn=ix4(i)
121 x4(i)=xm0(1,nn)
122 y4(i)=xm0(2,nn)
123 z4(i)=xm0(3,nn)
124C
125 ENDDO
126C
127 RETURN
128 END
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine i21cor3t(x, irect, nsv, cand_e, cand_n, gapv, igap, gap, gap_s, gapmin, gapmax, xm0, depth, drad, ix1, ix2, ix3, ix4, nsvg, x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, xi, yi, zi, dgapload)
Definition i21cor3t.F:36