OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
murnaghan.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 murnaghan (iflag, nel, pm, off, eint, mu, dvol, vnew, mat, psh, pnew, dpdm, dpde)

Function/Subroutine Documentation

◆ murnaghan()

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

Definition at line 28 of file murnaghan.F.

31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34C
35C-----------------------------------------------
36C D e s c r i p t i o n
37C-----------------------------------------------
38C This subroutine contains numerical solving
39C of MURNAGHAN EOS
40!----------------------------------------------------------------------------
41!! \details STAGGERED SCHEME IS EXECUTED IN TWO PASSES IN EOSMAIN : IFLG=0 THEN IFLG=1
42!! \details COLLOCATED SCHEME IS DOING A SINGLE PASS : IFLG=2
43!! \details
44!! \details STAGGERED SCHEME
45!! \details EOSMAIN / IFLG = 0 : DERIVATIVE CALCULATION FOR SOUND SPEED ESTIMATION c[n+1] REQUIRED FOR PSEUDO-VISCOSITY (DPDE:partial derivative, DPDM:total derivative)
46!! \details MQVISCB : PSEUDO-VISCOSITY Q[n+1]
47!! \details MEINT : INTERNAL ENERGY INTEGRATION FOR E[n+1] : FIRST PART USING P[n], Q[n], and Q[n+1] CONTRIBUTIONS
48!! \details EOSMAIN / IFLG = 1 : UPDATE P[n+1], T[N+1]
49!! \details INTERNAL ENERGY INTEGRATION FOR E[n+1] : LAST PART USING P[n+1] CONTRIBUTION
50!! \details (second order integration dE = -P.dV where P = 0.5(P[n+1] + P[n]) )
51!! \details COLLOCATED SCHEME
52!! \details EOSMAIN / IFLG = 2 : SINGLE PASS FOR P[n+1] AND DERIVATIVES
53!----------------------------------------------------------------------------
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 . dvol(nel) ,
75 . vnew(nel) ,pnew(nel) ,dpdm(nel),
76 . dpde(nel)
77 my_real, INTENT(INOUT) :: psh(nel)
78C-----------------------------------------------
79C L o c a l V a r i a b l e s
80C-----------------------------------------------
81 INTEGER I, MX
82 my_real :: p0,k0,k1,pc
83C-----------------------------------------------
84C S o u r c e L i n e s
85C-----------------------------------------------
86 IF(iflag == 0) THEN
87 mx = mat(1)
88 k0 = pm(36,mx)
89 p0 = pm(32,mx)
90 psh(1:nel) = pm(88,mx)
91 k1 = pm(35,mx)
92 pc = pm(37,mx)
93 DO i=1,nel
94 dpdm(i) = k0*exp( k1*log(1+mu(i)) )/(one+mu(i)) !total derivative
95 dpde(i) = zero !partial derivative
96 pnew(i) = k0/k1 * (exp(k1*log(one+mu(i))) - one ) + p0
97 pnew(i) = max(pnew(i),pc)*off(i)
98 pnew(i) = pnew(i)-psh(i)
99 ENDDO
100
101 ELSEIF(iflag == 1) THEN
102 mx = mat(1)
103 k0 = pm(36,mx)
104 p0 = pm(32,mx)
105 psh(1:nel) = pm(88,mx)
106 k1 = pm(35,mx)
107 pc = pm(37,mx)
108 DO i=1,nel
109 pnew(i) = k0/k1 * (exp(k1*log(one+mu(i))) - one ) + p0
110 pnew(i) = max(pnew(i),pc)*off(i)
111 eint(i) = eint(i) - half*dvol(i)*(pnew(i)+psh(i))
112 pnew(i) = pnew(i)-psh(i)
113 dpde(i) = zero
114 ENDDO
115
116 ELSEIF(iflag == 2) THEN
117 mx = mat(1)
118 k0 = pm(36,mx)
119 p0 = pm(32,mx)
120 psh(1:nel) = pm(88,mx)
121 k1 = pm(35,mx)
122 pc = pm(37,mx)
123 DO i=1,nel
124 IF (vnew(i) > zero) THEN
125 pnew(i) = k0/k1 * (exp(k1*log(1+mu(i))) - one ) + p0
126 dpdm(i) = k0*exp( k1*log(1+mu(i)) )/(one+mu(i)) !total derivative
127 dpde(i) = zero
128 pnew(i) = max(pnew(i),pc)*off(i)
129 pnew(i) = pnew(i)-psh(i)
130 ENDIF
131 ENDDO
132 ENDIF
133C------------------------
134 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21