-
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
Add cloud fraction diagnostics #2401
Conversation
4fc66ba
to
21d0851
Compare
21d0851
to
84a1573
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.
I didn't look at the quad_loop, but the rest looks good, thanks! I may look at it if I have more time, but feel free to merge it.
84a1573
to
b8380b5
Compare
Note that since you are changing the type/struct of the cache, this will be a breaking change. |
It's because I'm renaming |
You are also changing its type to be a subtype of I don't think anyone downstream uses this, but if the cache is supposed to be a public interface, this will change it. |
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 @trontrytel. Some small comments, otherwise looks reasonable!
b8380b5
to
a8e7a20
Compare
I'll consider if I stand behind my name changes enough to do the release, or revert them |
You shouldn't feel constrained by this. Also, in the past people changed the cache all the time. |
cce87f9
to
9e376b0
Compare
9e376b0
to
4acc675
Compare
913cdc7
to
cd955bd
Compare
For computing the Smagorinsky length scale I changed from
to
Otherwise the Additionally I had to change the The changes in allocations are small. So if the above two issues are fine, I would bump the version, bump the allocations and merge it in. |
I think it makes sense that mixing length goes to zero when buoyancy gradient is larger than strain rate, in which case it will reduce to one quadrature point (or we can do many quadrature points with the same value, as the variance is zero). It is common for mixing length to be zero during the spin-up, as we start with zero velocity and the shear is zero. I don't fully understand why this term is still mostly zero after e.g. 6 hours of bomex, which is why I haven't use this as a lower limit for mixing length. But I think we can figure out that later. So, in short, I think it would be better to keep the check for |
It seems weird to have this logic. I would at least want to make things smooth between the different limits
The couple of cases I tried worked with zero (co)variances, just produced no cloud fraction. Thats why I was looking for ways to make the estimated (co)variances larger. But maybe you are right, that the CI does not provide meaningful conditions to really test it |
cd955bd
to
8d894d1
Compare
The original logic (truncating c_smag * dz by a stratification factor) is fine for vertical mixing. It's possible we need to think about fluctuations generated by horizontal SGS motions (i.e., similar logic with horizontal gradients and a horizontal mixing length). When you do not get clouds at all, that means the mixing length is also zero near the top of the boundary layer? |
I think the logic is actually: |
You are right. This makes more sense! |
I will add mixing length to the output tomorrow and see how it looks in the spherical plots from longer simulations. Below are some quick plots after 2 days of |
Looks pretty reasonable! When you plot relative humidity, could you do it in some such way that RH > 1 on the grid scale is clearly recognizable? I'd like to see where you actually have grid-scale supersaturation. |
76dc06d
to
c6cee1f
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!
c6cee1f
to
deee17e
Compare
deee17e
to
72b09d4
Compare
This PR adds cloud fraction diagnostics based on diagnosed covariances.