-
Notifications
You must be signed in to change notification settings - Fork 186
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
Update Smagorinsky-Lilly model #1908
Conversation
src/TurbulenceClosures/turbulence_closure_implementations/smagorinsky_lilly.jl
Show resolved
Hide resolved
I realized that Julia's |
I made one extra change which is that I don't call It appears that our buoyancy modification doesn't really match Pressel's or Lilly's since we use an arbitrary |
I don't mind if we call it "Ri" or not. The Richardson number has several interpretations and formulations; one interpretation is that it generally measures the ratio between potential energy and kinetic energy in the flow (this physical interpretation motivates its use in the "stability correction" proposed by Lilly 1962). The "rate of strain definition" limits to the "typical" oceanographic definition (also the quantity that arises in Kelvin-Helmholtz instability) for parallel laminar flow. Lilly 1962 used "Richardson number" and the symbol "Ri" to refer to this quantity: For me, it's a natural generalization of the Richarsdon number that applies in unidirectional / laminar flow, so I feel it's nice notation. But not using it is ok too. |
I don't quite understand the question --- what would you like a reference for? It looks like for We could change the default from |
Apparently my explanation wasn't needed! Yes, that's what I mean. I propose we either get rid of |
It seems like these tests are failing because they compare the LES models with some pre-computed solutions: Oceananigans.jl/test/regression_tests/ocean_large_eddy_simulation_regression_test.jl Line 78 in 32c5c5a
Oceananigans.jl/test/test_turbulence_closures.jl Lines 4 to 8 in 32c5c5a
|
Quite! Though Lilly admits that his model amounts to "little more than a scaling argument" and that both
Does the default If we get rid of A further caveat is that using |
True, we have to regenerate the test data to make this change to the default if we want to continue using the default in the regression test. As a quick fix we could change the regression test to use |
Good points. Based on these points I'd argue for us to keep things as it is but include a comment about this in the docstring / docs. Agreed? |
You can change the closure used in the regression test by changing this line: Oceananigans.jl/test/test_regression.jl Line 74 in 32c5c5a
|
Just did 2 min ago :) |
Fine by me. I also think |
Co-authored-by: Gregory L. Wagner <wagner.greg@gmail.com>
Closes #1907