Skip to content

Commit

Permalink
Added ice crystal temperature correction factor for vapour deposition
Browse files Browse the repository at this point in the history
  • Loading branch information
tluettm committed Oct 8, 2024
1 parent 75a61e5 commit 3a8cabc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions PySDM/backends/impl_numba/methods/deposition_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def body(
temperature = ambient_temperature[cid]
pressure = ambient_total_pressure[cid]
rho = ambient_dry_air_density[cid]
Rv = formulae.constants.Rv
pvs_ice = formulae.saturation_vapour_pressure__pvs_ice(temperature)
latent_heat_sub = formulae.latent_heat_sublimation__ls(temperature)

capacity = formulae.diffusion_ice_capacity__capacity( diameter )

Expand All @@ -64,18 +67,20 @@ def body(
lambdaK = formulae.diffusion_ice_kinetics__lambdaK(temperature, pressure)
thermal_conductivity = formulae.diffusion_ice_kinetics__K(Ka_const, radius, lambdaK, temperature, rho)

latent_heat_sub = formulae.latent_heat_sublimation__ls(temperature)


howell_factor = 1. / ((latent_heat_sub / Rv / temperature - 1.) * latent_heat_sub * diffusion_coefficient / temperature / thermal_conductivity + Rv * temperature / pvs_ice)
# print( f" {howell_factor=}, {latent_heat_sub= }, {Rv=}, {Dv_const=}, {diffusion_coefficient=}, {Ka_const=}, {thermal_conductivity=}, {pvs_ice=}")

saturation_ratio_ice = (
ambient_humidity[cid] / ambient_water_activity[cid]
)

rho_vs_ice = (
formulae.saturation_vapour_pressure__pvs_ice(temperature)
/ formulae.constants.Rv
pvs_ice
/ Rv
/ temperature
)

dm_dt = (
4
* np.pi
Expand Down

0 comments on commit 3a8cabc

Please sign in to comment.