fix: missing (1+qv) factor in calculation of derivative of rho_d when…#614
fix: missing (1+qv) factor in calculation of derivative of rho_d when…#614yoctoyotta1024 wants to merge 2 commits intoopen-atmos:mainfrom
Conversation
… accounting for water vapour rho_d(z) = rho(z) / (1 + qv(z)) therefore drho_d/dz = drho/dz / (1+ qv) - dqv/dz / (1 + qv)^2 _not_ drho_d/dz = drho/dz / (1+ qv) - dqv/dz / (1 + qv)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #614 +/- ##
=======================================
Coverage 92.69% 92.69%
=======================================
Files 39 39
Lines 1697 1697
=======================================
Hits 1573 1573
Misses 124 124 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Stale pull request message |
|
@slayoo did this ever get merged? Also in PySDM? |
|
@yoctoyotta1024 Maybe we can do similar test to this: https://github.com/open-atmos/PySDM/blob/main/tests/smoke_tests/kinematic_1d/shipway_and_hill_2012/test_initial_condition.py - |
|
@AgnieszkaZaba Ah yes nice spot thank you, I had forgotten about this 😅 |
… accounting for water vapour
rho_d(z) = rho(z) / (1 + qv(z))
therefore drho_d/dz = drho/dz / (1+ qv) - dqv/dz / (1 + qv)^2
not(!) drho_d/dz = drho/dz / (1+ qv) - dqv/dz / (1 + qv)