-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
be325c0
to
12b9ad6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
00aa944
to
aa4c9ea
Compare
9666aca
to
63c21c1
Compare
7bf7173
to
d423664
Compare
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 |
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.
Maybe we should add some error or at least warning that we don't support any other distribution type here?
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.
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
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.
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 |
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.
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
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.
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
1fdd8ec
to
5536dc0
Compare
5536dc0
to
3b31672
Compare
Purpose
To-do
Content
Deposition_Nucleation.jl