OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
noble_abel.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!|| noble_abel ../common_source/eos/noble_abel.F
25!||--- called by ------------------------------------------------------
26!|| eosmain ../common_source/eos/eosmain.F
27!||====================================================================
28 SUBROUTINE noble_abel(IFLAG,NEL, PM ,OFF ,EINT ,MU ,
29 2 ESPE ,DVOL ,DF ,VNEW ,MAT ,PSH ,
30 3 PNEW ,DPDM ,DPDE )
31C-----------------------------------------------
32C D e s c r i p t i o n
33C-----------------------------------------------
34C This subroutine contains numerical solving
35C of NOBLE-ABEL EOS
36!----------------------------------------------------------------------------
37!! \details STAGGERED SCHEME IS EXECUTED IN TWO PASSES IN EOSMAIN : IFLG=0 THEN IFLG=1
38!! \details COLLOCATED SCHEME IS DOING A SINGLE PASS : IFLG=2
39!! \details
40!! \details STAGGERED SCHEME
41!! \details EOSMAIN / IFLG = 0 : DERIVATIVE CALCULATION FOR SOUND SPEED ESTIMATION c[n+1] REQUIRED FOR PSEUDO-VISCOSITY (DPDE:partial derivative, DPDM:total derivative)
42!! \details MQVISCB : PSEUDO-VISCOSITY Q[n+1]
43!! \details MEINT : INTERNAL ENERGY INTEGRATION FOR E[n+1] : FIRST PART USING P[n], Q[n], and Q[n+1] CONTRIBUTIONS
44!! \details EOSMAIN / IFLG = 1 : UPDATE P[n+1], T[N+1]
45!! \details INTERNAL ENERGY INTEGRATION FOR E[n+1] : LAST PART USING P[n+1] CONTRIBUTION
46!! \details (second order integration dE = -P.dV where P = 0.5(P[n+1] + P[n]) )
47!! \details COLLOCATED SCHEME
48!! \details EOSMAIN / IFLG = 2 : SINGLE PASS FOR P[n+1] AND DERIVATIVES
49!----------------------------------------------------------------------------
50C-----------------------------------------------
51C M o d u l e s
52C-----------------------------------------------
53C
54C-----------------------------------------------
55C I m p l i c i t T y p e s
56C-----------------------------------------------
57#include "implicit_f.inc"
58#include "comlock.inc"
59C-----------------------------------------------
60C C o m m o n B l o c k s
61C-----------------------------------------------
62#include "param_c.inc"
63#include "com04_c.inc"
64#include "com06_c.inc"
65#include "com08_c.inc"
66#include "vect01_c.inc"
67#include "scr06_c.inc"
68C-----------------------------------------------
69C D u m m y A r g u m e n t s
70C-----------------------------------------------
71 INTEGER MAT(NEL), IFLAG, NEL
72 my_real PM(NPROPM,NUMMAT),
73 . off(nel) ,eint(nel) ,mu(nel) ,
74 . espe(nel) ,dvol(nel) ,df(nel) ,
75 . vnew(nel) ,psh(nel) ,pnew(nel) ,dpdm(nel),
76 . dpde(nel)
77C-----------------------------------------------
78C L o c a l V a r i a b l e s
79C-----------------------------------------------
80 INTEGER I, MX
81 my_real GM1(NEL), DVV, PP,BB_(NEL),RHO0(NEL)
82 my_real denom,bb
83C-----------------------------------------------
84 IF(iflag == 0) THEN
85 DO i=1,nel
86 mx = mat(i)
87 bb_(i) = pm(32,mx)
88 gm1(i) = pm(33,mx)
89 rho0(i) = pm(34,mx)
90 psh(i) = pm(88,mx)
91 ENDDO
92 DO i=1,nel
93 denom = one-bb_(i)*rho0(i)*(one+mu(i))
94 pp = espe(i)*gm1(i)*(mu(i)+one)/denom
95 dpde(i) = gm1(i)*(one+mu(i))/denom
96 dpdm(i) = gm1(i)*espe(i)/denom + pp/denom*bb_(i)*rho0(i) + pp*df(i)*df(i)*dpde(i)
97 pnew(i) = max(pp,zero)*off(i)! P(mu[n+1],E[n])
98 pnew(i) = pnew(i)-psh(i)
99 ENDDO
100
101 ELSEIF(iflag == 1) THEN
102 DO i=1,nel
103 mx = mat(i)
104 bb_(i) = pm(32,mx)
105 gm1(i) = pm(33,mx)
106 rho0(i) = pm(34,mx)
107 psh(i) = pm(88,mx)
108 ENDDO
109 DO i=1,nel
110 denom = one-bb_(i)*rho0(i)*(one+mu(i))
111 bb = gm1(i)*(one+mu(i))/denom
112 dpde(i) = bb
113 dvv = half*dvol(i)*df(i) / max(em15,vnew(i))
114 pnew(i) = (bb*espe(i))/(one+bb*dvv)
115 pnew(i) = pnew(i)*off(i)! P(mu[n+1],E[n])
116 eint(i) = eint(i) - half*dvol(i)*pnew(i)
117 pnew(i) = pnew(i)-psh(i)
118 ENDDO
119
120 ELSEIF(iflag == 2) THEN
121 DO i=1, nel
122 mx = mat(i)
123 bb_(i) = pm(32,mx)
124 gm1(i) = pm(33,mx)
125 rho0(i) = pm(34,mx)
126 psh(i) = pm(88,mx)
127 ENDDO
128 DO i=1, nel
129 IF (vnew(i) > zero) THEN
130 denom = one-bb_(i)*rho0(i)*(one+mu(i))
131 pp = espe(i)*gm1(i)*(mu(i)+one)/denom
132 dpde(i) = gm1(i)*(one+mu(i))/denom
133 dpdm(i) = gm1(i)*espe(i)/denom + pp/denom*bb_(i)*rho0(i) + pp*df(i)*df(i)*dpde(i)
134 pnew(i) = pp-psh(i)
135 ENDIF
136 ENDDO
137 ENDIF
138 RETURN
139 END
#define max(a, b)
Definition macros.h:21
subroutine noble_abel(iflag, nel, pm, off, eint, mu, espe, dvol, df, vnew, mat, psh, pnew, dpdm, dpde)
Definition noble_abel.F:31