OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i23cor3t.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!|| i23cor3t ../engine/source/interfaces/int23/i23cor3t.F
25!||--- called by ------------------------------------------------------
26!|| i23sto ../engine/source/interfaces/int23/i23sto.F
27!||--- uses -----------------------------------------------------
28!|| tri7box ../engine/share/modules/tri7box.F
29!||====================================================================
30 SUBROUTINE i23cor3t(JLT ,X ,IRECT ,CAND_E ,
31 1 CAND_N ,IGAP ,GAP ,X1 ,X2 ,
32 2 X3 ,X4 ,Y1 ,Y2 ,Y3 ,
33 3 Y4 ,Z1 ,Z2 ,Z3 ,Z4 ,
34 4 XI ,YI ,ZI ,IX1 ,IX2 ,
35 5 IX3 ,IX4 ,NSN ,GAP_S ,GAPV ,
36 6 GAPMAX ,GAPMIN,CURV_MAX,NSV ,MSR ,
37 7 GAP_M )
38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE tri7box
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C G l o b a l P a r a m e t e r s
48C-----------------------------------------------
49#include "mvsiz_p.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER IRECT(4,*), CAND_E(*), CAND_N(*), NSV(*), MSR(*),
54 . JLT,IDT, NOINT, NSN, IGAP ,ITYP
55 INTEGER IX1(MVSIZ), IX2(MVSIZ), IX3(MVSIZ), IX4(MVSIZ)
56C REAL
57 my_real
58 . X(3,*), GAPV(*), GAP_S(*),CURV_MAX(*), GAP_M(*),
59 . GAP, GAPMAX, GAPMIN
60C REAL
61 my_real
62 . x1(mvsiz), x2(mvsiz), x3(mvsiz), x4(mvsiz),
63 . y1(mvsiz), y2(mvsiz), y3(mvsiz), y4(mvsiz),
64 . z1(mvsiz), z2(mvsiz), z3(mvsiz), z4(mvsiz),
65 . xi(mvsiz), yi(mvsiz), zi(mvsiz)
66C-----------------------------------------------
67C L o c a l V a r i a b l e s
68C-----------------------------------------------
69 INTEGER I ,J ,IL, L, NN, IG,JFT
70C-----------------------------------------------
71 IF(IGAP==0)then
72 DO i=1,jlt
73 gapv(i)=gap
74 END DO
75 ELSE
76 DO i=1,jlt
77 j = cand_n(i)
78 IF(j<=nsn) THEN
79 gapv(i)=gap_s(j)+gap_m(cand_e(i))
80 ELSE
81 ig = j-nsn
82 gapv(i)=xrem(9,ig)+gap_m(cand_e(i))
83 END IF
84 gapv(i)=min(gapv(i),gapmax)
85 gapv(i)=max(gapmin,gapv(i))
86 END DO
87 END IF
88C
89 DO i=1,jlt
90 gapv(i)=sqrt(three)*gapv(i)
91 END DO
92C
93 DO i=1,jlt
94 j = cand_n(i)
95 IF(j<=nsn) THEN
96 ig = nsv(j)
97 xi(i) = x(1,ig)
98 yi(i) = x(2,ig)
99 zi(i) = x(3,ig)
100 ELSE
101 ig = j-nsn
102 xi(i) = xrem(1,ig)
103 yi(i) = xrem(2,ig)
104 zi(i) = xrem(3,ig)
105 ENDIF
106C
107 l = cand_e(i)
108C
109 ix1(i)=irect(1,l)
110 x1(i)=x(1,ix1(i))
111 y1(i)=x(2,ix1(i))
112 z1(i)=x(3,ix1(i))
113C
114 ix2(i)=irect(2,l)
115 x2(i)=x(1,ix2(i))
116 y2(i)=x(2,ix2(i))
117 z2(i)=x(3,ix2(i))
118C
119 ix3(i)=irect(3,l)
120 x3(i)=x(1,ix3(i))
121 y3(i)=x(2,ix3(i))
122 z3(i)=x(3,ix3(i))
123C
124 ix4(i)=irect(4,l)
125 x4(i)=x(1,ix4(i))
126 y4(i)=x(2,ix4(i))
127 z4(i)=x(3,ix4(i))
128C
129 END DO
130C
131 RETURN
132 END
subroutine i23cor3t(jlt, x, irect, cand_e, cand_n, igap, gap, x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, xi, yi, zi, ix1, ix2, ix3, ix4, nsn, gap_s, gapv, gapmax, gapmin, curv_max, nsv, msr, gap_m)
Definition i23cor3t.F:38
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21