-
Notifications
You must be signed in to change notification settings - Fork 242
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 #6214 from jdannberg/latent_heat_viscosity
fix latent heat viscosity prefactor
- Loading branch information
Showing
21 changed files
with
7,011 additions
and
149 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,9 @@ | ||
Fixed: The latent heat material model now correctly reads in | ||
the Viscosity prefactors that change the viscosities of | ||
individual phases for each compositional field. To make this | ||
work in a consistent way, the format of this input parameter | ||
is now the same as for other phase transition inputs (it is | ||
parsed as a map with keywords rather than a comma-separated | ||
list), which is an incompatible change in the input file. | ||
<br> | ||
(Juliane Dannberg, 2024/01/24) |
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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# This is a model setup to test if the viscosity stratification | ||
# in the latent heat material model works correctly with | ||
# compositional fields. The test has a different number and depth | ||
# of phase transitions for the two compositions. | ||
|
||
set Dimension = 2 | ||
set Start time = 0 | ||
set End time = 0 | ||
set Use years in output instead of seconds = false | ||
|
||
subsection Geometry model | ||
set Model name = box | ||
|
||
subsection Box | ||
set X extent = 500000 | ||
set Y extent = 1000000 | ||
set Y repetitions = 2 | ||
end | ||
end | ||
|
||
subsection Gravity model | ||
set Model name = vertical | ||
|
||
subsection Vertical | ||
set Magnitude = 10.0 | ||
end | ||
end | ||
|
||
############### Boundary conditions | ||
subsection Boundary temperature model | ||
set Fixed temperature boundary indicators = top, bottom | ||
set List of model names = initial temperature | ||
end | ||
|
||
# We prescribe a constant downward flow. | ||
subsection Boundary velocity model | ||
set Tangential velocity boundary indicators = left, right, top, bottom | ||
end | ||
|
||
subsection Initial temperature model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Function expression = 1600.0 | ||
set Variable names = x,y | ||
end | ||
end | ||
|
||
subsection Initial composition model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Variable names = x,y | ||
set Function expression = if(x>=250000, 1, 0); | ||
end | ||
end | ||
|
||
subsection Compositional fields | ||
set Number of fields = 1 | ||
set Names of fields = field1 | ||
end | ||
|
||
subsection Material model | ||
set Model name = latent heat | ||
|
||
subsection Latent heat | ||
set Phase transition density jumps = 100, 100, 100, 100, 100 | ||
set Corresponding phase for density jump = 0, 0, 1, 1, 1 | ||
set Density differential for compositional field 1 = 0 | ||
|
||
set Phase transition depths = background:400000|600000, field1:300000|500000|700000 | ||
set Phase transition temperatures = background:1600|1600, field1:1600|1600|1600 | ||
set Phase transition Clapeyron slopes = all:0 | ||
|
||
set Phase transition widths = all:50000 | ||
set Reference density = 3400 | ||
set Reference specific heat = 1000 | ||
set Reference temperature = 1600 | ||
set Thermal conductivity = 2.38 | ||
|
||
set Thermal expansion coefficient = 0.0 | ||
set Compressibility = 0.0 | ||
|
||
# Viscosity is constant. | ||
set Thermal viscosity exponent = 0.0 | ||
set Viscosity = 1e22 | ||
set Viscosity prefactors = background:1|10|1, field1:3.333|1|10|3.333 | ||
set Composition viscosity prefactor = 1.0 | ||
end | ||
end | ||
|
||
subsection Mesh refinement | ||
set Initial adaptive refinement = 0 | ||
set Initial global refinement = 4 | ||
set Time steps between mesh refinement = 0 | ||
end | ||
|
||
subsection Postprocess | ||
set List of postprocessors = visualization | ||
|
||
subsection Visualization | ||
set List of output variables = material properties | ||
subsection Material properties | ||
set List of material properties = viscosity, density | ||
end | ||
|
||
set Number of grouped files = 1 | ||
set Output format = gnuplot | ||
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,26 @@ | ||
----------------------------------------------------------------------------- | ||
----------------------------------------------------------------------------- | ||
----------------------------------------------------------------------------- | ||
|
||
----------------------------------------------------------------------------- | ||
----------------------------------------------------------------------------- | ||
Number of active cells: 512 (on 5 levels) | ||
Number of degrees of freedom: 9,141 (4,290+561+2,145+2,145) | ||
|
||
*** Timestep 0: t=0 seconds, dt=0 seconds | ||
Solving temperature system... 0 iterations. | ||
Solving field1 system ... 0 iterations. | ||
Solving Stokes system (GMG)... 18+0 iterations. | ||
|
||
Postprocessing: | ||
Writing graphical output: output-latent_heat_chemical_viscosity/solution/solution-00000 | ||
|
||
Termination requested by criterion: end time | ||
|
||
|
||
+----------------------------------------------+------------+------------+ | ||
+----------------------------------+-----------+------------+------------+ | ||
+----------------------------------+-----------+------------+------------+ | ||
|
||
----------------------------------------------------------------------------- | ||
----------------------------------------------------------------------------- |
Oops, something went wrong.