Skip to content

Conversation

@glwagner
Copy link
Member

This PR fleshes out our abstractions for computing the saturation vapor pressure. It adds the concept of a "surface" over which the saturation vapor pressure is to be computed, and builds support for

  • PlanarLiquidSurface
  • PlanarIceSurface
  • PlanarMixedPhaseSurface with PlanarMixedPhaseSurface.liquid_fraction

This encodes an expectation that we may also want to compute saturation vapor pressure over curved surfaces in the future.

Once we add docs and test for this, we can then start work on mixed phase saturation adjustment, which will use this new feature to compute the saturation specific humidity in a mixed phase situation.

@glwagner glwagner changed the title Build abstraction for mixed phase surfaces Build abstraction for computing saturation vapor pressure over mixed phase surfaces Nov 11, 2025
@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!

@glwagner glwagner requested a review from navidcy November 11, 2025 20:58
@glwagner glwagner added the thermodynamics 🔥 One of the easiest of all subjects in physics! label Nov 11, 2025
@glwagner
Copy link
Member Author

better tests in a future PR

@glwagner glwagner merged commit 3a93f4b into main Nov 11, 2025
9 checks passed
@glwagner glwagner deleted the glw/mixed-phase-saturation branch November 11, 2025 23:41
Δcˡ = cᵖᵛ - cˡ
```

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

Choose a reason for hiding this comment

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

I don't think you can do that in markdown

Suggested change
This difference ``\Delta c^l ≈`` $(round(1885 - 4181, digits=1)) J/(kg⋅K) is negative because
This difference ``\Delta c^l ≈`` -2296.0 J/(kg⋅K) is negative because

?

Copy link
Collaborator

@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.

Copy link
Member Author

Choose a reason for hiding this comment

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

yarg sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

thermodynamics 🔥 One of the easiest of all subjects in physics!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants