OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s4therm-itet1.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!|| s4therm_itet1 ../engine/source/elements/solid/solide4/s4therm-itet1.F
25!||--- called by ------------------------------------------------------
26!|| s10forc3 ../engine/source/elements/solid/solide10/s10forc3.F
27!||====================================================================
28 SUBROUTINE s4therm_itet1(PM ,IMAT ,NC ,NEL ,
29 . XX ,YY ,ZZ ,DT1 ,HEAT ,
30 . TEMP ,FPHI ,OFFG ,OFF ,THEACCFACT)
31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C G l o b a l P a r a m e t e r s
37C-----------------------------------------------
38#include "mvsiz_p.inc"
39#include "param_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER NEL, NC(MVSIZ,10)
44 INTEGER, INTENT(IN) :: IMAT
45 my_real, INTENT(IN) :: theaccfact
46 my_real, INTENT(IN) :: dt1
47 my_real :: temp(*), heat(*), fphi(mvsiz,10), pm(npropm,*),
48 . off(*), offg(*)
49 double precision
50 . xx(mvsiz,10), yy(mvsiz,10), zz(mvsiz,10)
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I, J
55 my_real
56 . det(nel),
57 . px1(nel), px2(nel), px3(nel), px4(nel),
58 . py1(nel), py2(nel), py3(nel), py4(nel),
59 . pz1(nel), pz2(nel), pz3(nel), pz4(nel)
60 my_real
61 . b1(nel), b2(nel), b3(nel), b4(nel),
62 . c1(nel), c2(nel), c3(nel), c4(nel),
63 . d1(nel), d2(nel), d3(nel), d4(nel)
64 my_real
65 . x41, y41, z41, x42, y42, z42, x43, y43, z43
66 my_real
67 . ca, cb, kc, phix, phiy, phiz, a, d,
68 . temp1, temp2, temp3, temp4, tempel
69C
70C---+----1
71 DO i=1,nel
72 x43 = xx(i,4) - xx(i,3)
73 y43 = yy(i,4) - yy(i,3)
74 z43 = zz(i,4) - zz(i,3)
75 x41 = xx(i,4) - xx(i,1)
76 y41 = yy(i,4) - yy(i,1)
77 z41 = zz(i,4) - zz(i,1)
78 x42 = xx(i,4) - xx(i,2)
79 y42 = yy(i,4) - yy(i,2)
80 z42 = zz(i,4) - zz(i,2)
81C
82 b1(i) = y43*z42 - y42*z43
83 b2(i) = y41*z43 - y43*z41
84 b3(i) = y42*z41 - y41*z42
85 b4(i) = -(b1(i) + b2(i) + b3(i))
86C
87 c1(i) = z43*x42 - z42*x43
88 c2(i) = z41*x43 - z43*x41
89 c3(i) = z42*x41 - z41*x42
90 c4(i) = -(c1(i) + c2(i) + c3(i))
91C
92 d1(i) = x43*y42 - x42*y43
93 d2(i) = x41*y43 - x43*y41
94 d3(i) = x42*y41 - x41*y42
95 d4(i) = -(d1(i) + d2(i) + d3(i))
96C
97 det(i) = (x41*b1(i) + y41*c1(i) + z41*d1(i))*one_over_6
98 ENDDO
99
100C---+----1
101 DO i=1,nel
102 d = one/det(i)/six
103 px1(i)=-b1(i)*d
104 py1(i)=-c1(i)*d
105 pz1(i)=-d1(i)*d
106 px2(i)=-b2(i)*d
107 py2(i)=-c2(i)*d
108 pz2(i)=-d2(i)*d
109 px3(i)=-b3(i)*d
110 py3(i)=-c3(i)*d
111 pz3(i)=-d3(i)*d
112 px4(i)=-b4(i)*d
113 py4(i)=-c4(i)*d
114 pz4(i)=-d4(i)*d
115 ENDDO
116
117C---+----1
118 ca = pm(75,imat)
119 cb = pm(76,imat)
120C
121 DO i=1,nel
122 IF(off(i)==zero.OR.offg(i)<=zero) cycle
123 temp1 = temp(nc(i,1))
124 temp2 = temp(nc(i,2))
125 temp3 = temp(nc(i,3))
126 temp4 = temp(nc(i,4))
127C
128C - flux
129C
130 phix = temp1*px1(i) + temp2*px2(i) + temp3*px3(i) + temp4*px4(i)
131 phiy = temp1*py1(i) + temp2*py2(i) + temp3*py3(i) + temp4*py4(i)
132 phiz = temp1*pz1(i) + temp2*pz2(i) + temp3*pz3(i) + temp4*pz4(i)
133C
134 tempel = fourth * (temp1 + temp2 + temp3 + temp4)
135 kc = (ca + cb*tempel)*dt1*det(i)*theaccfact
136 phix = kc*phix
137 phiy = kc*phiy
138 phiz = kc*phiz
139C
140C force thermique nodale
141C
142 a = fourth * heat(i)
143 fphi(i,1) = a - (phix*px1(i) + phiy*py1(i) + pz1(i)*phiz)
144 fphi(i,2) = a - (phix*px2(i) + phiy*py2(i) + pz2(i)*phiz)
145 fphi(i,3) = a - (phix*px3(i) + phiy*py3(i) + pz3(i)*phiz)
146 fphi(i,4) = a - (phix*px4(i) + phiy*py4(i) + pz4(i)*phiz)
147 ENDDO
148C
149 RETURN
150 END
#define my_real
Definition cppsort.cpp:32
subroutine s4therm_itet1(pm, imat, nc, nel, xx, yy, zz, dt1, heat, temp, fphi, offg, off, theaccfact)