OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s16coor3.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!|| s16coor3 ../starter/source/elements/thickshell/solide16/s16coor3.F
25!||--- called by ------------------------------------------------------
26!|| s16init3 ../starter/source/elements/thickshell/solide16/s16init3.F
27!||--- calls -----------------------------------------------------
28!|| checkvolume_8n ../starter/source/elements/solid/solide/checksvolume.F
29!||--- uses -----------------------------------------------------
30!|| message_mod ../starter/share/message_module/message_mod.F
31!||====================================================================
32 SUBROUTINE s16coor3(
33 1 X ,V ,IXS ,IXS16 ,XX ,
34 2 YY ,ZZ ,VX ,VY ,VZ ,
35 3 NC ,NGL ,MXT ,NGEO ,MASS,
36 4 DTELEM ,STI ,SIGG ,EINTG ,RHOG,
37 5 QG ,TEMP0 ,TEMP ,NEL ,NINTEMP)
38C-----------------------------------------------
39 USE message_mod
40C-----------------------------------------------
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"
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51#include "vect01_c.inc"
52#include "com04_c.inc"
53C-----------------------------------------------
54C D u m m y A r g u m e n t s
55C-----------------------------------------------
56 INTEGER NEL
57 INTEGER ,INTENT(IN) :: NINTEMP
58 INTEGER NC(MVSIZ,16),MXT(*),NGL(*),NGEO(*),IXS(NIXS,*),IXS16(8,*)
59C REAL
60 my_real
61 . x(3,*), v(3,*), xx(mvsiz,16), yy(mvsiz,16), zz(mvsiz,16),
62 . vx(mvsiz,16), vy(mvsiz,16), vz(mvsiz,16),
63 . mass(mvsiz),dtelem(*),sti(*),
64 . sigg(nel,6),eintg(*),rhog(*),qg(*),temp0(*), temp(*)
65C-----------------------------------------------
66C L o c a l V a r i a b l e s
67C-----------------------------------------------
68 INTEGER I, IPERM1(16),IPERM2(16),N,N1,N2,NN,IUN
69C REAL
70 DATA IPERM1/0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8/
71 DATA IPERM2/0,0,0,0,0,0,0,0,2,3,4,1,6,7,8,5/
72C-----------------------------------------------
73C E x t e r n a l F u n c t i o n s
74C-----------------------------------------------
75 my_real
77C=======================================================================
78 iun =1
79C
80 DO i=lft,llt
81 ngeo(i)=ixs(10,i)
82 ngl(i) =ixs(11,i)
83 mxt(i) =ixs(1,i)
84 nc(i,1)=ixs(2,i)
85 nc(i,2)=ixs(3,i)
86 nc(i,3)=ixs(4,i)
87 nc(i,4)=ixs(5,i)
88 nc(i,5)=ixs(6,i)
89 nc(i,6)=ixs(7,i)
90 nc(i,7)=ixs(8,i)
91 nc(i,8)=ixs(9,i)
92 nc(i,9) =ixs16(1,i)
93 nc(i,10) =ixs16(2,i)
94 nc(i,11) =ixs16(3,i)
95 nc(i,12) =ixs16(4,i)
96 nc(i,13) =ixs16(5,i)
97 nc(i,14) =ixs16(6,i)
98 nc(i,15) =ixs16(7,i)
99 nc(i,16) =ixs16(8,i)
100 dtelem(i)=ep30
101 sti(i)=zero
102 eintg(i)=zero
103 rhog(i)=zero
104 qg(i)=zero
105 sigg(i,1)=zero
106 sigg(i,2)=zero
107 sigg(i,3)=zero
108 sigg(i,4)=zero
109 sigg(i,5)=zero
110 sigg(i,6)=zero
111 IF (checkvolume_8n(x ,ixs(1,i)) < zero) THEN
112C renumber connectivity
113 nc(i,1) =ixs(6,i)
114 nc(i,2) =ixs(7,i)
115 nc(i,3) =ixs(8,i)
116 nc(i,4) =ixs(9,i)
117 nc(i,5) =ixs(2,i)
118 nc(i,6) =ixs(3,i)
119 nc(i,7) =ixs(4,i)
120 nc(i,8) =ixs(5,i)
121 nc(i,9) =ixs16(5,i)
122 nc(i,10)=ixs16(6,i)
123 nc(i,11)=ixs16(7,i)
124 nc(i,12)=ixs16(8,i)
125 nc(i,13)=ixs16(1,i)
126 nc(i,14)=ixs16(2,i)
127 nc(i,15)=ixs16(3,i)
128 nc(i,16)=ixs16(4,i)
129 ixs(2,i) = nc(i,1)
130 ixs(3,i) = nc(i,2)
131 ixs(4,i) = nc(i,3)
132 ixs(5,i) = nc(i,4)
133 ixs(6,i) = nc(i,5)
134 ixs(7,i) = nc(i,6)
135 ixs(8,i) = nc(i,7)
136 ixs(9,i) = nc(i,8)
137 ixs16(1,i) = nc(i,9)
138 ixs16(2,i) = nc(i,10)
139 ixs16(3,i) = nc(i,11)
140 ixs16(4,i) = nc(i,12)
141 ixs16(5,i) = nc(i,13)
142 ixs16(6,i) = nc(i,14)
143 ixs16(7,i) = nc(i,15)
144 ixs16(8,i) = nc(i,16)
145 ENDIF
146 ENDDO
147C
148C----------------------------
149C NODAL COORDINATES |
150C----------------------------
151 DO n=1,16
152 DO i=lft,llt
153 nn = max(iun,nc(i,n))
154 xx(i,n)=x(1,nn)
155 yy(i,n)=x(2,nn)
156 zz(i,n)=x(3,nn)
157 vx(i,n)=v(1,nn)
158 vy(i,n)=v(2,nn)
159 vz(i,n)=v(3,nn)
160 ENDDO
161 ENDDO
162C
163 DO i=lft,llt
164 mass(i)=zero
165 ENDDO
166C
167 DO n=9,16
168 n1=iperm1(n)
169 n2=iperm2(n)
170 DO i=lft,llt
171 IF(nc(i,n)==0)THEN
172 xx(i,n) = half*(xx(i,n1)+xx(i,n2))
173 yy(i,n) = half*(yy(i,n1)+yy(i,n2))
174 zz(i,n) = half*(zz(i,n1)+zz(i,n2))
175 vx(i,n) = half*(vx(i,n1)+vx(i,n2))
176 vy(i,n) = half*(vy(i,n1)+vy(i,n2))
177 vz(i,n) = half*(vz(i,n1)+vz(i,n2))
178 ENDIF
179 ENDDO
180 ENDDO
181C
182 IF (jthe < 0 .or. nintemp > 0) THEN
183 IF(nintemp > 0 ) THEN
184 DO n =1,16
185 DO i=lft,llt
186 nn = max(iun,nc(i,n))
187 IF(temp(nn)== zero) temp(nn) = temp0(i)
188 ENDDO
189 ENDDO
190 ELSE
191 DO n =1,16
192 DO i=lft,llt
193 nn = max(iun,nc(i,n))
194 temp(nn) = temp0(i)
195 ENDDO
196 ENDDO
197 ENDIF
198 ENDIF
199C-----------
200 RETURN
201 END
function checkvolume_8n(x, ixs)
#define max(a, b)
Definition macros.h:21
subroutine s16coor3(x, v, ixs, ixs16, xx, yy, zz, vx, vy, vz, nc, ngl, mxt, ngeo, mass, dtelem, sti, sigg, eintg, rhog, qg, temp0, temp, nel, nintemp)
Definition s16coor3.F:38