OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i24iply_pxfem.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!|| i24iply_pxfem ../engine/source/interfaces/int24/i24iply_pxfem.F
25!||--- called by ------------------------------------------------------
26!|| i24mainf ../engine/source/interfaces/int24/i24main.F
27!||--- uses -----------------------------------------------------
28!|| plyxfem_mod ../engine/share/modules/plyxfem_mod.F
29!|| tri7box ../engine/share/modules/tri7box.F
30!||====================================================================
31 SUBROUTINE i24iply_pxfem(
32 1 JLT ,CAND_E ,MSEGTYP , IX1,IX2 ,
33 2 IX3 ,IX4 ,PENE,MS_PLY,INOD_PXFEM ,
34 3 IPLY ,ITAB)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE tri7box
39 USE plyxfem_mod
40C-------------------------------------------f----
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C G l o b a l P a r a m e t e r s
46C-----------------------------------------------
47#include "mvsiz_p.inc"
48#include "comlock.inc"
49#include "param_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER JLT, CAND_E(*),IX1(*), IX2(*), IX3(*),
54 . IX4(*), INOD_PXFEM(*),
55 . IPLY(4,*),MSEGTYP(*),ITAB(*)
57 . pene(*),ms_ply(nplyxfe,*)
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER I, J1, NN, ILY, ISEGTYP(MVSIZ)
62C ---------------------------------------------------------------------
63 DO I=1,jlt
64 isegtyp(i) = msegtyp(cand_e(i))
65 ENDDO
66C--------------------------------------------------------
67C
68C for computing contact ply forces.
69C
70 DO i=1,jlt
71C or by node segment if it needed
72 iply(1,i) = 0
73 iply(2,i) = 0
74 iply(3,i) = 0
75 iply(4,i) = 0
76
77 IF(pene(i) == zero) cycle
78 IF(isegtyp(i) == zero) cycle
79
80 IF(isegtyp(i) > 0) THEN
81 j1 = ix1(i)
82 IF(j1 > 0) THEN
83 nn = inod_pxfem(j1)
84 IF(nn > 0 ) THEN
85 ily = nplymax
86 DO WHILE(ms_ply(nn,ily) == zero)
87 ily = ily - 1
88 ENDDO
89 iply(1,i) = ily
90 ENDIF
91 ENDIF
92 j1 = ix2(i)
93 IF(j1 > 0) THEN
94 nn = inod_pxfem(j1)
95 IF(nn > 0) THEN
96 ily = nplymax
97 DO WHILE(ms_ply(nn,ily) == zero)
98 ily = ily - 1
99 ENDDO
100 iply(2,i) = ily
101 ENDIF
102 ENDIF
103 j1 = ix3(i)
104 IF(j1 > 0)THEN
105 nn = inod_pxfem(j1)
106 IF( nn > 0) THEN
107 ily = nplymax
108 DO WHILE(ms_ply(nn,ily) == zero)
109 ily = ily - 1
110 ENDDO
111 iply(3,i) = ily
112 ENDIF
113 ENDIF
114 j1 = ix4(i)
115 IF(j1 > 0) THEN
116 nn = inod_pxfem(j1)
117 IF( nn > 0) THEN
118 ily = nplymax
119 DO WHILE(ms_ply(nn,ily) == zero)
120 ily = ily - 1
121 ENDDO
122 iply(4,i) = ily
123 ENDIF
124 ENDIF
125 ELSE !
126 j1= ix1(i)
127 IF(j1 > 0) THEN
128 nn = inod_pxfem(j1)
129 IF( nn > 0) THEN
130 ily = 1
131 DO WHILE(ms_ply(nn,ily) == zero)
132 ily = ily + 1
133 ENDDO
134 iply(1,i) = ily
135 ENDIF
136 ENDIF
137 j1= ix2(i)
138 IF(j1 > 0)THEN
139 nn = inod_pxfem(j1)
140 IF(nn > 0) THEN
141 ily = 1
142 DO WHILE(ms_ply(nn,ily) == zero)
143 ily = ily + 1
144 ENDDO
145 iply(2,i) = ily
146 ENDIF
147 ENDIF
148C
149 j1= ix3(i)
150 IF(j1 > 0)THEN
151 nn = inod_pxfem(j1)
152 IF( nn > 0 ) THEN
153 ily = 1
154 DO WHILE(ms_ply(nn,ily) == zero)
155 ily = ily + 1
156 ENDDO
157 iply(3,i) = ily
158 ENDIF
159 ENDIF
160C
161 j1= ix4(i)
162 IF(j1> 0)THEN
163 nn = inod_pxfem(j1)
164 IF( nn > 0) THEN
165 ily = 1
166 DO WHILE(ms_ply(nn,ily) == zero)
167 ily = ily + 1
168 ENDDO
169 iply(4,i) = ily
170 ENDIF
171 ENDIF
172 ENDIF
173 ENDDO
174C
175 RETURN
176 END
#define my_real
Definition cppsort.cpp:32
subroutine i24iply_pxfem(jlt, cand_e, msegtyp, ix1, ix2, ix3, ix4, pene, ms_ply, inod_pxfem, iply, itab)