-
Notifications
You must be signed in to change notification settings - Fork 258
Add GMG global coarsening test for 2d shell. [WIP] #6752
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
quangx
wants to merge
3
commits into
geodynamics:main
Choose a base branch
from
quangx:global_coarsening_TEST
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
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
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,82 @@ | ||
| # 2d shell with no flux top boundary to test GMG | ||
|
|
||
|
|
||
| set Dimension = 2 | ||
| set Use years instead of seconds = true | ||
| set End time = 1.0e5 | ||
| set Output directory = output-shell_2d_gmg | ||
|
|
||
| subsection Material model | ||
| set Model name = simple | ||
| set Material averaging = harmonic average only viscosity | ||
|
|
||
| subsection Simple model | ||
| set Thermal expansion coefficient = 4e-5 | ||
| set Viscosity = 1e22 | ||
| end | ||
| end | ||
|
|
||
| subsection Geometry model | ||
| set Model name = spherical shell | ||
|
|
||
| subsection Spherical shell | ||
| set Inner radius = 3481000 | ||
| set Outer radius = 6336000 | ||
| set Opening angle = 360 | ||
| end | ||
| end | ||
|
|
||
| subsection Boundary velocity model | ||
| set Zero velocity boundary indicators = inner | ||
| set Tangential velocity boundary indicators = top | ||
| end | ||
|
|
||
| subsection Heating model | ||
| set List of model names = shear heating | ||
| end | ||
|
|
||
| subsection Boundary temperature model | ||
| set Fixed temperature boundary indicators = top, bottom | ||
| set List of model names = spherical constant | ||
|
|
||
| subsection Spherical constant | ||
| set Inner temperature = 4273 | ||
| set Outer temperature = 973 | ||
| end | ||
| end | ||
|
|
||
| subsection Initial temperature model | ||
| set Model name = spherical hexagonal perturbation | ||
| end | ||
|
|
||
| subsection Gravity model | ||
| set Model name = ascii data | ||
| end | ||
|
|
||
| subsection Mesh refinement | ||
| set Initial global refinement = 2 | ||
| set Initial adaptive refinement = 2 | ||
| set Strategy = temperature | ||
| set Time steps between mesh refinement = 15 | ||
| end | ||
|
|
||
| subsection Postprocess | ||
| set List of postprocessors = visualization, velocity statistics, temperature statistics, heat flux statistics, depth average | ||
|
|
||
| subsection Visualization | ||
| set Output format = vtu | ||
| set Time between graphical output = 1e6 | ||
| set Number of grouped files = 0 | ||
| end | ||
|
|
||
| subsection Depth average | ||
| set Time between graphical output = 1e5 | ||
| end | ||
| end | ||
|
|
||
| subsection Solver parameters | ||
| subsection Stokes solver parameters | ||
| set Stokes solver type = block GMG | ||
| set Stokes GMG type = global coarsening | ||
| end | ||
| end |
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,43 @@ | ||
|
|
||
| Number of active cells: 192 (on 3 levels) | ||
| Number of degrees of freedom: 2,832 (1,728+240+864) | ||
|
|
||
| *** Timestep 0: t=0 years, dt=0 years | ||
| Solving temperature system... 0 iterations. | ||
| Solving Stokes system (GMG-GC)... 15+0 iterations. | ||
|
|
||
| Number of active cells: 300 (on 4 levels) | ||
| Number of degrees of freedom: 4,782 (2,928+390+1,464) | ||
|
|
||
| *** Timestep 0: t=0 years, dt=0 years | ||
| Solving temperature system... 0 iterations. | ||
| Solving Stokes system (GMG-GC)... 33+0 iterations. | ||
|
|
||
| Number of active cells: 444 (on 4 levels) | ||
| Number of degrees of freedom: 6,888 (4,224+552+2,112) | ||
|
|
||
| *** Timestep 0: t=0 years, dt=0 years | ||
| Solving temperature system... 0 iterations. | ||
| Solving Stokes system (GMG-GC)... 15+0 iterations. | ||
|
|
||
| Postprocessing: | ||
| Writing graphical output: output-shell_2d_gmg_gc/solution/solution-00000 | ||
| RMS, max velocity: 0.0795 m/year, 0.129 m/year | ||
| Temperature min/avg/max: 973 K, 2463 K, 4273 K | ||
| Heat fluxes through boundary parts: 1.127e+06 W, 2.941e+06 W | ||
| Writing depth average: output-shell_2d_gmg_gc/depth_average | ||
|
|
||
| *** Timestep 1: t=100000 years, dt=100000 years | ||
| Solving temperature system... 8 iterations. | ||
| Solving Stokes system (GMG-GC)... 11+0 iterations. | ||
|
|
||
| Postprocessing: | ||
| RMS, max velocity: 0.0856 m/year, 0.138 m/year | ||
| Temperature min/avg/max: 973 K, 2463 K, 4273 K | ||
| Heat fluxes through boundary parts: -3.351e+05 W, 4.462e+06 W | ||
| Writing depth average: output-shell_2d_gmg_gc/depth_average | ||
|
|
||
| Termination requested by criterion: end time | ||
|
|
||
|
|
||
|
|
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.
If you remove the assert, just remove it. The current state of the code base should represent the current state, not some previously present assertion -- that is just bound to confuse readers. If you think the code is now well tested, let's just remove the assertion. If you don't think that the code is well tested, then of course we should not remove the assertion.