OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s4therm.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 ../engine/source/elements/solid/solide4/s4therm.F
25!||--- called by ------------------------------------------------------
26!|| s4forc3 ../engine/source/elements/solid/solide4/s4forc3.F
27!||====================================================================
28 SUBROUTINE s4therm(
29 1 PM, IMAT, VOL, NC1,
30 2 NC2, NC3, NC4, PX1,
31 3 PX2, PX3, PX4, PY1,
32 4 PY2, PY3, PY4, PZ1,
33 5 PZ2, PZ3, PZ4, DT1,
34 6 TEMPNC, TEL, HEAT, FPHI,
35 7 OFFG, OFF, NEL ,THEACCFACT)
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C G l o b a l P a r a m e t e r s
42C-----------------------------------------------
43#include "mvsiz_p.inc"
44#include "param_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER, INTENT(IN) :: NEL
49 INTEGER, INTENT(IN) :: IMAT
50 INTEGER NC1(*),NC2(*),NC3(*),NC4(*)
51 my_real, INTENT(IN) :: THEACCFACT
52 my_real
53 . VOL(*), PX1(*), PX2(*), PX3(*), PX4(*),
54 . PY1(*), PY2(*), PY3(*), PY4(*),
55 . pz1(*), pz2(*), pz3(*), pz4(*),
56 . tempnc(*), fphi(mvsiz,4), pm(npropm,*),heat(*),
57 . dt1,tel(*),off(*),offg(*)
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER I, J
62C REAL
63 my_real
64 . CA, CB, KC, PHIX, PHIY, PHIZ, A
65C===================================================================
66
67 CA = pm(75,imat)
68 cb = pm(76,imat)
69 DO i=1,nel
70 IF(off(i)==zero.OR.offg(i)<=zero) cycle
71
72C
73C - flux
74C
75 phix = tempnc(nc1(i))*px1(i) + tempnc(nc2(i))*px2(i) +
76 . tempnc(nc3(i))*px3(i) + tempnc(nc4(i))*px4(i)
77
78 phiy = tempnc(nc1(i))*py1(i) + tempnc(nc2(i))*py2(i) +
79 . tempnc(nc3(i))*py3(i) + tempnc(nc4(i))*py4(i)
80
81 phiz = tempnc(nc1(i))*pz1(i) + tempnc(nc2(i))*pz2(i) +
82 . tempnc(nc3(i))*pz3(i) + tempnc(nc4(i))*pz4(i)
83C
84 kc = (ca + cb*tel(i))*dt1*vol(i)*theaccfact
85 phix = kc*phix
86 phiy = kc*phiy
87 phiz = kc*phiz
88C
89C force thermique nodale
90C
91 a = fourth* heat(i)
92 fphi(i,1) = a - (phix*px1(i) + phiy*py1(i) + pz1(i)*phiz)
93 fphi(i,2) = a - (phix*px2(i) + phiy*py2(i) + pz2(i)*phiz)
94 fphi(i,3) = a - (phix*px3(i) + phiy*py3(i) + pz3(i)*phiz)
95 fphi(i,4) = a - (phix*px4(i) + phiy*py4(i) + pz4(i)*phiz)
96 ENDDO
97C
98 RETURN
99 END
subroutine s4therm(pm, imat, vol, nc1, nc2, nc3, nc4, px1, px2, px3, px4, py1, py2, py3, py4, pz1, pz2, pz3, pz4, dt1, tempnc, tel, heat, fphi, offg, off, nel, theaccfact)
Definition s4therm.F:36