-
Notifications
You must be signed in to change notification settings - Fork 241
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
Fix missing in.current_cell parameter entry. #6240
Open
MFraters
wants to merge
4
commits into
geodynamics:main
Choose a base branch
from
MFraters:CPO_fix_missing_in_current_cell_parameter
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.
Open
Changes from all commits
Commits
Show all changes
4 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 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,5 @@ | ||||||
Fixed: Adds current cell to material model intpust | ||||||
in the cpo particle property to fix the Olivine: Karato | ||||||
2008 mineral type. Also added a test to test this feature. | ||||||
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.
Suggested change
|
||||||
<br> | ||||||
(Menno Fraters and Daniel Douglas, 2025/02/25) |
This file contains 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
This file contains 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
This file contains 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,147 @@ | ||
set Dimension = 3 | ||
set Pressure normalization = surface | ||
set Surface pressure = 0 | ||
set Nonlinear solver scheme = single Advection, no Stokes | ||
set End time = 1e5 | ||
set Use years in output instead of seconds = false | ||
set Output directory = cpo_karato_simple_shearbox | ||
set Maximum time step = 1e4 | ||
|
||
subsection Compositional fields | ||
set Number of fields = 1 | ||
set Names of fields = water | ||
set Compositional field methods = static | ||
end | ||
|
||
subsection Initial composition model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Variable names = x,y,z | ||
set Function expression = 1000*x + 500 | ||
end | ||
end | ||
|
||
subsection Gravity model | ||
set Model name = vertical | ||
|
||
subsection Vertical | ||
set Magnitude = 10 | ||
end | ||
end | ||
|
||
subsection Geometry model | ||
set Model name = box | ||
|
||
subsection Box | ||
set X extent = 1 | ||
set Y extent = 1 | ||
set Z extent = 1 | ||
set Box origin X coordinate = -0.500 | ||
set Box origin Y coordinate = -0.500 | ||
set Box origin Z coordinate = -0.500 | ||
end | ||
end | ||
|
||
subsection Initial temperature model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Function expression = 1200 ## Annotation: Temperature function | ||
end | ||
end | ||
|
||
subsection Boundary temperature model | ||
set List of model names = box | ||
set Fixed temperature boundary indicators = bottom, top, left, right, front, back | ||
|
||
subsection Box | ||
set Bottom temperature = 1200 | ||
set Left temperature = 1200 | ||
set Right temperature = 1200 | ||
set Top temperature = 1200 | ||
set Front temperature = 1200 | ||
set Back temperature = 1200 | ||
end | ||
end | ||
|
||
subsection Prescribed Stokes solution | ||
set Model name = function | ||
|
||
subsection Velocity function | ||
set Variable names = x,y,z,t | ||
set Function expression = z*1e-5;0;0 ## Annotation set velocity condition | ||
end | ||
end | ||
|
||
|
||
# Set the viscosity to be 1.75e13, which results in a differential stress | ||
# of 350 MPa when combined with the prescribed shear conditions. | ||
subsection Material model | ||
set Model name = visco plastic | ||
subsection Visco Plastic | ||
set Maximum viscosity = 1.75e13 | ||
set Minimum viscosity = 1.75e13 | ||
set Densities = 3300 | ||
end | ||
end | ||
|
||
# No need to refine the mesh in this case | ||
subsection Mesh refinement | ||
set Initial global refinement = 0 | ||
set Initial adaptive refinement = 0 | ||
set Time steps between mesh refinement = 10000 | ||
end | ||
|
||
|
||
|
||
subsection Solver parameters | ||
set Temperature solver tolerance = 1e-10 | ||
end | ||
|
||
subsection Particles | ||
set List of particle properties = crystal preferred orientation | ||
set Particle generator name = reference cell | ||
|
||
subsection Generator | ||
subsection Reference cell | ||
set Number of particles per cell per direction = 5 | ||
end | ||
end | ||
|
||
subsection Crystal Preferred Orientation | ||
set Random number seed = 301 | ||
set Number of grains per particle = 5 | ||
set Property advection method = Backward Euler | ||
set Property advection tolerance = 1e-15 | ||
set CPO derivatives algorithm = D-Rex 2004 | ||
|
||
subsection Initial grains | ||
set Minerals = Olivine: Karato 2008 | ||
set Volume fractions minerals = 1.0 | ||
end | ||
|
||
subsection D-Rex 2004 | ||
set Mobility = 125 | ||
set Stress exponents = 3.5 | ||
set Exponents p = 1.5 | ||
set Nucleation efficiency = 5 | ||
set Threshold GBS = 0.3 | ||
end | ||
end | ||
|
||
subsection CPO Bingham Average | ||
set Random number seed = 200 | ||
end | ||
end | ||
|
||
|
||
subsection Postprocess | ||
set List of postprocessors = particles | ||
|
||
subsection Particles | ||
set Time between data output = 1e5 | ||
set Data output format = gnuplot | ||
set Exclude output properties = a_cosine_matrix, volume fraction, integrated strain invariant, crystal preferred orientation, cpo elastic tensor, cpo bingham average, elastic tensor decomposition | ||
end | ||
end |
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.