Commit cc7c8e8a authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

tweak drag interval

parent 9e61abc9
Pipeline #23882 passed with stage
in 6 minutes and 18 seconds
......@@ -669,7 +669,6 @@ class DNS(_code):
if self.dns_type in extra_parameters.keys():
for k in extra_parameters[self.dns_type].keys():
self.parameters[k] = extra_parameters[self.dns_type][k]
self.parameters['dt'] = (opt.dtfactor / opt.n)
if ((self.parameters['niter_todo'] % self.parameters['niter_out']) != 0):
self.parameters['niter_out'] = self.parameters['niter_todo']
if len(opt.src_work_dir) == 0:
......@@ -699,6 +698,7 @@ class DNS(_code):
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['dt'] = (opt.dtfactor / opt.n)
self.parameters['nu'] = (opt.kMeta * 2 / opt.n)**(4./3)
# check value of kMax
kM = opt.n * 0.5
......
......@@ -307,7 +307,7 @@ void vorticity_equation<rnumber, be>::add_forcing(
this->add_Kolmogorov_forcing(dst, this->fmode, amplitude);
this->add_field_band(
dst, vort_field,
0, this->fmode,
this->fk0, this->fk1,
-this->friction_coefficient);
return;
}
......
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