Skip to content

add Bolin number formulae #1669

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions PySDM/physics/isotope_relaxation_timescale/bolin_1958.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Timescale derived for tritium with assumption of zero ambient concentration - see text above
Table 1 [Bolin 1958](https://digitallibrary.un.org/record/3892725)"""
"""Bolin number"""

import numpy as np

Expand All @@ -11,5 +10,5 @@ def __init__(self, const):
assert np.isfinite(const.BOLIN_ISOTOPE_TIMESCALE_COEFF_C1)

@staticmethod
def tau(const, dm_dt_over_m):
return 1 / (const.BOLIN_ISOTOPE_TIMESCALE_COEFF_C1 * dm_dt_over_m)
def bolin_number(const):
return const.BOLIN_ISOTOPE_TIMESCALE_COEFF_C1
26 changes: 26 additions & 0 deletions PySDM/physics/isotope_relaxation_timescale/zaba_et_al.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@ def tau(
* D_iso
* (S * (alpha * R_vap / R_liq - 1) + (S - 1) / (1 + D * Fk))
)

@staticmethod
def bolin_number(
const,
diffusivity_ratio_heavy_to_light,
alpha,
rho_s,
Fd,
Fk,
saturation,
R_vap,
R_liq,
): # pylint: disable=too-many-arguments
"""
Bolin number (Bo) - c1 in Bolin 1958
"""
return (
alpha
/ diffusivity_ratio_heavy_to_light
/ (
(1 + const.rho_w / rho_s * Fk / Fd)
* saturation
* (alpha * R_vap / R_liq - 1)
+ (saturation - 1)
)
)
7 changes: 7 additions & 0 deletions PySDM/physics/trivia.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,10 @@ def poissonian_avoidance_function(r, dt):
process with a constant rate `r`
"""
return np.exp(-r * dt)

@staticmethod
def tau(Bo, dm_dt_over_m):
"""
Timescale derived for tritium with assumption of zero ambient concentration - see text above
Table 1 [Bolin 1958](https://digitallibrary.un.org/record/3892725)"""
return 1 / Bo / dm_dt_over_m
Loading