feat(P3): implement additional rates + some fixes#681
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
eeadbe5 to
1f5f9a8
Compare
1f5f9a8 to
c172fe9
Compare
fbd7881 to
e88d224
Compare
c172fe9 to
5e20908
Compare
e88d224 to
f5021ff
Compare
5e20908 to
85389a5
Compare
f5021ff to
5c10212
Compare
85389a5 to
07bcdda
Compare
5c10212 to
c06175b
Compare
07bcdda to
e3cf649
Compare
ec34417 to
d3091fb
Compare
f0ea9b8 to
e1dd6a8
Compare
haakon-e
left a comment
There was a problem hiding this comment.
comments to assist review.
| dn_ice_dt += n_dep | ||
| dq_ice_dt += m_dep | ||
| dq_rim_dt += m_dep | ||
| db_rim_dt += m_dep / 900 |
There was a problem hiding this comment.
dividing by 900 here is related to my note to self in src/parameters/MicrophysicsP3.jl. Need to check which ice densities I need.
d3091fb to
9a89238
Compare
e1dd6a8 to
3223573
Compare
9a89238 to
d11950c
Compare
3223573 to
14b07f3
Compare
d11950c to
74e6b25
Compare
14b07f3 to
d1764d5
Compare
9566603 to
995c1e6
Compare
6d77112 to
ad42162
Compare
| The ventilation factor is given by | ||
|
|
||
| ```math | ||
| F_v(D) = a_v + b_v ⋅ ∛Sc ⋅ √Re(D) |
There was a problem hiding this comment.
Could we use cbrt instead of ∛ ?
ad42162 to
f004be0
Compare
995c1e6 to
2505161
Compare
f004be0 to
b91bcdf
Compare
2505161 to
e6b719c
Compare
b91bcdf to
f49bff2
Compare
|
|
||
| # TODO: The parameterixation should return a rate, `∂N/∂t`, not number changes `ΔN` | ||
| inpc = CM_HetIce.INP_concentration_mean(heterogeneous, T) / ρ # [particles / kg air] | ||
| n_het = max(0, inpc - n_ice) # [particles / kg air] |
There was a problem hiding this comment.
I think this is fine. But we could also track how many particles were created through heterogeneous ice formation separately. And then cap heterogeneous ice formation based on that. As it is right now, we could exceed this threshold because of other ice multiplication processes, not just because we have used up all INPs
trontrytel
left a comment
There was a problem hiding this comment.
Left some comments. Looks great, and I'm sure we will have more fixes as we start running it in Atmos
e6b719c to
737a3ea
Compare
f49bff2 to
7ef4121
Compare
737a3ea to
4ecaff8
Compare
7ef4121 to
b86c198
Compare
4ecaff8 to
e6bcd40
Compare
b86c198 to
6badb1a
Compare
- To improve compilation of some GPU kernels, provide an unrolled implementation of logsumexp
new tendencies for bulk 2M scheme: - ice self-collection - ice sublimation / vapor deposition - empirical ice nucleation (Frostenberg mean) numerics: - add numeric epsilon for rime volume - squash a few bugs - improve docs
e6bcd40 to
e0496e3
Compare
6badb1a to
f7f4661
Compare
This pull request adds new rates for the 2M (with P3) microphysics scheme, including
Notably, these additional rates mean ice number is now adjusted by the P3 scheme.
Additional changes include
het_ice_nucleationandice_meltbydt