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