OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
eoslinear.F File Reference
#include "implicit_f.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 eoslinear (iflag, nel, pm, off, eint, mu, dvol, vnew, mat, psh, pnew, dpdm, dpde)

Function/Subroutine Documentation

◆ eoslinear()

subroutine eoslinear ( 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 eoslinear.F.

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