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!||====================================================================
29 SUBROUTINE therm3c(NEL ,PM ,THK ,IXTG ,
30 2 PX1 ,PY1 ,PY2 ,AREA ,DT ,
31 3 TEMPNC,TEMPEL,DHEAT ,FPHI ,THEACCFACT)
32C-----------------------------------------------
33C calculates nodal thermic force from heat energy increment
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C G l o b a l P a r a m e t e r s
40C-----------------------------------------------
41#include "mvsiz_p.inc"
42#include "param_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER, INTENT(IN) :: NEL
47 INTEGER, INTENT(IN) :: IXTG(NIXTG,*)
48 my_real ,INTENT(IN) :: theaccfact
49 my_real ,INTENT(IN) :: dt
50 my_real :: area(nel), px1(mvsiz),py1(mvsiz), py2(mvsiz),
51 . tempnc(*), fphi(mvsiz,3), pm(*),dheat(nel),
52 . thk(nel),tempel(nel)
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER :: I
57 my_real :: CA,CB ,KC,PHIX,PHIY,A
58!===========================================================================
59 ca = pm(75)
60 cb = pm(76)
61!
62 DO i=1,nel
63cc ! element form functions
64cc PX1(I) = HALF*(X(2,IXTG(3,I)) - X(2,IXTG(4,I)))/AREA(I)
65cc PX2(I) = HALF*(X(2,IXTG(4,I)) - X(2,IXTG(2,I)))/AREA(I)
66cc PY1(I) = HALF*(X(1,IXTG(4,I)) - X(1,IXTG(3,I)))/AREA(I)
67cc PY2(I) = HALF*(X(1,IXTG(2,I)) - X(1,IXTG(4,I)))/AREA(I)
68
69 kc = (ca + cb*tempel(i))*dt / max(em20,area(i))*theaccfact
70 phix = tempnc(ixtg(2,i))*px1(i) - tempnc(ixtg(3,i))*px1(i)
71
72 phiy = tempnc(ixtg(2,i))*py1(i) + tempnc(ixtg(3,i))*py2(i) -
73 . tempnc(ixtg(4,i))*(py1(i) + py2(i))
74C
75 phix = kc*phix*thk(i)
76 phiy = kc*phiy*thk(i)
77C
78C nodal thermal force (flux)
79C
80 a = third * dheat(i)
81 fphi(i,1) = a - phix*px1(i) - phiy*py1(i)
82 fphi(i,2) = a + phix*px1(i) - phiy*py2(i)
83 fphi(i,3) = a + phiy*(py1(i)+py2(i))
84 ENDDO
85!------------
86 RETURN
87 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:32