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

put lower threshold on entropy AV

parent d15076ea
No related branches found
No related tags found
1 merge request!71Implement regularizations for Euler eq
This commit is part of merge request !71. Comments created here will be created in the context of that merge request.
......@@ -62,10 +62,17 @@ function compute_viscosity!(
# upper bound on AV
maxabs_v = vec(maximum(abs.(v), dims=1))
mu_max = @. cmax * maxabs_v * dl / N
(mu_max,) = @. cmax * maxabs_v * dl / N
# threshold on AV
(mu_min,) = 0.01 * mu_max
# final AV
@. mu = min(mu_e, mu_max)
# @. mu = min(mu_e, mu_max)
for i in eachindex(mu_e)
mui = min(mu_e[i], mu_max)
mu[i] = mui >= mu_min ? mui : 0.0
end
return true
end
......
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