OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s20therm.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!|| s20therm ../engine/source/elements/solid/solide20/s20therm.F
25!||--- called by ------------------------------------------------------
26!|| s16forc3 ../engine/source/elements/thickshell/solide16/s16forc3.F
27!|| s20forc3 ../engine/source/elements/solid/solide20/s20forc3.F
28!||====================================================================
29 SUBROUTINE s20therm(
30 1 NPE, PM, IMAT, NC,
31 2 VOL, PX, PY, PZ,
32 3 NI, DT1, TEMPNC, TEMPEL,
33 4 HEAT, FPHI, OFFG, OFF,
34 5 NEL , THEACCFACT)
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "mvsiz_p.inc"
43#include "param_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER, INTENT(IN) :: NEL
48 INTEGER, INTENT(IN) :: IMAT
49 INTEGER NPE,NC(MVSIZ,NPE)
50 my_real, INTENT(IN) :: THEACCFACT
51 my_real :: VOL(*), PX(MVSIZ,NPE), PY(MVSIZ,NPE),PZ(MVSIZ,NPE),
52 . ni(npe),tempnc(*), fphi(mvsiz,npe), pm(npropm,*),heat(*),
53 . dt1,tempel(*),off(*),offg(*)
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER :: I,N
58 my_real :: CA, CB, KC, PHIX(MVSIZ), PHIY(MVSIZ), PHIZ(MVSIZ)
59C------------------------------------------------
60 CA = pm(75,imat)
61 cb = pm(76,imat)
62!
63 phix(1:mvsiz) = zero
64 phiy(1:mvsiz) = zero
65 phiz(1:mvsiz) = zero
66C
67C - flux
68C
69 DO n=1,npe
70 DO i= 1,nel
71 IF(off(i)==zero.OR.offg(i)<=zero) cycle
72 phix(i) = phix(i) + tempnc(nc(i,n))*px(i,n)
73 phiy(i) = phiy(i) + tempnc(nc(i,n))*py(i,n)
74 phiz(i) = phiz(i) + tempnc(nc(i,n))*pz(i,n)
75 ENDDO
76 ENDDO
77 DO i= 1,nel
78 IF(off(i)==zero.OR.offg(i)<=zero) cycle
79 kc = (ca + cb*tempel(i))*dt1*vol(i)*theaccfact
80 phix(i) = kc*phix(i)
81 phiy(i) = kc*phiy(i)
82 phiz(i) = kc*phiz(i)
83 ENDDO
84C
85C force thermique nodale
86C
87 DO n=1,npe
88 DO i= 1,nel
89 IF (off(i)==zero.OR.offg(i)<=zero) cycle
90 fphi(i,n) = fphi(i,n) + heat(i)*ni(n)
91 . - (phix(i)*px(i,n) + phiy(i)*py(i,n) + phiz(i)*pz(i,n))
92 ENDDO
93 ENDDO
94
95! DO I= 1,NEL
96! IF(OFF(I)==ZERO.OR.OFFG(I)<=ZERO) CYCLE
97! PHIX = ZERO
98! PHIY = ZERO
99! PHIZ = ZERO
100C
101C - flux
102C
103! DO N=1,NPE
104! PHIX = PHIX + TEMPNC(NC(I,N))*PX(I,N)
105! PHIY = PHIY + TEMPNC(NC(I,N))*PY(I,N)
106! PHIZ = PHIZ + TEMPNC(NC(I,N))*PZ(I,N)
107! ENDDO
108C
109! KC = (CA + CB*TEMPEL(I))*DT1*VOL(I)*THEACCFACT
110! PHIX = KC*PHIX
111! PHIY = KC*PHIY
112! PHIZ = KC*PHIZ
113C
114C force thermique nodale
115C
116! DO N=1,NPE
117! FPHI(I,N) = FPHI(I,N) +
118! . HEAT(I)*NI(N) - (PHIX*PX(I,N) + PHIY*PY(I,N) + PHIZ*PZ(I,N))
119! ENDDO
120! ENDDO
121C
122 RETURN
123 END
subroutine s20therm(npe, pm, imat, nc, vol, px, py, pz, ni, dt1, tempnc, tempel, heat, fphi, offg, off, nel, theaccfact)
Definition s20therm.F:35