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