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

put lower threshold on entropy AV

parent c7db748b
No related branches found
No related tags found
No related merge requests found
Pipeline #6057 failed
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