Skip to content

other isotopes in isotopic fractionation dynamic; isotopic ratio evolution in a single-timestep simulation using Bolin number (with plots depicting Gedzelman & Arnold condition for different droplet concentrations)#1834

Open
AgnieszkaZaba wants to merge 59 commits into
open-atmos:mainfrom
AgnieszkaZaba:bo-with-simulation

Conversation

@AgnieszkaZaba
Copy link
Copy Markdown
Collaborator

No description provided.

@slayoo slayoo changed the title isotopic ratio evolution in simulation; Bolin number isotopic ratio evolution in a single-timestep simulation using Bolin number (with plots depicting Gedzelman & Arnold condition for different droplet concentrations) Apr 29, 2026
@AgnieszkaZaba AgnieszkaZaba requested a review from slayoo May 13, 2026 17:55
@AgnieszkaZaba AgnieszkaZaba changed the title isotopic ratio evolution in a single-timestep simulation using Bolin number (with plots depicting Gedzelman & Arnold condition for different droplet concentrations) other isotopes in isotopic fractionation dynamic; isotopic ratio evolution in a single-timestep simulation using Bolin number (with plots depicting Gedzelman & Arnold condition for different droplet concentrations) May 13, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

❌ Patch coverage is 90.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.96%. Comparing base (e793ea2) to head (5f50c34).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ySDM/physics/isotope_ratio_evolution/zaba_et_al.py 57.14% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1834   +/-   ##
=======================================
  Coverage   86.96%   86.96%           
=======================================
  Files         417      418    +1     
  Lines       10662    10688   +26     
=======================================
+ Hits         9272     9295   +23     
- Misses       1390     1393    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread examples/PySDM_examples/Gedzelman_and_Arnold_1994/fig_2.ipynb
Comment on lines +155 to +167
if isotope == "2H":
D_ratio = ff.isotope_diffusivity_ratios__ratio_2H_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_2H(T)
if isotope == "3H":
D_ratio = ff.isotope_diffusivity_ratios__ratio_3H_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_3H(T)
elif isotope == "18O":
D_ratio = ff.isotope_diffusivity_ratios__ratio_18O_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_18O(T)
elif isotope == "17O":
D_ratio = ff.isotope_diffusivity_ratios__ratio_17O_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_17O(T)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if isotope == "2H":
D_ratio = ff.isotope_diffusivity_ratios__ratio_2H_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_2H(T)
if isotope == "3H":
D_ratio = ff.isotope_diffusivity_ratios__ratio_3H_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_3H(T)
elif isotope == "18O":
D_ratio = ff.isotope_diffusivity_ratios__ratio_18O_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_18O(T)
elif isotope == "17O":
D_ratio = ff.isotope_diffusivity_ratios__ratio_17O_heavy_to_light(T)
alpha = ff.isotope_equilibrium_fractionation_factors__alpha_l_17O(T)
D_ratio = getattr(ff, f"isotope_diffusivity_ratios__ratio_{isotope}_heavy_to_light")(T)
alpha = getattr(ff, f"isotope_equilibrium_fractionation_factors__alpha_l_{isotope}")(T)


# pylint: disable=too-many-arguments
@staticmethod
def saturation_for_zero_dR_condition(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the signature here is different than in GedzelmanAndArnold1994:

def saturation_for_zero_dR_condition(
_, diff_rat_light_to_heavy, iso_ratio_x, iso_ratio_r, iso_ratio_v, b, alpha_w
):

if it was intended, better to rename the function.
otherwise, best to retain uniform signatures across function of the same name within one "phycis folder"

@@ -22,15 +22,13 @@ def tau(

@staticmethod
def bolin_number(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ditto - likely best to add unused parameters to Bolin's Bolin number here:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it seems not mentioned anywhere in the notebook header that, unlike in the paper, we neglect ventillation effects - likely worth mentioning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants