Skip to content

Commit

Permalink
correct scaling of the decaying field
Browse files Browse the repository at this point in the history
  • Loading branch information
marinlauber authored and marinlauber committed Sep 20, 2021
1 parent e40d524 commit 87570e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ def DecayingTurbulence(x, y, Re, **kwargs):
whatk = w_hat * PhaseFunction(kx, ky)

# transforms initial field in physical space
w = np.fft.ifft2(whatk)
w = np.fft.ifft2(whatk) * nx * ny

return np.real(w)

0 comments on commit 87570e4

Please sign in to comment.