OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
hm_read_eos_noble_abel.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!|| hm_read_eos_noble_abel ../starter/source/materials/eos/hm_read_eos_noble_abel.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_eos ../starter/source/materials/eos/hm_read_eos.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_floatv ../starter/source/devtools/hm_reader/hm_get_floatv.F
29!|| hm_option_is_encrypted ../starter/source/devtools/hm_reader/hm_option_is_encrypted.f
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!|| submodel_mod ../starter/share/modules1/submodel_mod.F
33!||====================================================================
34 SUBROUTINE hm_read_eos_noble_abel(IOUT,PM,UNITAB,IUNIT,LSUBMODEL,IMIDEOS)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE unitab_mod
39 USE submodel_mod
40 USE message_mod
41C-----------------------------------------------
42C D e s c r i p t i o n
43C-----------------------------------------------
44C reading parameters for
45C NOBLE-ABEL EQUATION OF STATE
46C-----------------------------------------------
47C C o m m e n t s
48C-----------------------------------------------
49C RHOI = PM(89) -> provided by /MAT
50C RHOR = PM(01) -> provided by /MAT (can be erased by EOS if present : obsolete)
51C => MU0 = RHO/RHOR-1.
52C PM(31) = P(MU0,E0) -> will be used to initialize diagonal of stress tensor SIG(1:3,*)
53C-----------------------------------------------
54C I m p l i c i t T y p e s
55C-----------------------------------------------
56#include "implicit_f.inc"
57C-----------------------------------------------
58C D u m m y A r g u m e n t s
59C-----------------------------------------------
60 TYPE (UNIT_TYPE_),INTENT(IN) ::UNITAB
61 INTEGER IIN,IOUT,IUNIT
62 my_real pm(npropm)
63 TYPE(submodel_data), DIMENSION(NSUBMOD), INTENT(IN) :: LSUBMODEL
64 INTEGER,INTENT(IN) :: IMIDEOS
65C-----------------------------------------------
66C C o m m o n B l o c k s
67C-----------------------------------------------
68#include "param_c.inc"
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
73 . c0, c1, c2, c3, c4, c5, e0, psh, rho0,
74 . fac_l,fac_t,fac_m,fac_c,bb,gamma,aa,pp,denom,mu,rhoi,rhor,dpdmu,dpde
75 my_real mu0,mu2,df,ssp0,g0
76 LOGICAL :: IS_ENCRYPTED, IS_AVAILABLE, IS_AVAILABLE_RHO0
77C-----------------------------------------------
78C S o u r c e L i n e s
79C-----------------------------------------------
80 is_encrypted = .false.
81 is_available = .false.
82 is_available_rho0 = .false.
83
84 CALL hm_option_is_encrypted(is_encrypted)
85 CALL hm_get_floatv('b_Covolume',bb, is_available,lsubmodel,unitab)
86 CALL hm_get_floatv('Gamma_Constant', gamma, is_available,lsubmodel,unitab)
87 CALL hm_get_floatv('E0', e0, is_available,lsubmodel,unitab)
88 CALL hm_get_floatv('LAW5_PSH', psh ,is_available,lsubmodel,unitab)
89 CALL hm_get_floatv('Refer_Rho', rho0 ,is_available_rho0,lsubmodel,unitab)
90
91 rhor = pm(1)
92 rhoi = pm(89)
93
94 IF(rho0 > zero) THEN
95 rhor = rho0
96 pm(1)= rho0
97 ELSE
98 rho0=rhor
99 ENDIF
100
101 pm( 23) = e0
102 pm( 32) = bb
103 pm( 33) = gamma-one
104 pm( 34) = rho0
105 pm( 88) = psh
106 IF(pm(79)==zero)pm(79)=three100
107
108 !COMPUTING INITIAL PRESSURE : PM(31) -> SIG(1:3,*)
109 mu=rhoi/rhor-one
110 denom = one-bb*rhor*(one+mu)
111 bb = (gamma-one)*(one+mu)/denom
112 pp = bb*e0
113 pm(31) = pp - psh
114 pm(104) = pp - psh
115
116 !SSP0
117 IF(rhoi == zero)THEN
118 mu0 = zero ! error 683 already displayed
119 ELSE
120 IF(rhor /= zero)THEN
121 mu0 = rhoi/rhor-one
122 ELSE
123 mu0 = zero ! error 683 already displayed
124 ENDIF
125 ENDIF
126
127 IF(rhoi /= zero)THEN
128 df = rhor/rhoi
129 ELSE
130 df = zero
131 ENDIF
132
133 mu2 = mu0*mu0
134 pp = pm(31)+psh
135 ssp0 = zero
136 g0 = pm(22)
137 rhoi = pm(89)
138 dpde = (gamma-one)*(one+mu0)/denom
139 dpdmu = (gamma-one)*e0/denom + pp/denom*bb*rhoi + pp*df*df*dpde
140
141 dpdmu=max(zero,dpdmu)
142 IF(rhor > zero) ssp0 = sqrt((dpdmu + two_third*g0)/rhor)
143 pm(27)=ssp0
144
145 WRITE(iout,1000)
146 IF(is_encrypted)THEN
147 WRITE(iout,'(5X,A,//)')'CONFIDENTIAL DATA'
148 ELSE
149 WRITE(iout,1500)bb,gamma,pm(31),e0,psh
150 IF(is_available_rho0)WRITE(iout,1501)pm(1)
151 ENDIF
152
153 RETURN
154 1000 FORMAT(
155 & 5x,' NOBLE-ABEL EOS ',/,
156 & 5x,' -------------- ',/)
157 1500 FORMAT(
158 & 5x,'COVOLUME. . . . . . . . . . . . . . . . .=',1pg20.13/,
159 & 5x,'gamma gas constant. . . . . . . . . . . .=',1PG20.13/,
160 & 5X,'initial pressure. . . . . . . . . . . . .=',1PG20.13/,
161 & 5X,'initial internal energy per unit volume .=',1PG20.13/,
162 & 5X,'pressure shift. . . . . . . . . . . . . .=',1PG20.13)
163 1501 FORMAT(
164 & 5X,'eos reference density . . . . . . . . . .=',1PG20.13)
165
166 RETURN
167 END
#define my_real
Definition cppsort.cpp:32
subroutine hm_get_floatv(name, rval, is_available, lsubmodel, unitab)
subroutine hm_option_is_encrypted(is_encrypted)
subroutine hm_read_eos_noble_abel(iout, pm, unitab, iunit, lsubmodel, imideos)
#define max(a, b)
Definition macros.h:21
program starter
Definition starter.F:39