-
Notifications
You must be signed in to change notification settings - Fork 4
[Dycore] Implement tendency term for moist static energy following Pauluis (2008) #76
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
|
The thermal bubble example needs work. But it does run. |
|
|
||
| return ( - div_Uc(i, j, k, grid, advection, velocities, energy) | ||
| + microphysical_energy_tendency(i, j, k, grid, formulation, microphysics, condensates) | ||
| + ρᵣwbᶜᶜᶜ |
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.
@kaiyuan-cheng this is the necessary term
I think a free convection example is sufficient to reveal the necessity of this.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
err I realized my example above is not doing what I thought because the boundary conditions were on a non-existing variable (we evolve ρe_bcs = FieldBoundaryConditions(bottom=FluxBoundaryCondition(1000))
model = AtmosphereModel(grid, advection=WENO(), boundary_conditions=(; ρe=ρe_bcs))iterating... |
|
I also started some simple dynamics docs on this PR. |
…lEarth/Breeze.jl into glw/energy-conservation
Co-authored-by: Mosè Giordano <[email protected]>
|
thank you @giordano <3 |
| A basic free convection simulation: | ||
|
|
||
| ```@example intro | ||
| ```julia |
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.
Was it intended to change this from an example which shows the output to a simple code block? This makes building the docs a lot faster, but not sure this was done intentionally.
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.
that was a mistake while prototyping the docs, shoudl not have been committed
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.
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.
Ah, it actually does already! deploydocs(; draft=true)



Yet another orphaned change from #29; if we want to evolve moist static energy, we need to include the buoyancy flux term in the energy tendency. See equation 15 in Pauluis 2008.
@kaiyuan-cheng probably worth revisiting the validation tests on this branch.