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

Documenting experience with the Kolmogorov-to-grid scale ratio required for numerical stability #20

Open
glwagner opened this issue Mar 8, 2019 · 9 comments

Comments

@glwagner
Copy link
Owner

glwagner commented Mar 8, 2019

@SandreOuza has found that dedaLES will run stably only if the ratio between the grid scale Δ and the Kolmogorov scale, defined as

ℓ = ∜(ν³ / ε) ,

where ν is viscosity and ε is turbulent dissipation, is below a certain number (perhaps around Δ/ℓ = 5). We should document this empirical rule. (Related to #19).

@sandreza
Copy link
Collaborator

sandreza commented Mar 8, 2019

Definitely one of the many interesting things about 3D turbulence is how quickly the small scales show up as compared to the 2D one! I am still working on getting a good intuition for exactly why the numerics breaks (or doesn't) for a given situation

@wenegrat
Copy link
Collaborator

wenegrat commented Mar 8, 2019 via email

@kburns
Copy link
Collaborator

kburns commented Mar 12, 2019

It looks like the zero_max function in AMD is implementing a hard max rather than a soft max. This may be part of the problem -- computing the hard max on a certain grid may result in oscillations leading to negative values at different points.

@glwagner
Copy link
Owner Author

@kburns this wouldn't affect ConstantSmagorinsky though, correct?

Can we use a spectral filter on the eddy viscosity/diffusivity itself, rather than the solution?

@kburns
Copy link
Collaborator

kburns commented Mar 13, 2019

Well I'm not sure which closure @wenegrat was referring to, but it doesn't look like we currently have any regularization on the constant smagorinsky eddy viscosity, right?

@glwagner
Copy link
Owner Author

Right @kburns there is no regularization on Smagorinsky; it is "guaranteed" > 0. So perhaps negative viscosity is only possible with regularization?

Still puzzled how LES is ordinarily done with spectral methods.

@kburns
Copy link
Collaborator

kburns commented Mar 13, 2019

I think it's only guaranteed to be positive on the dealiased (scales=3/2) grid points, where it is calculated, but the spectral interpolant may end up being negative at other points, perhaps including the output grid (scales=1) if there are sharp features in the field.

@wenegrat
Copy link
Collaborator

wenegrat commented Mar 13, 2019 via email

@kburns
Copy link
Collaborator

kburns commented Mar 15, 2019

It's a little subtle -- during the simulation, the subgrid viscosity will be calculated on the grid, where it should be non-negative, and immediately multiplied by the other terms to produce the subgrid stress. However, if you designate that you want to save the subgrid viscosity as an output, there may be a round-trip transform to coefficient space and back to grid space before it is saved to disk. Even without dealiasing, this may slightly change the grid values since the Fourier Nyquist mode is dropped during these transforms, so the FFT is not quite exactly 1-to-1 (as an aside, this is a bit of a pain, but when you think about applying operators in coefficient space, it doesn't make much sense to keep and work with the Nyquist mode). So this may result in slightly negative values, on the order of the Nyquist mode amplitude. This may seem bad, but it's also the order-of-magnitude of the truncated terms, so its probably a decent estimate of how negative the truncated spectral interpolant may be between the grid points, anyways.

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

4 participants