OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
eoslinear.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!|| eoslinear ../common_source/eos/eoslinear.F
25!||--- called by ------------------------------------------------------
26!|| eosmain ../common_source/eos/eosmain.F
27!||====================================================================
28 SUBROUTINE eoslinear(IFLAG,NEL ,PM ,OFF ,EINT ,MU ,
29 2 DVOL ,VNEW ,MAT ,PSH ,PNEW ,DPDM ,
30 3 DPDE )
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
136 END
subroutine eoslinear(iflag, nel, pm, off, eint, mu, dvol, vnew, mat, psh, pnew, dpdm, dpde)
Definition eoslinear.F:31
#define max(a, b)
Definition macros.h:21