-
Notifications
You must be signed in to change notification settings - Fork 242
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
Add cutoff for dry/wet creep in water fugacity calculation #5808
Conversation
/rebuild |
bd6c75c
to
8b97479
Compare
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.
@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).
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
8b97479
to
0ae29c6
Compare
@bobmyhill - this looks good from my end if you would like to take a final look before merging. |
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.
@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.
include/aspect/material_model/rheology/compositional_viscosity_prefactors.h
Outdated
Show resolved
Hide resolved
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
source/material_model/rheology/compositional_viscosity_prefactors.cc
Outdated
Show resolved
Hide resolved
0ae29c6
to
bb0103d
Compare
bb0103d
to
dbaf378
Compare
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.