Skip to content
Snippets Groups Projects
Commit 3a777c26 authored by Florian Atteneder's avatar Florian Atteneder
Browse files

cons2prim: use non-zero values for rho, eps thresholds

parent c9e7fd29
No related branches found
No related tags found
1 merge request!101Refactor GRHD project
This commit is part of merge request !101. Comments created here will be created in the context of that merge request.
......@@ -119,10 +119,11 @@ end
# atm_density = equation.atmosphere.ρ
# atm_threshold = equation.atmosphere.threshold
ρmin = atm_density * atm_threshold
@unpack K, Gamma = eos
pmin = K * ρmin^Gamma
ϵmin = pmin / ((Gamma-1)*ρmin)
ρmax = Inf
ρatm = atm_density
# ϵmin adjusted for IdealGas
ϵmin, ϵmax = 0.0, Inf
h0 = 1e-3
####
......@@ -341,6 +342,7 @@ end
# error()
# adjusting τ such that energy density is within bounds
# cf. 3rd paragraph in sec. III.A in Kastaun paper
# @show ϵ, ϵmin, rcoord
ϵ = ϵmin
# invert this for τ: ϵ = W * (q - mu * r2) + v^2 * W^2 / (1.0 + W), q = τ / D
τ = (ϵ / W - v2 * W / (1.0 + W) + mu * r2) * D
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment