Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed 4th root in Kolmogorov scale calculation #163

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/output_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function kolmogorov_and_batchelor_scale!(file::AbstractString)
Sc = ds.attrib["Sc"]
find_num = findfirst(' ', ds.attrib["ν"]) - 1
ν = parse(Float64, ds.attrib["ν"][1:find_num])
η_min = (ν^3 / maximum(ds["ϵ_maximum"][:]))
η_min = (ν^3 / maximum(ds["ϵ_maximum"][:]))^(1/4)
ds.attrib["η (min)"] = η_min # minimum space and time Kolmogorov scale
ds.attrib["λ_B"] = η_min / sqrt(Sc) # minimum space and time Batchelor scale
end
Expand All @@ -244,7 +244,7 @@ function kolmogorov_and_batchelor_scale!(file::AbstractString)
ϵ_ts = FieldTimeSeries(file, "ϵ_maximum", backend = OnDisk())
Sc = load(file, "Non_dimensional_numbers")["Sc"]
ν = load(file, "closure/ν")
η_min = (ν^3 / maximum(ϵ_ts))
η_min = (ν^3 / maximum(ϵ_ts))^(1/4)

jldopen(file, "a+") do f
f["minimum_kolmogorov_scale"] = η_min
Expand Down
Loading