OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
therm3c.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!|| therm3c ../engine/source/elements/sh3n/coque3n/therm3c.F
25!||--- called by ------------------------------------------------------
26!|| c3forc3 ../engine/source/elements/sh3n/coque3n/c3forc3.F
27!|| c3forc3_crk ../engine/source/elements/xfem/c3forc3_crk.F
28!||--- uses -----------------------------------------------------
29!|| element_mod ../common_source/modules/elements/element_mod.F90
30!||====================================================================
31 SUBROUTINE therm3c(NEL ,PM ,THK ,IXTG ,
32 2 PX1 ,PY1 ,PY2 ,AREA ,DT ,
33 3 TEMPNC,TEMPEL,DHEAT ,FPHI ,THEACCFACT)
34 use element_mod , only : nixtg
35C-----------------------------------------------
36C calculates nodal thermic force from heat energy increment
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) :: IXTG(NIXTG,*)
51 my_real ,INTENT(IN) :: theaccfact
52 my_real ,INTENT(IN) :: dt
53 my_real :: area(nel), px1(mvsiz),py1(mvsiz), py2(mvsiz),
54 . tempnc(*), fphi(mvsiz,3), pm(*),dheat(nel),
55 . thk(nel),tempel(nel)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER :: I
60 my_real :: CA,CB ,KC,PHIX,PHIY,A
61!===========================================================================
62 ca = pm(75)
63 cb = pm(76)
64!
65 DO i=1,nel
66c!!Formo functions
67cc PX1(I) = HALF*(X(2,IXTG(3,I)) - X(2,IXTG(4,I)))/AREA(I)
68cc PX2(I) = HALF*(X(2,IXTG(4,I)) - X(2,IXTG(2,I)))/AREA(I)
69cc PY1(I) = HALF*(X(1,IXTG(4,I)) - X(1,IXTG(3,I)))/AREA(I)
70cc PY2(I) = HALF*(X(1,IXTG(2,I)) - X(1,IXTG(4,I)))/AREA(I)
71
72 kc = (ca + cb*tempel(i))*dt / max(em20,area(i))*theaccfact
73 phix = tempnc(ixtg(2,i))*px1(i) - tempnc(ixtg(3,i))*px1(i)
74
75 phiy = tempnc(ixtg(2,i))*py1(i) + tempnc(ixtg(3,i))*py2(i) -
76 . tempnc(ixtg(4,i))*(py1(i) + py2(i))
77C
78 phix = kc*phix*thk(i)
79 phiy = kc*phiy*thk(i)
80C
81C nodal thermal force (flux)
82C
83 a = third * dheat(i)
84 fphi(i,1) = a - phix*px1(i) - phiy*py1(i)
85 fphi(i,2) = a + phix*px1(i) - phiy*py2(i)
86 fphi(i,3) = a + phiy*(py1(i)+py2(i))
87 ENDDO
88!------------
89 RETURN
90 END
#define my_real
Definition cppsort.cpp:32
subroutine area(d1, x, x2, y, y2, eint, stif0)
#define max(a, b)
Definition macros.h:21
subroutine therm3c(nel, pm, thk, ixtg, px1, py1, py2, area, dt, tempnc, tempel, dheat, fphi, theaccfact)
Definition therm3c.F:34