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

Examples of using kolmogorov_forcing in semi_implicit_navier_stokes #233

Open
chenwydj opened this issue Jun 26, 2024 · 0 comments
Open

Comments

@chenwydj
Copy link

Dear researchers:

Do you happen to have any example of using kolmogorov_forcing in semi_implicit_navier_stokes ?

Naively passing kolmogorov_forcing into semi_implicit_navier_stokes will not work.
Mimic the usage in spectral will give errors like "TypeError: unsupported operand type(s) for /: 'function' and 'float'" or "ValueError: arguments have different tree structures"

Examples in https://github.com/google/jax-cfd/blob/main/notebooks/spectral_forced_turbulence.ipynb will work, but one has to manually convert vorticity into velocity.

Thank you very much!

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