-
Notifications
You must be signed in to change notification settings - Fork 2
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 Clausius_Clapeyron_relation #112
Conversation
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.
Please introduce a weighted_latent_heat
function and go through the thermodynamics code to use this consistently (we are currently defining the same quantity multiple times). (@charleskawczynski).
Please also add a unit test that numerically computes the derivative of q_vap_sat w.r.t. temperature and compares it with this analytical formulation, to ensure consistency.
3209135
to
7c4adc5
Compare
7c4adc5
to
57a0ede
Compare
@tapios, I think this is ready to go if you approve. Once this is merged, I'll rebase the other PRs and we should hopefully be able to close out a bunch of the open issues. |
Codecov ReportBase: 94.00% // Head: 93.55% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
==========================================
- Coverage 94.00% 93.55% -0.45%
==========================================
Files 8 8
Lines 1017 1024 +7
==========================================
+ Hits 956 958 +2
- Misses 61 66 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
LGTM. Thanks!
fb6681f
to
291e1c6
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.
Looking good. Thank you, @charleskawczynski!
Update src/relations.jl Co-authored-by: Tapio Schneider <tapio@caltech.edu> Fix doc strings liquid_frac -> lambda for consistency Update ∂q_vap_sat_∂T Add weighted_latent_heat, simplify ∂q_vap_sat_∂T Use weighted_latent_heat in ∂e_int_∂T Use ForwardDiff for test Update src/relations.jl Co-authored-by: Tapio Schneider <tapio@caltech.edu> Inline ice_frac Use relative tolerance for ∂q_vap_sat_∂T Fix ∂q_vap_sat_∂T ForwardDiff test Add docs Add ForwardDiff to docs env Fix docs
f98bab5
to
304e398
Compare
bors r+ |
Add the partial derivative of saturation vapor specific humidity with temperature given by the Clausius Clapeyron relation