Skip to content
Snippets Groups Projects

make shock tube and blast wave tests run for SRHD when using MDA AV

Merged Florian Atteneder requested to merge fa/srhd-sod-shocktube into main
1 file
+ 24
3
Compare changes
  • Side-by-side
  • Inline
+ 24
3
@@ -109,7 +109,7 @@ end
r = abs(ri)
v0 = abs(v0i)
if v0 >= 1
if v0 > 1
error((v0,z0i,Si,D))
end
@@ -134,10 +134,31 @@ end
if D < rhomin
@warn "atmosphering I"
error((D,S,tau))
@assert eos isa EquationOfState.IdealGas
@unpack Gamma = eos
# employ atmosphere values by taking the zero temperature limit
# for an ideal gas eos, we have that eos.Gamma becomes the Gamma for
# a polytrope, see grhd notes for derivation
rho = rhoatm
eps = eos.cold_eos(InternalEnergy, Density, rho)
v = 0.0
p = eos.cold_eos(Pressure, Density, rho)
W = 1.0
# p = K * rho^Gamma
# eps = Gamma * rho^
# D = W * rho
# S = rho * (1+eps+p/rho) * W^2 * v
# tau = rho * (1+eps+p/rho) * W^2 - p - D
# if eos isa ColdEquationOfState
# eps = eos.cold_eos(InternalEnergy, Density, rho)
# p = eos.cold_eos(Pressure, Density, rho)
# else
# eps = eos(InternalEnergy, Density, rho)
# p = eos(Pressure, Density, rho)
# end
else
Loading