OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stherm.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!|| stherm ../engine/source/elements/solid/solide/stherm.F
25!||--- called by ------------------------------------------------------
26!|| sforc3 ../engine/source/elements/solid/solide/sforc3.F
27!|| szforc3 ../engine/source/elements/solid/solidez/szforc3.F
28!||====================================================================
29 SUBROUTINE stherm(
30 1 PM, IMAT, VOL, NC1,
31 2 NC2, NC3, NC4, NC5,
32 3 NC6, NC7, NC8, PX1,
33 4 PX2, PX3, PX4, PY1,
34 5 PY2, PY3, PY4, PZ1,
35 6 PZ2, PZ3, PZ4, DT1,
36 7 TEMPNC, TEMPEL, HEAT, FPHI,
37 8 OFFG, OFF, PARTSAV, IPARTS,
38 9 VOL0, NEL, NUMNOD ,THEACCFACT)
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C G l o b a l P a r a m e t e r s
45C-----------------------------------------------
46#include "mvsiz_p.inc"
47#include "param_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 INTEGER, INTENT(IN) :: NEL
52 INTEGER, INTENT(IN) :: NUMNOD
53 INTEGER, INTENT(IN) :: IMAT
54 INTEGER NC1(MVSIZ),NC2(MVSIZ),NC3(MVSIZ),NC4(MVSIZ),
55 . NC5(MVSIZ),NC6(MVSIZ),NC7(MVSIZ),NC8(MVSIZ)
56 INTEGER IPARTS(*)
57 my_real :: DT1
58 my_real ,INTENT(IN) :: THEACCFACT
59 my_real ,INTENT(IN) :: HEAT(MVSIZ)
60 my_real :: tempnc(numnod)
61 my_real :: tempel(nel)
62 my_real :: off(nel)
63 my_real :: offg(nel)
64 my_real :: vol(nel)
65 my_real :: vol0(nel)
66 my_real :: px1(*), px2(*), px3(*), px4(*),
67 . py1(*), py2(*), py3(*), py4(*),
68 . pz1(*), pz2(*), pz3(*), pz4(*)
69 my_real :: fphi(mvsiz,8)
70 my_real :: pm(npropm,*)
71 my_real :: partsav(npsav,*)
72C-----------------------------------------------
73C L o c a l V a r i a b l e s
74C-----------------------------------------------
75 INTEGER I,M
76 my_real AS, BS, KC, PHIX, PHIY, PHIZ, A, B, RHOCP, T0
77!==============================================================================
78 as = pm(75,imat) !< thermal conductivity coefficient A for solid phase
79 bs = pm(76,imat) !< thermal conductivity coefficient B for solid phase
80 rhocp = pm(69,imat)
81 t0 = pm(79,imat)
82C
83C calculate thermal flux
84C
85 DO i=1,nel
86 IF(off(i)==zero.OR.offg(i)<=zero) cycle
87 phix = tempnc(nc1(i))*px1(i) + tempnc(nc2(i))*px2(i) +
88 . tempnc(nc3(i))*px3(i) + tempnc(nc4(i))*px4(i) -
89 . tempnc(nc5(i))*px3(i) - tempnc(nc6(i))*px4(i) -
90 . tempnc(nc7(i))*px1(i) - tempnc(nc8(i))*px2(i)
91
92 phiy = tempnc(nc1(i))*py1(i) + tempnc(nc2(i))*py2(i) +
93 . tempnc(nc3(i))*py3(i) + tempnc(nc4(i))*py4(i) -
94 . tempnc(nc5(i))*py3(i) - tempnc(nc6(i))*py4(i) -
95 . tempnc(nc7(i))*py1(i) - tempnc(nc8(i))*py2(i)
96
97 phiz = tempnc(nc1(i))*pz1(i) + tempnc(nc2(i))*pz2(i) +
98 . tempnc(nc3(i))*pz3(i) + tempnc(nc4(i))*pz4(i) -
99 . tempnc(nc5(i))*pz3(i) - tempnc(nc6(i))*pz4(i) -
100 . tempnc(nc7(i))*pz1(i) - tempnc(nc8(i))*pz2(i)
101C
102 kc = (as + bs*tempel(i))*vol(i)*dt1*theaccfact
103 phix = kc*phix
104 phiy = kc*phiy
105 phiz = kc*phiz
106C
107C ! nodal thermal force
108C
109 a = one_over_8 * heat(i)
110 b = phix*px1(i) + phiy*py1(i) + pz1(i)*phiz
111 fphi(i,1) = a - b
112 fphi(i,7) = a + b
113 b = phix*px2(i) + phiy*py2(i) + pz2(i)*phiz
114 fphi(i,2) = a - b
115 fphi(i,8) = a + b
116 b = phix*px3(i) + phiy*py3(i) + pz3(i)*phiz
117 fphi(i,3) = a - b
118 fphi(i,5) = a + b
119 b = phix*px4(i) + phiy*py4(i) + pz4(i)*phiz
120 fphi(i,4) = a - b
121 fphi(i,6) = a + b
122 ENDDO
123C
124 DO i=1,nel
125 IF (off(i)==zero.OR.offg(i)<=zero) cycle
126 m = iparts(i)
127 partsav(28,m) = partsav(28,m) + rhocp*vol0(i)*(tempel(i)-t0) + heat(i)
128 ENDDO
129!-----------
130 RETURN
131 END
subroutine stherm(pm, imat, vol, nc1, nc2, nc3, nc4, nc5, nc6, nc7, nc8, px1, px2, px3, px4, py1, py2, py3, py4, pz1, pz2, pz3, pz4, dt1, tempnc, tempel, heat, fphi, offg, off, partsav, iparts, vol0, nel, numnod, theaccfact)
Definition stherm.F:39