-
Notifications
You must be signed in to change notification settings - Fork 19
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
Stability dependent boundary-layer diffusion profile #2349
Conversation
0fe2e4b
to
41133c3
Compare
b634aae
to
5f6bf1a
Compare
Should z be z - z_sfc for most places in this PR? |
Yup - including an adjustment for surface elevation here: |
b4ee76f
to
60972bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Akshay! This mostly looks good. I left a few comments.
I just thought a bit more about this. If we use this version of vertical diffusion with bulk surface fluxes ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @akshaysridhar. Just a few small comments!
norm²_ua = norm_ua^2# SurfaceFluxes uses FT(1) gustiness #TODO Add to ClimaParameters? | ||
return (grav * z) * (θ_v - θ_a) / (θ_a * norm²_ua + eps(FT)) | ||
end | ||
function compute_diffusion_coefficient( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree the C
should be consistent, but may it be still beneficial to keep this formulation for the initial testing? Also, in the case of wanting to have a continuous diffusivity between the value derived from Just discussed with @akshaysridhar this is consistent, as long as we use the MOST coefficient as in Byun 1990, already in SF.jl) , and that we could implement a test showing consistency between the surface flux and the implied diffusive flux at the surface.SurfaceFluxes.jl
and the interior, I'm getting an extra \kappa
factor in eqn 19 of Frierson. Maybe it's easier to talk offline about this....
fdf0ace
to
945547c
Compare
This branch |
caf2094
to
5978a4c
Compare
6c05352
to
07d12e1
Compare
07d12e1
to
f24d327
Compare
6dede17
to
8165f6b
Compare
53897c2
to
88d6c0a
Compare
@sriharshakandala Can you please take a look at the modifications to the |
f027436
to
81f5fa5
Compare
Refactor to include diffusion tendency in implicit solver modified: src/cache/precomputed_quantities.jl modified: src/cache/temporary_quantities.jl modified: src/prognostic_equations/vertical_diffusion_boundary_layer.jl modified: src/solver/model_getters.jl modified: src/solver/types.jl modified: perf/flame.jl modified: .buildkite/pipeline.yml modified: config/perf_configs/flame_perf_target_frierson.yml
81f5fa5
to
159ca25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the current aquaplanet without edmf to FriersonDiffusion and please feel free to merge it.
Closes #2332
Corresponding issue in ClimaCoupler:
CliMA/ClimaCoupler.jl#485