Skip to content

Conversation

@giordano
Copy link
Collaborator

No description provided.

@giordano giordano added the documentation 📜 Improvements or additions to documentation label Nov 11, 2025

Note that moist static energy density ``ρᵣ e`` and moisture density ``ρᵣ qᵗ``
are prognostic variables for `Breeze.AtmosphereModel` when using `AnelasticFormulation`,
are prognostic variables for [`Breeze.AtmosphereModel`](@ref) when using [`AnelasticFormulation`](@ref),
Copy link
Collaborator Author

@giordano giordano Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that documentation is currently failing because AnelasticFormulation doesn't have a docstring at all. Feels like it should?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can add here!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added something via fddf4f7 but feel free to enhance it!

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!


Note that moist static energy density ``ρᵣ e`` and moisture density ``ρᵣ qᵗ``
are prognostic variables for `Breeze.AtmosphereModel` when using `AnelasticFormulation`,
are prognostic variables for [`AtmosphereModel`](@ref) when using [`AnelasticFormulation`](@ref),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiosity, is there other formulations available? no, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not yet. we plan to implement a fully compressible formulation though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the fully compressible case, energy_density will be the total energy. There is also the possbility of supporting other energy variables through the formulation mechanism.

@navidcy
Copy link
Member

navidcy commented Nov 11, 2025

now I think I may have done a new PR... sorry for infiltrating this :(

@giordano
Copy link
Collaborator Author

It's ok, I appreciate the help!

@navidcy
Copy link
Member

navidcy commented Nov 11, 2025

Unless @glwagner wants to tweak the docstring, this is ready to go I think!

@@ -1,31 +1,30 @@
"""
$(TYPEDSIGNATURES)
saturation_vapor_pressure(T, thermo, phase::CondensedPhase)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for not using $(TYPEDSIGNATURES)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how that snuck in

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was changed by @navidcy in a9009c6. Was that because of the return type? If so, I'd suggest going back to $(TYPEDSIGNATURES) for the time being, and when JuliaDocs/DocStringExtensions.jl#179 lands (hopefully soon!) we can switch to that for the docstrings we want without return type.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'm doing that.


"""
$(TYPEDSIGNATURES)
saturation_specific_humidity(T, ρ, thermo, phase::CondensedPhase)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no don't know why this happendd

```

This difference ``\Delta c^l ≈`` $(round(1885 - 4181, digits=1)) J/(kg⋅K) is negative because
This difference ``\Delta c^l ≈`` -2296 J/(kg⋅K) is negative because
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_20251112-004143

Now that I look at the rendered code block in https://numericalearth.github.io/BreezeDocumentation/dev/thermodynamics/#Example:-liquid-water-and-ice-parameters, this should have been 2331? That's a bit far from your calculation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #150

@giordano giordano merged commit ab86169 into main Nov 12, 2025
10 checks passed
@giordano giordano deleted the mg/links-docs branch November 12, 2025 00:09
navidcy added a commit that referenced this pull request Nov 12, 2025
Corrected the value of Δc^l in thermodynamics documentation.

See #143 (comment)
navidcy added a commit that referenced this pull request Nov 12, 2025
* Fix Δc^l value in thermodynamics.md

Corrected the value of Δc^l in thermodynamics documentation.

See #143 (comment)

* Update thermodynamics.md for clarity on heat capacity

Clarified explanation of the heat capacity difference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📜 Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants