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

adding activity based dep to parcel #300

Merged
merged 1 commit into from
Feb 14, 2024
Merged

adding activity based dep to parcel #300

merged 1 commit into from
Feb 14, 2024

Conversation

amylu00
Copy link
Member

@amylu00 amylu00 commented Jan 30, 2024

Purpose

To-do

Content

  • sanity check for correct parameterization of J in docs
  • add water based deposition nucleation to parcel
  • compare water based dep with mohler's method in Deposition_Nucleation.jl

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

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (11fd264) 98.66% compared to head (3b31672) 98.66%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #300   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files          33       33           
  Lines        1047     1047           
=======================================
  Hits         1033     1033           
  Misses         14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amylu00 amylu00 force-pushed the al/dep_to_parc branch 2 times, most recently from 00aa944 to aa4c9ea Compare January 31, 2024 23:14
@amylu00 amylu00 force-pushed the al/dep_to_parc branch 3 times, most recently from 9666aca to 63c21c1 Compare February 13, 2024 00:20
@amylu00 amylu00 requested a review from trontrytel February 13, 2024 00:20
@amylu00 amylu00 force-pushed the al/dep_to_parc branch 2 times, most recently from 7bf7173 to d423664 Compare February 13, 2024 00:27
if "ActivityBasedDeposition" in ice_nucleation_modes
Δa_w = CMO.a_w_eT(tps, e, T) - CMO.a_w_ice(tps, T)
J_deposition = CMI_het.deposition_J(aerosol, Δa_w)
if "Monodisperse" in droplet_size_distribution
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should add some error or at least warning that we don't support any other distribution type here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that's a good idea. Do you think it's ok to have a printed statement or should we have a hard @assert? I can also open an issue to add more size distributions to some of the freezing modes

Copy link
Member

Choose a reason for hiding this comment

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

I think its ok to just add warnings, or whatever is the easiest. We will refactor parcel soon anyway.

@@ -99,6 +99,15 @@ function parcel_model(dY, Y, p, t)
end
dqi_dt_new_depo = dN_act_dt_depo * 4 / 3 * FT(π) * r_nuc^3 * ρ_ice / ρ_air
end
if "ActivityBasedDeposition" in ice_nucleation_modes
Copy link
Member

Choose a reason for hiding this comment

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

I think we are assuming here that someone will either run with MohlerAF MohlerRate or ActivityBased because each time we are doing dqi_dt_new_depo = ... and dN_act_dt_depo = ... instead of +=. I think thats fine, but maybe we could add some error warning to highlight that.

I think because the aerosol types don't overlap between Mohler and Activity based, one could try to run both at the same time

@trontrytel trontrytel self-requested a review February 14, 2024 05:29
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.

Looks great! Thank you for adding the plots with comparisons.

Apologies for merging the parameters update before this. Lmk if there is any friction with it from the package manager

@amylu00 amylu00 enabled auto-merge February 14, 2024 08:39
@amylu00 amylu00 merged commit 6d0de77 into main Feb 14, 2024
10 checks passed
@amylu00 amylu00 deleted the al/dep_to_parc branch October 22, 2024 17:39
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.

Add water activity based dust deposition parameterization Use droplets for immersion freezing in parcel
2 participants