Skip to content
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

Nonequilibrium in the parcel model #508

Merged
merged 18 commits into from
Feb 19, 2025
Merged

Nonequilibrium in the parcel model #508

merged 18 commits into from
Feb 19, 2025

Conversation

oalcabes
Copy link
Contributor

Purpose

To-do

Content


  • I have read and checked the items on the review checklist.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.60%. Comparing base (2398d4f) to head (9e93473).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #508   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files          42       42           
  Lines        1615     1615           
=======================================
  Hits         1544     1544           
  Misses         71       71           
Components Coverage Δ
src 97.23% <ø> (ø)
ext 69.79% <ø> (ø)

@oalcabes oalcabes marked this pull request as ready for review January 30, 2025 00:52
@oalcabes oalcabes requested a review from trontrytel January 30, 2025 00:52
@@ -82,7 +82,29 @@ struct CondParams{FT} <: CMP.ParametersType{FT}
const_dt::FT
end

struct NonEqCondParams_Anna{FT} <: CMP.ParametersType{FT}
Copy link
Member

Choose a reason for hiding this comment

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

Could we avoid my name? We could name it NonEqCondParams_simple (or stupid). Or just not include it alltogether and just show the MM2015 option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great -- I'm planning to just rename it "simple." I don't mind keeping it in the parcel just for testing reasons. But if we want to eventually get rid of it in the Noneq function all together, we can do that one day.


cond_rate = MNE.conv_q_vap_to_q_liq_ice_MM2015(liquid, tps, q, ρ_air, T)

# using same limiter as ClimaAtmos for now
Copy link
Member

Choose a reason for hiding this comment

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

Would be good to do some testing and see if we need the limiter. Maybe we don't? Or if we do, maybe we can limit just by dt?

)

# solve ODE
local sol = run_parcel(IC, FT(0), t_max, params)
Copy link
Member

Choose a reason for hiding this comment

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

It would be neat to compare all two (or three depending on if you kick out the simple one) together. And it would be even neater to add a couple of words and the resulting plot to our docs, along with other parcel examples. This way at least your example will be run when we are building the docs during PRs.

@trontrytel trontrytel self-requested a review February 7, 2025 00:33
Copy link
Member

@trontrytel trontrytel left a comment

Choose a reason for hiding this comment

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

I left a couple of comments. Mostly about removing my name and trying to add the resulting plot to the docs somewhere.

LGTM otherwise! Thank you. Just remember to squash and rebase before merging

@oalcabes oalcabes merged commit b5fd05d into main Feb 19, 2025
12 checks passed
@oalcabes oalcabes deleted the oa/noneq_parcel_clean branch February 19, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants