-
Notifications
You must be signed in to change notification settings - Fork 267
Fix rheology in continental extension (WIP) #6903
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
Open
lhy11009
wants to merge
3
commits into
geodynamics:main
Choose a base branch
from
lhy11009:edit_continental_extension
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+167
−2
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
165 changes: 165 additions & 0 deletions
165
cookbooks/continental_extension/continental_extension_rheology.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, feel free to check the Jupyter notebook I attached. Here I also added markdown blocks to explain what I did. One potential problem is the 1 MPa constant water fugacity I assumed for the wet anorthite flow law. |
||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "956323c4", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "# Conversion of Continental Material Flow-Law Prefactors from Experiments to ASPECT" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": null, | ||
| "id": "a1c36c8f", | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "import numpy as np" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "a45a578c", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "# Wet Quartzite from Gleason and Tullis (1995)\n", | ||
| "\n", | ||
| "The total conversion factor includes two parts.\n", | ||
| "\n", | ||
| "First, the factor change due to unit conversion from the experimental formulation \n", | ||
| "($\\mu$m → m and MPa → Pa):\n", | ||
| "\n", | ||
| "$$\n", | ||
| "F_{\\text{unit}} = 10^{-6n - 6p}\n", | ||
| "$$\n", | ||
| "\n", | ||
| "Second, the factor change due to the use of **shear strain rate** in the experiments\n", | ||
| "versus the **second invariant of the strain rate tensor** used in ASPECT:\n", | ||
| "\n", | ||
| "$$\n", | ||
| "F_{s} = \\frac{3^{\\frac{n+1}{2}}}{2}\n", | ||
| "$$\n", | ||
| "\n", | ||
| "Here, $n$ is the reported stress exponent and $p$ is the reported grain-size exponent.\n", | ||
| "\n", | ||
| "The prefactor used in ASPECT and the experimental prefactor are therefore related by\n", | ||
| "\n", | ||
| "$$\n", | ||
| "A_{\\text{ASPECT}} = F_{\\text{unit}} \\, F_{s} \\, A_{\\text{exp}}\n", | ||
| "$$" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": null, | ||
| "id": "ae6c84d6", | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "\n", | ||
| "# Gleason and Tullis (1995) - Wet Quartzite - Dislocation Creep\n", | ||
| "pfct_gt95_wqtz_disl_rprt = 1.1e-4 # Original reported prefactor in units of MPa^-n micrometers^m\n", | ||
| "sexp_gt95_wqtz_disl_rprt = 4.0 # Original reported stress exponent\n", | ||
| "gexp_gt95_wqtz_disl_rprt = 0 # Original reported grain size exponent\n", | ||
| "\n", | ||
| "# Convert prefactor to units of Pa^-n meters^m s^-1\n", | ||
| "pfct_gt95_wqtz_disl_unit = (pfct_gt95_wqtz_disl_rprt) * \\\n", | ||
| " (1.e-6**sexp_gt95_wqtz_disl_rprt) * \\\n", | ||
| " (1.e-6**gexp_gt95_wqtz_disl_rprt)\n", | ||
| "\n", | ||
| "# Calculate prefactor scaling term\n", | ||
| "pfct_gt95_wqtz_disl_sfac = 3.**((sexp_gt95_wqtz_disl_rprt+1.)/2.) / 2\n", | ||
| "\n", | ||
| "\n", | ||
| "# Calculated modified prefactor term for ASPECT\n", | ||
| "pfct_gt95_wqtz_disl_aspt = pfct_gt95_wqtz_disl_unit * pfct_gt95_wqtz_disl_sfac\n", | ||
| "\n", | ||
| "print('')\n", | ||
| "print('Gleason and Tullis (1995) Wet Quarzite Dislocation Prefactor Scaling = ', pfct_gt95_wqtz_disl_sfac)\n", | ||
| "print('Gleason and Tullis (1995) Wet Quarzite Dislocation Prefactor ASPECT = ', pfct_gt95_wqtz_disl_aspt)\n", | ||
| "print('')" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "0c0bc1b5", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "# Wet Anorthite from Rybacki et al. (2006)\n", | ||
| "\n", | ||
| "This study uses **water fugacity** explicitly in the original flow law formulation. \n", | ||
| "Therefore, we need to include an additional factor associated with the water fugacity term. \n", | ||
| "The simplest approach is to assume a constant water fugacity:\n", | ||
| "\n", | ||
| "$$\n", | ||
| "F_{H_2O} = f_{H_2O}^{\\,r}\n", | ||
| "$$\n", | ||
| "\n", | ||
| "Here, $f_{H_2O}$ is the water fugacity, taken as a constant value of **1 MPa**, and $r$ is the reported water fugacity exponent.\n", | ||
| "\n", | ||
| "The other two factors have the same formulation as in the previous case. \n", | ||
| "Therefore, the prefactor used in ASPECT and the experimental prefactor are related by\n", | ||
| "\n", | ||
| "$$\n", | ||
| "A_{\\text{ASPECT}} = F_{H_2O} \\, F_{\\text{unit}} \\, F_s \\, A_{\\text{exp}}\n", | ||
| "$$" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": null, | ||
| "id": "336177d6", | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "# Rybacki et al. (2006) - Wet Anorthite - Dislocation Creep\n", | ||
| "pfct_ry06_want_disl_rprt = 10.**(0.2) # Original reported log(prefactor) in units of MPa^(-n-r) micrometers^m\n", | ||
| "sexp_ry06_want_disl_rprt = 3.0 # Original reported stress exponent\n", | ||
| "gexp_ry06_want_disl_rprt = 0 # Original reported grain size exponent\n", | ||
| "wfug_ry06_want_disl_rprt = 1 # Original reported water fugacity\n", | ||
| "constant_fug = 1 # 1MPa\n", | ||
| "\n", | ||
| "# Convert prefactor to units of Pa^(-n-r) meters^m s^-1\n", | ||
| "pfct_ry06_want_disl_unit = pfct_ry06_want_disl_rprt * \\\n", | ||
| " (1.e-6**(sexp_ry06_want_disl_rprt)) * \\\n", | ||
| " (1.e-6**gexp_ry06_want_disl_rprt)\n", | ||
| "\n", | ||
| "# Calculate water fugacity term\n", | ||
| "pfct_ry06_want_disl_ffac = constant_fug**wfug_ry06_want_disl_rprt\n", | ||
| "\n", | ||
| "# Calculate prefactor scaling term\n", | ||
| "pfct_ry06_want_disl_sfac = 3.**((sexp_ry06_want_disl_rprt+1.)/2.) / 2.0\n", | ||
| "\n", | ||
| "# Calculated modified prefactor term for ASPECT\n", | ||
| "pfct_ry06_want_disl_aspt = pfct_ry06_want_disl_ffac * pfct_ry06_want_disl_unit * pfct_ry06_want_disl_sfac\n", | ||
| "\n", | ||
| "print('')\n", | ||
| "print('Rybacki et al. (2006) Wet Anorthite Dislocation Prefactor Scaling = ', pfct_ry06_want_disl_sfac)\n", | ||
| "print('Rybacki et al. (2006) Wet Anorthite Dislocation Prefactor ASPECT = ', pfct_ry06_want_disl_aspt)\n", | ||
| "print('')" | ||
| ] | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "kernelspec": { | ||
| "display_name": "hmgeolib", | ||
| "language": "python", | ||
| "name": "python3" | ||
| }, | ||
| "language_info": { | ||
| "codemirror_mode": { | ||
| "name": "ipython", | ||
| "version": 3 | ||
| }, | ||
| "file_extension": ".py", | ||
| "mimetype": "text/x-python", | ||
| "name": "python", | ||
| "nbconvert_exporter": "python", | ||
| "pygments_lexer": "ipython3", | ||
| "version": "3.9.23" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5 | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Here is the real change.