-
Notifications
You must be signed in to change notification settings - Fork 240
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 #6054 from gassmoeller/test_for_multiple_particle_…
…interpolation Test for multiple particle interpolation
- Loading branch information
Showing
11 changed files
with
511 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Test that we can activate multiple particle worlds and | ||
# interpolate properties from different particle worlds into | ||
# the compositional fields. | ||
|
||
set Dimension = 2 | ||
set End time = 0 | ||
set Use years in output instead of seconds = false | ||
set Number of particle worlds = 2 | ||
|
||
subsection Geometry model | ||
set Model name = box | ||
|
||
subsection Box | ||
set X extent = 0.9142 | ||
set Y extent = 1.0000 | ||
end | ||
end | ||
|
||
subsection Boundary velocity model | ||
set Tangential velocity boundary indicators = left, right | ||
set Zero velocity boundary indicators = bottom, top | ||
end | ||
|
||
subsection Material model | ||
set Model name = simple | ||
|
||
subsection Simple model | ||
set Reference density = 1010 | ||
set Viscosity = 1e2 | ||
set Thermal expansion coefficient = 0 | ||
set Density differential for compositional field 1 = -10 | ||
end | ||
end | ||
|
||
subsection Gravity model | ||
set Model name = vertical | ||
|
||
subsection Vertical | ||
set Magnitude = 10 | ||
end | ||
end | ||
|
||
subsection Initial temperature model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Function expression = 0 | ||
end | ||
end | ||
|
||
subsection Compositional fields | ||
set Number of fields = 2 | ||
set Names of fields = anomaly, function | ||
set Compositional field methods = particles, particles | ||
set Mapped particle properties = anomaly: function, function: initial anomaly | ||
end | ||
|
||
subsection Initial composition model | ||
set Model name = function | ||
|
||
subsection Function | ||
set Variable names = x,z | ||
set Function constants = pi=3.1415926 | ||
set Function expression = 0.5*(1+tanh((0.2+0.02*cos(pi*x/0.9142)-z)/0.02)); 0.0 | ||
end | ||
end | ||
|
||
subsection Mesh refinement | ||
set Initial adaptive refinement = 0 | ||
set Strategy = composition | ||
set Initial global refinement = 1 | ||
set Time steps between mesh refinement = 0 | ||
end | ||
|
||
subsection Postprocess | ||
set List of postprocessors = velocity statistics, composition statistics, particles, visualization | ||
|
||
subsection Visualization | ||
set Output format = gnuplot | ||
end | ||
|
||
subsection Particles | ||
set Time between data output = 70 | ||
set Data output format = | ||
end | ||
end | ||
|
||
subsection Particles | ||
set List of particle properties = initial composition | ||
set Particle generator name = reference cell | ||
end | ||
|
||
subsection Particles 2 | ||
set List of particle properties = function | ||
set Particle generator name = reference cell | ||
|
||
subsection Function | ||
set Variable names = x,z | ||
set Function constants = pi=3.1415926 | ||
set Function expression = x | ||
end | ||
end |
20 changes: 20 additions & 0 deletions
20
tests/particle_multiple_worlds_interpolation/screen-output
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,20 @@ | ||
|
||
Number of active cells: 4 (on 2 levels) | ||
Number of degrees of freedom: 134 (50+9+25+25+25) | ||
|
||
*** Timestep 0: t=0 seconds, dt=0 seconds | ||
Skipping temperature solve because RHS is zero. | ||
Advecting particles... done. | ||
Advecting particles... done. | ||
Solving Stokes system... 9+0 iterations. | ||
|
||
Postprocessing: | ||
RMS, max velocity: 0.00308 m/s, 0.00465 m/s | ||
Compositions min/max/mass: 0.2285/0.6856/0.4527 // 0/0.4999/0.1902 | ||
Number of advected particles 16, 16 | ||
Writing graphical output: output-particle_multiple_worlds_interpolation/solution/solution-00000 | ||
|
||
Termination requested by criterion: end time | ||
|
||
|
||
|
59 changes: 59 additions & 0 deletions
59
tests/particle_multiple_worlds_interpolation/solution/solution-00000.0000.gnuplot
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
# 1: Time step number | ||
# 2: Time (seconds) | ||
# 3: Time step size (seconds) | ||
# 4: Number of mesh cells | ||
# 5: Number of Stokes degrees of freedom | ||
# 6: Number of temperature degrees of freedom | ||
# 7: Number of degrees of freedom for all compositions | ||
# 8: Iterations for temperature solver | ||
# 9: Iterations for Stokes solver | ||
# 10: Velocity iterations in Stokes preconditioner | ||
# 11: Schur complement iterations in Stokes preconditioner | ||
# 12: RMS velocity (m/s) | ||
# 13: Max. velocity (m/s) | ||
# 14: Minimal value for composition anomaly | ||
# 15: Maximal value for composition anomaly | ||
# 16: Global mass for composition anomaly | ||
# 17: Minimal value for composition function | ||
# 18: Maximal value for composition function | ||
# 19: Global mass for composition function | ||
# 20: Number of advected particles | ||
# 21: Number of advected particles (World 2) | ||
# 22: Visualization file name | ||
0 0.000000000000e+00 0.000000000000e+00 4 59 25 50 0 8 10 10 3.07552704e-03 4.65482045e-03 2.28550000e-01 6.85650000e-01 4.52704222e-01 0.00000000e+00 4.99913963e-01 1.90184427e-01 16 16 output-particle_multiple_worlds_interpolation/solution/solution-00000 |
Oops, something went wrong.