Commit 6211f520 authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

add warning about nu computation

parent db01eb7d
......@@ -694,6 +694,11 @@ class DNS(_code):
opt.injection_rate = self.parameters['injection_rate']
if type(opt.dealias_type) == type(None):
opt.dealias_type = self.parameters['dealias_type']
if (opt.nx > opt.n or
opt.ny > opt.n or
opt.nz > opt.n):
opt.n = min(opt.nx, opt.ny, opt.nz)
print("Warning: '-n' parameter changed to minimum of nx, ny, nz. This affects the computation of nu.")
self.parameters['nu'] = (opt.kMeta * 2 / opt.n)**(4./3)
# check value of kMax
kM = opt.n * 0.5
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment