add entrainment and detrainment limiter to diagnostic edmf #2424
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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