-
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 #6224 from gassmoeller/fix_dynamic_core
Fix dynamic core boundary temperature plugin
- Loading branch information
Showing
8 changed files
with
198 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Fixed: The boundary temperature plugin 'dynamic core' used to | ||
crash when the inner core was completely molten or completely | ||
solid. This is fixed now. | ||
<br> | ||
(Francesco Radica, Rene Gassmoeller, 2025/02/06) |
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,12 @@ | ||
# A simple setup for Earth convection model in a 2d shell | ||
# where the core mantle boundary (CMB) temperature dynamically evolves through time. | ||
# | ||
# This is a variation of dynamic_core.prm with a fully molten core. | ||
|
||
include $ASPECT_SOURCE_DIR/tests/dynamic_core.prm | ||
|
||
subsection Boundary temperature model | ||
subsection Dynamic core | ||
set Inner temperature = 6000 | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
Number of active cells: 768 (on 4 levels) | ||
Number of degrees of freedom: 10,656 (6,528+864+3,264) | ||
|
||
Dynamic core initialized as: | ||
Tc(K) Ri(km) Xi dT/dt(K/year) dR/dt(km/year) dX/dt(1/year) | ||
6000 0 0.042 0 0 0 | ||
*** Timestep 0: t=0 years, dt=0 years | ||
Solving temperature system... 0 iterations. | ||
Solving Stokes system (GMG)... 16+0 iterations. | ||
|
||
Postprocessing: | ||
CMB heat flux out of the core 1.43 TW, | ||
|
||
*** Timestep 1: t=598995 years, dt=598995 years | ||
Dynamic core data updated. | ||
Tc(K) Ri(km) Xi dT/dt(K/year) dR/dt(km/year) dX/dt(1/year) | ||
6000.07 0 0.042 1.12778e-07 0 0 | ||
Solving temperature system... 14 iterations. | ||
Solving Stokes system (GMG)... 16+0 iterations. | ||
|
||
Postprocessing: | ||
CMB heat flux out of the core 1.43 TW, | ||
|
||
*** Timestep 2: t=1e+06 years, dt=401005 years | ||
Dynamic core data updated. | ||
Tc(K) Ri(km) Xi dT/dt(K/year) dR/dt(km/year) dX/dt(1/year) | ||
6000.11 0 0.042 1.14788e-07 0 0 | ||
Solving temperature system... 17 iterations. | ||
Solving Stokes system (GMG)... 15+0 iterations. | ||
|
||
Postprocessing: | ||
CMB heat flux out of the core 1.31 TW, | ||
|
||
Termination requested by criterion: end time | ||
|
||
|
||
|
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,18 @@ | ||
# 1: Time step number | ||
# 2: Time (years) | ||
# 3: Time step size (years) | ||
# 4: Number of mesh cells | ||
# 5: Number of Stokes degrees of freedom | ||
# 6: Number of temperature degrees of freedom | ||
# 7: Iterations for temperature solver | ||
# 8: Iterations for Stokes solver | ||
# 9: Velocity iterations in Stokes preconditioner | ||
# 10: Schur complement iterations in Stokes preconditioner | ||
# 11: CMB heat flux out of the core (TW) | ||
# 12: CMB Temperature (K) | ||
# 13: Inner core radius (km) | ||
# 14: Light element concentration (%) | ||
# 15: Excess entropy (W/K) | ||
0 0.000000000000e+00 0.000000000000e+00 768 7392 3264 0 15 17 17 1.429e+00 6000.00 0.00 4.2000 -2.864e+07 | ||
1 5.989948582733e+05 5.989948582733e+05 768 7392 3264 14 15 17 17 1.429e+00 6000.07 0.00 4.2000 -1.799e+08 | ||
2 1.000000000000e+06 4.010051417267e+05 768 7392 3264 17 14 16 16 1.305e+00 6000.11 0.00 4.2000 -1.827e+08 |
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,12 @@ | ||
# A simple setup for Earth convection model in a 2d shell | ||
# where the core mantle boundary (CMB) temperature dynamically evolves through time. | ||
# | ||
# This is a variation of dynamic_core.prm with a fully frozen core. | ||
|
||
include $ASPECT_SOURCE_DIR/tests/dynamic_core.prm | ||
|
||
subsection Boundary temperature model | ||
subsection Dynamic core | ||
set Inner temperature = 1000 | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
Number of active cells: 768 (on 4 levels) | ||
Number of degrees of freedom: 10,656 (6,528+864+3,264) | ||
|
||
Dynamic core initialized as: | ||
Tc(K) Ri(km) Xi dT/dt(K/year) dR/dt(km/year) dX/dt(1/year) | ||
1000 3481 0.084 0 0 0 | ||
*** Timestep 0: t=0 years, dt=0 years | ||
Solving temperature system... 0 iterations. | ||
Solving Stokes system (GMG)... 16+0 iterations. | ||
|
||
Postprocessing: | ||
CMB heat flux out of the core 0.175 TW, | ||
|
||
*** Timestep 1: t=1e+06 years, dt=1e+06 years | ||
Dynamic core data updated. | ||
Tc(K) Ri(km) Xi dT/dt(K/year) dR/dt(km/year) dX/dt(1/year) | ||
1000.13 3481 0.084 1.33889e-07 0 0 | ||
Solving temperature system... 9 iterations. | ||
Solving Stokes system (GMG)... 16+0 iterations. | ||
|
||
Postprocessing: | ||
CMB heat flux out of the core 0.175 TW, | ||
|
||
Termination requested by criterion: end time | ||
|
||
|
||
|
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,17 @@ | ||
# 1: Time step number | ||
# 2: Time (years) | ||
# 3: Time step size (years) | ||
# 4: Number of mesh cells | ||
# 5: Number of Stokes degrees of freedom | ||
# 6: Number of temperature degrees of freedom | ||
# 7: Iterations for temperature solver | ||
# 8: Iterations for Stokes solver | ||
# 9: Velocity iterations in Stokes preconditioner | ||
# 10: Schur complement iterations in Stokes preconditioner | ||
# 11: CMB heat flux out of the core (TW) | ||
# 12: CMB Temperature (K) | ||
# 13: Inner core radius (km) | ||
# 14: Light element concentration (%) | ||
# 15: Excess entropy (W/K) | ||
0 0.000000000000e+00 0.000000000000e+00 768 7392 3264 0 15 17 17 1.755e-01 1000.00 3481.00 8.4000 8.412e+08 | ||
1 1.000000000000e+06 1.000000000000e+06 768 7392 3264 9 15 17 17 1.755e-01 1000.13 3481.00 8.4000 -2.367e+08 |