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

add entrainment and detrainment limiter to diagnostic edmf #2424

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

szy21
Copy link
Member

@szy21 szy21 commented Dec 9, 2023

Purpose

Limits diagnostic edmf entrainment and detrainment to w / dz. Also refactors the limiter on entrainment and detrainment.

Right now I am limiting both entrainment and detrainment to w / dz for diagnostic edmf. I am not sure if it makes sense for detrainment, as this makes it small when w goes to zero near the cloud top, but I think we want detrainment to be large there. I'll need to think more about it. For entrainment, I can't use this upper limit at the first level, as w is zero and limiting it will result in zero entrainment, and zero area fraction throughout the column. So it's a bit ugly:( Another way is to calculate w at the next level first then use that for the limiter, but this can potentially result in different entrainment for w and tracers, which I would like to avoid unless we have to. Other than these issues this PR is ready for review.

Some time ago I increased the entrainment to make the timestep more limited by mass flux. The simulations didn't fail but the results look pretty noisy. I reduced dt here to make the results look slightly smoother. We can revisit this after we treat mass flux implicitly.

Closes #2407

To-do

Content


  • I have read and checked the items on the review checklist.

@szy21 szy21 marked this pull request as ready for review December 11, 2023 06:36
@szy21 szy21 added the do-not-merge-yet Block from bors label Dec 11, 2023
@szy21 szy21 requested a review from trontrytel December 12, 2023 16:21
@trontrytel
Copy link
Member

I like the idea of splitting the entr/detr limiter function from the actual entr/detr formulae themselves. Annoying with the special treatment of the first level. We could come up with some additional entrainment term that is only acting close to the surface and treat it separately. But not sure if thats less annoying

@szy21 szy21 removed the do-not-merge-yet Block from bors label Dec 12, 2023
@szy21 szy21 force-pushed the zs/diagedmf_entr_limiter branch from 79012c8 to 6767034 Compare December 12, 2023 18:31
@szy21
Copy link
Member Author

szy21 commented Dec 13, 2023

I'll need to think a bit more about this. Entrainment and detrainment are also used in the prognostic TKE equation, so besides some w / dz limit, I think we probably need some dt limit as well.

@szy21 szy21 force-pushed the zs/diagedmf_entr_limiter branch from 2fe0ad2 to ad7be1d Compare December 16, 2023 07:13
@szy21 szy21 force-pushed the zs/diagedmf_entr_limiter branch from ad7be1d to 4d3466e Compare December 17, 2023 19:42
@szy21 szy21 enabled auto-merge December 17, 2023 19:44
@szy21 szy21 added this pull request to the merge queue Dec 17, 2023
Merged via the queue into main with commit 84b1a0e Dec 17, 2023
10 checks passed
@szy21 szy21 deleted the zs/diagedmf_entr_limiter branch December 17, 2023 21:16
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

Successfully merging this pull request may close these issues.

Rethink the limiter on entrainment and detrainment for diagnostic EDMF
2 participants