OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
thermc.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!|| thermc ../engine/source/materials/mat_share/thermc.F
25!||--- called by ------------------------------------------------------
26!|| cforc3 ../engine/source/elements/shell/coque/cforc3.F
27!|| cforc3_crk ../engine/source/elements/xfem/cforc3_crk.F
28!|| czforc3 ../engine/source/elements/shell/coquez/czforc3.F
29!|| czforc3_crk ../engine/source/elements/xfem/czforc3_crk.F
30!||--- uses -----------------------------------------------------
31!|| element_mod ../common_source/modules/elements/element_mod.F90
32!||====================================================================
33 SUBROUTINE thermc(JFT ,JLT ,PM ,MAT ,THK ,IXC ,
34 2 PX1 ,PX2 ,PY1 ,PY2 ,AREA ,DT1C ,
35 3 TEMPNC ,TEMPEL ,DIE ,FPHI ,THEACCFACT)
36 use element_mod , only : nixc
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 JFT, JLT,MAT(*),IXC(NIXC,*)
50 my_real ,INTENT(IN) :: THEACCFACT
51 my_real
52 . area(*), px1(*), px2(*), py1(*), py2(*),
53 . tempnc(*), fphi(mvsiz,4), pm(npropm,*),die(*),
54 . dt1c(*), thk(*),tempel(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I,MX
59 my_real :: CA,CB ,KC ,PHIX,PHIY,A
60!=======================================================================
61 mx =mat(jft)
62 ca = pm(75,mx)
63 cb = pm(76,mx)
64!
65 DO i=jft,jlt
66C
67C - flux
68C
69 kc = (ca + cb*tempel(i))*dt1c(i)/max(em20,area(i))*theaccfact
70 phix = tempnc(ixc(2,i))*px1(i) + tempnc(ixc(3,i))*px2(i) -
71 . tempnc(ixc(4,i))*px1(i) - tempnc(ixc(5,i))*px2(i)
72
73 phiy = tempnc(ixc(2,i))*py1(i) + tempnc(ixc(3,i))*py2(i) -
74 . tempnc(ixc(4,i))*py1(i) - tempnc(ixc(5,i))*py2(i)
75C
76 phix = kc*phix*thk(i)
77 phiy = kc*phiy*thk(i)
78C
79C nodal thermal force
80C
81 a = fourth * die(i)
82 fphi(i,1) = a - (phix*px1(i) + phiy*py1(i))
83 fphi(i,2) = a - (phix*px2(i) + phiy*py2(i))
84 fphi(i,3) = a + (phix*px1(i) + phiy*py1(i))
85 fphi(i,4) = a + (phix*px2(i) + phiy*py2(i))
86 ENDDO
87C
88 RETURN
89 END
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define max(a, b)
Definition macros.h:21
subroutine thermc(jft, jlt, pm, mat, thk, ixc, px1, px2, py1, py2, area, dt1c, tempnc, tempel, die, fphi, theaccfact)
Definition thermc.F:36