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

The 2D example is not working properly #5

Open
DQuanR2 opened this issue Oct 19, 2021 · 1 comment
Open

The 2D example is not working properly #5

DQuanR2 opened this issue Oct 19, 2021 · 1 comment

Comments

@DQuanR2
Copy link

DQuanR2 commented Oct 19, 2021

I am trying to run the 2D example, but it seems like its not working properly. I tried running it "out of the box", but the function
'isoturb.generate_isotropic_turbulence' requires 9 arguments, in the example2D.py, only 7 were provided. If values for lz and nz are provided, the generator crashes.

@DQuanR2
Copy link
Author

DQuanR2 commented Oct 19, 2021

Hello, I found the solution. In line 147 where u, v are determined i.e., u, v = isoturb.generate_isotropic_turbulence(lx, ly, nx, ny, nmodes, wn1, whichspec), the original code was calling the 3D function, instead of the 2D.
It should be u, v = isoturb.generate_isotropic_turbulence_2d(lx, ly, nx, ny, nmodes, wn1, whichspec)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant