Implementation of a 1D explicit thermal solver for the AddBox function #64
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.
Inclusion of the
LithosphericTemp()
option for theAddBox!
function, e.g.The option enables to calculate a 1D temperature profile for a certain lithospheric setting (oceanic or continental) assuming variable thermal parameters (
k
,rho
,cp
) and radiogenic heating (H
) for each phase. The temperature is then linearly interpolated from the 1D profile onto the entire box geometry, assuming a horizontal layering within the box. Rotation of the box is considered as well.Therefore, one needs to define the phase distributions first in the
AddBox!
function using theCompute_Phase()
function. The phases are defined as usual byphase = ConstantPhase()
orphase = LithosphericPhases()
.The thermal parameters for each phase are defined by the rheology structure, which is part of the
LithosphericTemp()
option.The default values for the
LithosphericTemp()
option are:Following tests are included in
test_setup_geometry.jl
:The figures show a model including a box, left: Phase distributions, middle: temperature field, right: Vertical temperature profile through the center of the box. The sum over
T
along this profile is also used for the test cases intest_setup_geometry.jl
. If not otherwise defined, the test cases use the default values ofLithosphericTemp()
.a horizontally layer lithosphere; UpperCrust,LowerCrust,Mantle
an inclined lithosphere; UpperCrust,LowerCrust,Mantle
an inclined lithosphere with respect to the default origin (upper left corner of the box); UpperCrust,LowerCrust,Mantle
an inclined lithosphere with only two layers
using flux boundary conditions at the lower boundary of the box