Forcing function bug correction.

This commit is contained in:
Miikka Vaisala
2020-01-14 13:58:11 +08:00
parent ae0163b0e5
commit 185b33980f
3 changed files with 10 additions and 6 deletions

View File

@@ -607,7 +607,7 @@ forcing(int3 globalVertexIdx, Scalar dt)
Vector force = helical_forcing(magnitude, k_force, xx, ff_re, ff_im, phase);
// Scaling N = magnitude*cs*sqrt(k*cs/dt) * dt
const Scalar NN = cs * sqrt(AC_kaver * cs);
const Scalar NN = cs * magnitude * sqrt(AC_kaver * cs);
// MV: Like in the Pencil Code. I don't understandf the logic here.
force.x = sqrt(dt) * NN * force.x;
force.y = sqrt(dt) * NN * force.y;