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

parcel homogeneous freezing is linear by default #371

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions parcel/ParcelTendencies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,7 @@ function homogeneous_freezing(params::ABHOM, PSD, state)
e = eᵥ(qᵥ, p_air, R_air, Rᵥ)

Δa_w = CMO.a_w_eT(tps, e, T) - CMO.a_w_ice(tps, T)

if Δa_w < ips.homogeneous.Δa_w_min
@warn(
"Δa_w for Homogeneous freezing less than minimum. No freezing will occur."
)
return FT(0)
elseif Δa_w > ips.homogeneous.Δa_w_max
@warn("Clipping Δa_w to max Δa_w for Homogeneous freezing.")
Δa_w = ips.homogeneous.Δa_w_max
end

J = CMI_hom.homogeneous_J_cubic(ips.homogeneous, Δa_w)
J = CMI_hom.homogeneous_J_linear(ips.homogeneous, Δa_w)

return min(max(FT(0), J * Nₗ * PSD.Vₗ), Nₗ / const_dt)
end
Expand Down
Loading