-
Notifications
You must be signed in to change notification settings - Fork 4
More general set! plus MoistureMassFractions abstraction #72
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
Conversation
…eeze.jl into glw/better-set
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
docs preview here: https://numericalearth.github.io/BreezeDocumentation/previews/PR72/ |
|
After 6d97925, the bomex test started working again (that was the last of a chain of changes). Here is the latest plot (cc @mmr0)
There are a few details that got sorted in this PR, which I'll just hastily mention here, and should be documented more thoroughly in a future PR. One tricky detail for saturation adjustment is that we need to be able to calculate density, which in turn depends on the vapor mass fraction. In saturated conditions and under the assumptions of adjustment, the vapor mass fraction is given simply by the saturation specific humidity. So, using the anelastic appropriate relation for density in the last expression, we used This leads to a formula that is a little elusive in the literature, but is given by Pressel et al 2015 eq 37. But there are a few errors / misstatements in that paper too, so beware. This PR therefore adds a special routine for the "adjustment saturation specific humidity". Another big change is how the initial guess for the iteration is generated. In the end I just used a 1 K increment. This will be subject to future investigation. More broadly, I think we need to move on to focusing on the atmosphere model, so I will merge this. It's nice to have the Boussinesq work tied in a bow, it represents progress in Knowledge. |
|
This seems to have broken compilation of the example on GPU (tested on julia v1.10): |
Ah nice, I think we need an adapt for |

This PR makes a few major changes:
MoistureMassFractionsabstraction for representing the mass fractions of vapor, liquid, and ice.grid. This changes howMoistAirBuoyancyworks withNonhydrostaticModel(previously , reference profiles were computed on-the-fly rather than precomputed)set!forAtmosphereModelThe improvements to
set!were lifted from #29