OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cdk6inx.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/.
23C
24!||====================================================================
25!|| cdk6inx ../starter/source/elements/sh3n/coquedk6/cdk6inx.F
26!||--- called by ------------------------------------------------------
27!|| lectur ../starter/source/starter/lectur.F
28!||--- calls -----------------------------------------------------
29!|| ancmsg ../starter/source/output/message/message.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE cdk6inx(IXTG,IXTG1,ICNOD)
34 USE message_mod
35 use element_mod , only : nixtg
36C--------------------------------------------------------
37C Construction of the upper connectivities OF TRIANGULAR SHELL ELEMENTS
38C--------------------------------------------------------
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "com04_c.inc"
47C-----------------------------------------------
48C V a r i a b l e s
49C-----------------------------------------------
50 INTEGER IXTG(NIXTG,*),IXTG1(4,*),ICNOD(*)
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I, J, NEL1,N1,N2,N3,NJ1,NJ2,NJ3,
55 . II,JJ
56C-----------------------------------------------
57C
58 nel1=0
59 DO i=1,numeltg
60 IF (icnod(i)==6) THEN
61 nel1 = nel1+1
62 ixtg1(1,nel1) = 0
63 ixtg1(2,nel1) = 0
64 ixtg1(3,nel1) = 0
65 ixtg1(4,nel1) = i
66 ENDIF
67 ENDDO
68 IF (nel1/=numeltg6) THEN
69 CALL ancmsg(msgid=364,
70 * anmode=anstop,
71 * msgtype=msgerror,c1='S3N6')
72 ENDIF
73C
74 DO i=1,numeltg6
75 IF (ixtg1(1,i)==0.OR.ixtg1(2,i)==0
76 . .OR.ixtg1(3,i)==0) THEN
77 ii=ixtg1(4,i)
78 n1= ixtg(2,ii)
79 n2= ixtg(3,ii)
80 n3= ixtg(4,ii)
81C IMIN= MIN(N1,N2,N3)
82C IMAX= MAX(N1,N2,N3)
83 DO j =i+1,numeltg6
84 jj=ixtg1(4,j)
85 nj1= ixtg(2,jj)
86 nj2= ixtg(3,jj)
87 nj3= ixtg(4,jj)
88C JMIN= MIN(NJ1,NJ2,NJ3)
89C JMAX= MAX(NJ1,NJ2,NJ3)
90C--------- ligne 1----------
91 IF (ixtg1(1,i)==0) THEN
92 IF ((n1+n2)==(nj1+nj2)) THEN
93 IF (abs(n1-n2)==abs(nj1-nj2)) THEN
94 ixtg1(1,i) = nj3
95 ixtg1(1,j) = n3
96 ENDIF
97 ELSEIF ((n1+n2)==(nj2+nj3)) THEN
98 IF (abs(n1-n2)==abs(nj2-nj3)) THEN
99 ixtg1(1,i) = nj1
100 ixtg1(2,j) = n3
101 ENDIF
102 ELSEIF ((n1+n2)==(nj3+nj1)) THEN
103 IF (abs(n1-n2)==abs(nj3-nj1)) THEN
104 ixtg1(1,i) = nj2
105 ixtg1(3,j) = n3
106 ENDIF
107 ENDIF
108 ENDIF
109C--------- ligne 2----------
110 IF (ixtg1(2,i)==0) THEN
111 IF ((n2+n3)==(nj1+nj2)) THEN
112 IF (abs(n2-n3)==abs(nj1-nj2)) THEN
113 ixtg1(2,i) = nj3
114 ixtg1(1,j) = n1
115 ENDIF
116 ELSEIF ((n2+n3)==(nj2+nj3)) THEN
117 IF (abs(n2-n3)==abs(nj2-nj3)) THEN
118 ixtg1(2,i) = nj1
119 ixtg1(2,j) = n1
120 ENDIF
121 ELSEIF ((n2+n3)==(nj3+nj1)) THEN
122 IF (abs(n2-n3)==abs(nj3-nj1)) THEN
123 ixtg1(2,i) = nj2
124 ixtg1(3,j) = n1
125 ENDIF
126 ENDIF
127 ENDIF
128C--------- ligne 3----------
129 IF (ixtg1(3,i)==0) THEN
130 IF ((n1+n3)==(nj1+nj2)) THEN
131 IF (abs(n1-n3)==abs(nj1-nj2)) THEN
132 ixtg1(3,i) = nj3
133 ixtg1(1,j) = n2
134 ENDIF
135 ELSEIF ((n1+n3)==(nj2+nj3)) THEN
136 IF (abs(n1-n3)==abs(nj2-nj3)) THEN
137 ixtg1(3,i) = nj1
138 ixtg1(2,j) = n2
139 ENDIF
140 ELSEIF ((n1+n3)==(nj3+nj1)) THEN
141 IF (abs(n1-n3)==abs(nj3-nj1)) THEN
142 ixtg1(3,i) = nj2
143 ixtg1(3,j) = n2
144 ENDIF
145 ENDIF
146 ENDIF
147 ENDDO
148C write(*,*)I,IXTG1(1,I),IXTG1(2,I),IXTG1(3,I)
149 ENDIF
150 ENDDO
151 RETURN
152 END
subroutine cdk6inx(ixtg, ixtg1, icnod)
Definition cdk6inx.F:34
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:895