-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6080 from gassmoeller/fix_cookbook_check
Fix cookbooks and benchmarks
- Loading branch information
Showing
10 changed files
with
118 additions
and
144 deletions.
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
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
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
2 changes: 1 addition & 1 deletion
2
cookbooks/kinematically_driven_subduction_2d/kinematically_driven_subduction_2d_case2b.prm
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 |
---|---|---|
@@ -1,124 +1,19 @@ | ||
############### Global parameters | ||
# This test makes sure the cookbook crustal_model_3D runs | ||
# as expected. | ||
|
||
set Dimension = 3 | ||
set Start time = 0 | ||
set End time = 0 | ||
set Use years in output instead of seconds = true | ||
set CFL number = .5 | ||
set Nonlinear solver scheme = single Advection, iterated Stokes | ||
set Nonlinear solver tolerance = 1e-9 | ||
set Max nonlinear iterations = 2 | ||
set Pressure normalization = no | ||
|
||
############### Parameters describing the model | ||
|
||
subsection Geometry model | ||
set Model name = box | ||
|
||
subsection Box | ||
set X extent = 128e3 | ||
set Y extent = 96e3 | ||
set Z extent = 16e3 | ||
set X repetitions = 8 | ||
set Y repetitions = 3 | ||
end | ||
end | ||
|
||
# We prescribe a diverging velocity field on the left, right and bottom boundary | ||
# such that two crustal faults form with an offset between them. | ||
subsection Boundary velocity model | ||
set Tangential velocity boundary indicators = front, back | ||
set Prescribed velocity boundary indicators = left: function, right:function, bottom:function | ||
|
||
subsection Function | ||
set Variable names = x,y,z | ||
set Function constants = cm=0.01, year=1 | ||
set Function expression = if (x<56e3 && y<=48e3 | x<72e3 && y>48e3, -1*cm/year, 1*cm/year) ; 0 ; 0 | ||
end | ||
end | ||
|
||
subsection Mesh deformation | ||
set Mesh deformation boundary indicators = top: free surface | ||
|
||
# Advecting the free surface vertically rather than | ||
# in the surface normal direction can result in a | ||
# more stable mesh when the deformation is large | ||
subsection Free surface | ||
set Surface velocity projection = vertical | ||
end | ||
end | ||
|
||
subsection Material model | ||
set Model name = drucker prager | ||
|
||
subsection Drucker Prager | ||
set Reference density = 2800 | ||
|
||
subsection Viscosity | ||
set Minimum viscosity = 1e19 | ||
set Maximum viscosity = 1e25 | ||
set Reference strain rate = 1e-20 | ||
set Angle of internal friction = 30 | ||
set Cohesion = 20e6 | ||
end | ||
end | ||
end | ||
|
||
subsection Gravity model | ||
set Model name = vertical | ||
|
||
subsection Vertical | ||
set Magnitude = 9.81 | ||
end | ||
end | ||
include $ASPECT_SOURCE_DIR/cookbooks/crustal_deformation/crustal_model_3D.prm | ||
|
||
############### Parameters describing the temperature field | ||
# As above, there is no need to set anything for the | ||
# temperature boundary conditions. | ||
|
||
subsection Initial temperature model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Function expression = 0 | ||
end | ||
end | ||
|
||
############### Parameters describing the discretization | ||
# The following parameters describe how often we want to refine | ||
# the mesh globally and adaptively, what fraction of cells should | ||
# be refined in each adaptive refinement step, and what refinement | ||
# indicator to use when refining the mesh adaptively. | ||
set End time = 0 | ||
set Max nonlinear iterations = 100 | ||
|
||
subsection Mesh refinement | ||
set Initial adaptive refinement = 0 | ||
set Initial global refinement = 1 | ||
set Refinement fraction = 0.9 | ||
set Strategy = strain rate | ||
set Coarsening fraction = 0.05 | ||
set Minimum refinement level = 1 | ||
set Initial global refinement = 0 | ||
set Minimum refinement level = 0 | ||
end | ||
|
||
############### Parameters describing what to do with the solution | ||
# The final section allows us to choose which postprocessors to | ||
# run at the end of each time step. We select to generate graphical | ||
# output that will consist of the primary variables (velocity, pressure, | ||
# temperature and the compositional fields) as well as the density and | ||
# viscosity. We also select to compute some statistics about the | ||
# velocity field. | ||
|
||
subsection Postprocess | ||
set List of postprocessors = visualization, velocity statistics, topography, pressure statistics | ||
|
||
subsection Visualization | ||
set Interpolate output = false | ||
set List of output variables = density, viscosity, strain rate, error indicator | ||
end | ||
end | ||
|
||
subsection Solver parameters | ||
subsection Stokes solver parameters | ||
set Linear solver tolerance = 1e-9 | ||
set Number of cheap Stokes solver steps = 0 | ||
end | ||
set List of postprocessors = velocity statistics, topography, pressure statistics | ||
end |
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 |
---|---|---|
@@ -1,31 +1,108 @@ | ||
|
||
Number of active cells: 192 (on 2 levels) | ||
Number of degrees of freedom: 8,937 (6,435+357+2,145) | ||
Number of active cells: 24 (on 1 levels) | ||
Number of degrees of freedom: 1,500 (1,071+72+357) | ||
|
||
Number of mesh deformation degrees of freedom: 1,071 | ||
Number of mesh deformation degrees of freedom: 216 | ||
Solving mesh displacement system... 0 iterations. | ||
*** Timestep 0: t=0 years, dt=0 years | ||
Solving mesh displacement system... 0 iterations. | ||
Skipping temperature solve because RHS is zero. | ||
Solving Stokes system (GMG)... 0+19 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 1: 1 | ||
Solving Stokes system (GMG)... 22+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 1: 0.999999 | ||
|
||
Solving Stokes system (GMG)... 0+180 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 2: 0.146052 | ||
Solving Stokes system (GMG)... 25+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 2: 0.159695 | ||
|
||
Solving Stokes system (GMG)... 21+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 3: 6.70296e-05 | ||
|
||
Solving Stokes system (GMG)... 20+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 4: 2.60333e-05 | ||
|
||
Solving Stokes system (GMG)... 18+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 5: 1.98817e-05 | ||
|
||
Solving Stokes system (GMG)... 17+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 6: 6.69786e-06 | ||
|
||
Solving Stokes system (GMG)... 16+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 7: 5.74977e-06 | ||
|
||
Solving Stokes system (GMG)... 15+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 8: 2.55677e-06 | ||
|
||
Solving Stokes system (GMG)... 15+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 9: 1.88832e-06 | ||
|
||
Solving Stokes system (GMG)... 14+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 10: 1.14181e-06 | ||
|
||
Solving Stokes system (GMG)... 14+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 11: 8.44013e-07 | ||
|
||
Solving Stokes system (GMG)... 13+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 12: 5.81288e-07 | ||
|
||
Solving Stokes system (GMG)... 13+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 13: 4.37762e-07 | ||
|
||
Solving Stokes system (GMG)... 12+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 14: 3.21668e-07 | ||
|
||
Solving Stokes system (GMG)... 12+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 15: 2.44738e-07 | ||
|
||
Solving Stokes system (GMG)... 11+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 16: 1.84042e-07 | ||
|
||
Solving Stokes system (GMG)... 11+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 17: 1.40618e-07 | ||
|
||
Solving Stokes system (GMG)... 11+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 18: 1.07097e-07 | ||
|
||
Solving Stokes system (GMG)... 10+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 19: 8.22713e-08 | ||
|
||
Solving Stokes system (GMG)... 10+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 20: 6.31244e-08 | ||
|
||
Solving Stokes system (GMG)... 9+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 21: 4.86369e-08 | ||
|
||
Solving Stokes system (GMG)... 9+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 22: 3.74679e-08 | ||
|
||
Solving Stokes system (GMG)... 9+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 23: 2.89298e-08 | ||
|
||
Solving Stokes system (GMG)... 8+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 24: 2.23418e-08 | ||
|
||
Solving Stokes system (GMG)... 8+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 25: 1.72726e-08 | ||
|
||
Solving Stokes system (GMG)... 7+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 26: 1.33585e-08 | ||
|
||
Solving Stokes system (GMG)... 7+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 27: 1.03318e-08 | ||
|
||
Solving Stokes system (GMG)... 7+0 iterations. | ||
Relative nonlinear residual (Stokes system) after nonlinear iteration 28: 7.99386e-09 | ||
|
||
|
||
WARNING: The nonlinear solver in the current timestep failed to converge. | ||
Acting according to the parameter 'Nonlinear solver failure strategy'... | ||
Continuing to the next timestep even though solution is not fully converged. | ||
Postprocessing: | ||
Writing graphical output: output-crustal_model_3D/solution/solution-00000 | ||
RMS, max velocity: 0.0098 m/year, 0.0264 m/year | ||
Topography min/max: 0 m, 0 m | ||
Pressure min/avg/max: -4.725e+09 Pa, 1.682e+08 Pa, 2.528e+09 Pa | ||
RMS, max velocity: 0.00904 m/year, 0.0111 m/year | ||
Topography min/max: 0 m, 0 m | ||
Pressure min/avg/max: -1.005e+08 Pa, 1.869e+08 Pa, 5.418e+08 Pa | ||
|
||
Skipping mesh refinement, because the mesh did not change. | ||
|
||
Termination requested by criterion: end time | ||
|
||
|
||
|
||
Termination requested by criterion: end time | ||
|
||
|
||
|
||
WARNING: During this computation 1 nonlinear solver failures occurred! |
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