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_mod ../common_source/eos/eoslinear.F
25!||--- called by ------------------------------------------------------
26!|| eosmain ../common_source/eos/eosmain.F
27!|| eosmain51 ../engine/source/materials/mat/mat051/eosmain51.F90
28!||====================================================================
30 IMPLICIT NONE
31 CONTAINS
32!||====================================================================
33!|| eoslinear ../common_source/eos/eoslinear.F
34!||--- called by ------------------------------------------------------
35!|| eosmain ../common_source/eos/eosmain.F
36!|| eosmain51 ../engine/source/materials/mat/mat051/eosmain51.F90
37!||--- uses -----------------------------------------------------
38!|| constant_mod ../common_source/modules/constant_mod.F
39!|| eos_param_mod ../common_source/modules/mat_elem/eos_param_mod.F90
40!||====================================================================
41 SUBROUTINE eoslinear(
42 1 IFLAG , NEL ,PMIN ,OFF ,EINT ,MU ,
43 2 DVOL , VNEW ,PSH ,PNEW ,DPDM ,
44 3 DPDE , EOS_STRUCT, C0, BULK)
45C-----------------------------------------------
46C M o d u l e s
47C-----------------------------------------------
48 USE constant_mod , ONLY : zero, half, one
49 USE eos_param_mod , ONLY : eos_param_
50C-----------------------------------------------
51C D e s c r i p t i o n
52C-----------------------------------------------
53!----------------------------------------------------------------------------
54!! \details STAGGERED SCHEME IS EXECUTED IN TWO PASSES IN EOSMAIN : IFLG=0 THEN IFLG=1
55!! \details COLLOCATED SCHEME IS DOING A SINGLE PASS : IFLG=2
56!! \details
57!! \details STAGGERED SCHEME
58!! \details EOSMAIN / IFLG = 0 : DERIVATIVE CALCULATION FOR SOUND SPEED ESTIMATION c[n+1] REQUIRED FOR PSEUDO-VISCOSITY (DPDE:partial derivative, DPDM:total derivative)
59!! \details MQVISCB : PSEUDO-VISCOSITY Q[n+1]
60!! \details MEINT : INTERNAL ENERGY INTEGRATION FOR E[n+1] : FIRST PART USING P[n], Q[n], and Q[n+1] CONTRIBUTIONS
61!! \details EOSMAIN / IFLG = 1 : UPDATE P[n+1], T[N+1]
62!! \details INTERNAL ENERGY INTEGRATION FOR E[n+1] : LAST PART USING P[n+1] CONTRIBUTION
63!! \details (second order integration dE = -P.dV where P = 0.5(P[n+1] + P[n]) )
64!! \details COLLOCATED SCHEME
65!! \details EOSMAIN / IFLG = 2 : SINGLE PASS FOR P[n+1] AND DERIVATIVES
66!----------------------------------------------------------------------------
67C-----------------------------------------------
68C I m p l i c i t T y p e s
69C-----------------------------------------------
70 IMPLICIT NONE
71#include "my_real.inc"
72C-----------------------------------------------
73C D u m m y A r g u m e n t s
74C-----------------------------------------------
75 INTEGER,INTENT(IN) :: IFLAG, NEL
76 my_real,INTENT(IN) :: PMIN,OFF(NEL),MU(NEL),DVOL(NEL),VNEW(NEL)
77 my_real,INTENT(INOUT) :: PNEW(NEL),DPDM(NEL),DPDE(NEL),PSH(NEL),EINT(NEL)
78 TYPE(eos_param_),INTENT(IN) :: EOS_STRUCT
79 my_real,INTENT(IN) :: c0,bulk
80C-----------------------------------------------
81C L o c a l V a r i a b l e s
82C-----------------------------------------------
83 INTEGER I
84C-----------------------------------------------
85C S o u r c e L i n e s
86C-----------------------------------------------
87 !C0, BULK : For LINEAR EOS when no /EoS is defined. use material parameters stored in PM instal EOS_STRUCT%UPARAM
88
89 psh(1:nel) = eos_struct%PSH
90
91 IF(iflag == 0) THEN
92 DO i=1,nel
93 dpdm(i) = bulk
94 dpde(i) = zero
95 pnew(i) = c0+bulk*mu(i)
96 pnew(i) = max(pmin-psh(i),pnew(i)) !law10 : yield criteria depends on P
97 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
98 ENDDO
99
100 ELSEIF(iflag == 1) THEN
101 DO i=1,nel
102 pnew(i) = c0+bulk*mu(i)
103 pnew(i) = max(pnew(i),pmin-psh(i))
104 pnew(i) = pnew(i)*off(i) ! P(mu[n+1],E[n+1])
105 eint(i) = eint(i) - half*dvol(i)*(pnew(i)+psh(i))
106 dpde(i) = zero
107 ENDDO
108
109 ELSEIF (iflag == 2) THEN
110 DO i=1, nel
111 IF (vnew(i) > zero) THEN
112 pnew(i) = c0+bulk*mu(i)
113 pnew(i) = max(pnew(i),pmin-psh(i))
114 pnew(i) = pnew(i)*off(i)
115 dpdm(i) = bulk
116 dpde(i) = zero
117 ENDIF
118 ENDDO
119
120 ENDIF
121C-----------------------------------------------
122 RETURN
123 END SUBROUTINE eoslinear
124 END MODULE eoslinear_mod
#define max(a, b)
Definition macros.h:21
subroutine eoslinear(iflag, nel, pmin, off, eint, mu, dvol, vnew, psh, pnew, dpdm, dpde, eos_struct, c0, bulk)
Definition eoslinear.F:45