-
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 #5930 from tjhei/composition-degrees
support different composition degrees
- Loading branch information
Showing
17 changed files
with
363 additions
and
57 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
New: ASPECT now supports compositional fields with | ||
different discretizations (continuous or discontinuous) | ||
at the same time. | ||
and different polynomial degrees at the same time. | ||
<br> | ||
(Timo Heister, 2024/06/18) |
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
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
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,4 +1,4 @@ | ||
# | ||
# Test CG and DG compositional fields at the same time | ||
# | ||
# copied from discontinuous_composition_1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Test different composition degrees and cg/dg | ||
# | ||
# copied from discontinuous_composition_1.prm | ||
|
||
|
||
set Dimension = 2 | ||
set Start time = 0 | ||
set End time = 0.1 | ||
set Use years in output instead of seconds = false | ||
|
||
subsection Geometry model | ||
set Model name = box | ||
|
||
subsection Box | ||
set X extent = 2 | ||
set Y extent = 1 | ||
end | ||
end | ||
|
||
subsection Boundary temperature model | ||
set Fixed temperature boundary indicators = bottom, top | ||
set List of model names = box | ||
|
||
subsection Box | ||
set Bottom temperature = 1 | ||
set Top temperature = 0 | ||
end | ||
end | ||
|
||
subsection Boundary velocity model | ||
set Tangential velocity boundary indicators = left, right, bottom | ||
set Prescribed velocity boundary indicators = top: function | ||
|
||
subsection Function | ||
set Variable names = x,z,t | ||
set Function constants = pi=3.1415926 | ||
set Function expression = if(x>1+sin(0.5*pi*t), 1, -1); 0 | ||
end | ||
end | ||
|
||
subsection Gravity model | ||
set Model name = vertical | ||
end | ||
|
||
subsection Initial temperature model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Variable names = x,z | ||
set Function expression = (1-z) | ||
end | ||
end | ||
|
||
subsection Material model | ||
set Model name = simple | ||
set Material averaging = harmonic average only viscosity | ||
|
||
subsection Simple model | ||
set Thermal conductivity = 1e-6 | ||
set Thermal expansion coefficient = 1e-4 | ||
set Viscosity = 1 | ||
end | ||
end | ||
|
||
subsection Mesh refinement | ||
set Initial adaptive refinement = 1 | ||
set Initial global refinement = 2 | ||
set Time steps between mesh refinement = 2 | ||
end | ||
|
||
subsection Discretization | ||
set Use discontinuous temperature discretization = false | ||
set Use discontinuous composition discretization = true,false,false,false,true | ||
set Composition polynomial degree = 0,2,2,1,1 | ||
end | ||
|
||
subsection Postprocess | ||
set List of postprocessors = temperature statistics, composition statistics, matrix statistics | ||
end | ||
|
||
# This is the new part: We declare that there will | ||
# be two compositional fields that will be | ||
# advected along. Their initial conditions are given by | ||
# a function that is one for the lowermost 0.2 height | ||
# units of the domain and zero otherwise in the first case, | ||
# and one in the top most 0.2 height units in the latter. | ||
subsection Compositional fields | ||
set Number of fields = 5 | ||
end | ||
|
||
subsection Initial composition model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Variable names = x,y | ||
set Function expression = if(y<0.2, 1, 0) ; if(y>0.8, 1, 0); if(y>0.8, 1, 0); if(y>0.8, 1, 0); if(y>0.8, 1, 0) | ||
end | ||
end |
Oops, something went wrong.