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

Add cutoff for dry/wet creep in water fugacity calculation #5808

Merged

Conversation

danieldouglas92
Copy link
Contributor

Note that this PR is an extension of PR #5805, it takes the test implemented in that PR and modifies it slightly to serve as a test for the functionality implemented in this PR.

If there is 0 bound water in the model domain and the user tries using the HK04 olivine hydration viscosity prefactor scheme there is a divide by 0 error. In Hirth & Kohlstaedt 2004, they discuss that when the hydration state of olivine is below 50 H/Si ppm (6.15e-4 wt% water), olivine deformation is consistent with dry conditions, and above 6.15e-4 wt% water olivine deformation is consistent with wet conditions. This PR adds a user parameter that defines this cutoff between dry and wet deformation, with the default value representing the value discussed in Hirth & Kohlstaedt 2004.

@bobmyhill
Copy link
Member

/rebuild

@danieldouglas92 danieldouglas92 force-pushed the add_cutoff_for_water_fugacity branch 3 times, most recently from bd6c75c to 8b97479 Compare June 6, 2024 14:11
Copy link
Contributor

@naliboff naliboff left a comment

Choose a reason for hiding this comment

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

@danieldouglas92 - thanks for the fix. Only one small suggested change (capitalization change). If it would help to get this merged for other PRs you are working on today, I'm happy to approve and then just submit a follow-up PR fixing the capitalization (everything else looks correct).

@danieldouglas92 danieldouglas92 force-pushed the add_cutoff_for_water_fugacity branch from 8b97479 to 0ae29c6 Compare June 6, 2024 16:56
@naliboff
Copy link
Contributor

naliboff commented Jun 6, 2024

@bobmyhill - this looks good from my end if you would like to take a final look before merging.

Copy link
Member

@bobmyhill bobmyhill left a comment

Choose a reason for hiding this comment

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

@danieldouglas92 the code is fine, but I think the user variable name is incorrect.

Also, the source code would be easier to read if the variable names followed the user variable names more closely. I've given some suggestions.

@danieldouglas92 danieldouglas92 force-pushed the add_cutoff_for_water_fugacity branch from 0ae29c6 to bb0103d Compare June 6, 2024 20:28
@danieldouglas92 danieldouglas92 force-pushed the add_cutoff_for_water_fugacity branch from bb0103d to dbaf378 Compare June 6, 2024 21:04
@bobmyhill bobmyhill merged commit 0c986cc into geodynamics:main Jun 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants