OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
jwl_mod Module Reference

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_mod::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 36 of file jwl.F.

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
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21