Skip to content
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

Draft
wants to merge 58 commits into
base: main
Choose a base branch
from

Conversation

AgnieszkaZaba
Copy link
Collaborator

No description provided.

@slayoo slayoo changed the title Isotops timescales comparison Isotopic relaxation timescales comparison Jan 8, 2025
@AgnieszkaZaba AgnieszkaZaba self-assigned this Mar 17, 2025
@@ -0,0 +1,2 @@
from PySDM.impl.null_physics_class import Null
from .merlivat_and_jouzel_1979 import MerlivatAndJouzel1979
Copy link
Member

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:

"def eps_kin(*, theta, n, eps_diff, relative_humidity):\n",
" assert 0 <= n <= 1\n",
" return theta * n * eps_diff * (1 - relative_humidity)\n",

Copy link
Collaborator Author

@AgnieszkaZaba AgnieszkaZaba Apr 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true. I have a problem with understanding this formula. Same is in Horita et al 2008, but in Gat 2001 is different (in Gat is also mentioned in Pierchała as reference to this formula)

Screenshot 2025-04-08 at 20 04 27

Difference is that here it is formula for eps_diff

Copy link
Member

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
Copy link
Member

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):
Copy link
Member

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):
Copy link
Member

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants