-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Isotopic relaxation timescales comparison #1494
base: main
Are you sure you want to change the base?
Conversation
PySDM/physics/isotope_kinetic_fractionation_factors/merlivat_and_jouzel_1979.py
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,2 @@ | |||
from PySDM.impl.null_physics_class import Null | |||
from .merlivat_and_jouzel_1979 import MerlivatAndJouzel1979 |
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.
worth including the following existing snippet in this physics
submodule:
PySDM/examples/PySDM_examples/Pierchala_et_al_2022/fig_4.ipynb
Lines 80 to 82 in 2918dda
"def eps_kin(*, theta, n, eps_diff, relative_humidity):\n", | |
" assert 0 <= n <= 1\n", | |
" return theta * n * eps_diff * (1 - relative_humidity)\n", |
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.
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.
that is the whole point of Formulae
class - to offer different variants of these formulae to the users, let's implement both Gat...
and Horita...
@@ -0,0 +1,15 @@ | |||
""" | |||
kinetic fractionation factor and epsilon kinetic |
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.
OK to mention that it is used in Pierchala et al., but class would best be named with the label of the paper it was introduced in
return 1 - eps_kinetic | ||
|
||
@staticmethod | ||
def eps_kinetic(*, theta, n, eps_diff, relative_humidity): |
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.
let's then remove it from the Pierchala notebook and use formulae.isotope_kinetic_fractionation_factors.eps_kinetic
there
|
||
class JouzelAndMerlivat1984: # pylint: disable=too-few-public-methods | ||
@staticmethod | ||
def alpha_kinetic(alpha_equilibrium, relative_humidity, D_heavy2D_light): |
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.
D might look like Deuterium - perhaps better to name it heavy_to_light_diffusivity_ratio
?
No description provided.