Use GeoParams rheologies in LaMEM.jl #40
Merged
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.
The GeoParams.jl package has many additional laboratory-derived creep laws implemented compared to LaMEM (much of which is thanks to @Dr3ven).
With this PR it becomes possible to directly use any of the GeoParams diffusion/dislocation creep laws in LaMEM:
A few remarks:
add_phase!
function internally sets the corresponding values by callingadd_geoparams_rheologies
:GeoParams
field:If you specify >1 of each type, the last one will be taken.
Internally, we simply translate the GeoParams values to the corresponding
Vn,En,n,Bn
andVd,Ed,Bd
values that LaMEM expected.We also added a function
stress_strainrate_0D
that can be used to perform 0D rheology experiments and create stress-strain rate plots by running LaMEM at low resolution for a range of strain rates.