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