OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
jwl.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "param_c.inc"
#include "com04_c.inc"
#include "com06_c.inc"
#include "com08_c.inc"
#include "vect01_c.inc"
#include "scr06_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine jwl (iflag, nel, pm, off, eint, mu, mu2, espe, dvol, df, vnew, mat, psh, pnew, dpdm, dpde)

Function/Subroutine Documentation

◆ jwl()

subroutine jwl ( integer iflag,
integer nel,
pm,
off,
eint,
mu,
mu2,
espe,
dvol,
df,
vnew,
integer, dimension(nel) mat,
dimension(nel), intent(inout) psh,
pnew,
dpdm,
dpde )

Definition at line 28 of file jwl.F.

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