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