Skip to content

Commit

Permalink
Add tester for gwb-grid sphere.
Browse files Browse the repository at this point in the history
  • Loading branch information
MFraters committed Feb 23, 2024
1 parent 08a7754 commit f142af9
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/gwb-grid/3d_sphere_plume.grid
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# output variables
grid_type = sphere
dim = 3
compositions = 3
vtu_output_format = ASCII

# domain of the grid
x_max = 25
x_min = -25
y_max = 25
y_min = -25
z_min = 4371000
z_max = 6371000

# grid properties
n_cell_x = 8
n_cell_y = 8
n_cell_z = 8
45 changes: 45 additions & 0 deletions tests/gwb-grid/3d_sphere_plume.vtu

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions tests/gwb-grid/3d_sphere_plume.wb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// This is a test for the plume feature in spherical geometry.
// It checks if the plume has the right geometry in terms of its temperature
// and composition, which are uniform within the plume, with the composition
// having two layers.
// Specifically, the plume changes the location of its center axis going in a
// clockwise circle a bit more than half way on the way down and it
// increases in radius with depth. Its cross section is slightly elongated in
// the same direction the center axis is curved, but the eccentricity stays
// the same.
{
"version": "0.6",
"coordinate system":{"model":"spherical", "depth method":"starting point"},
"cross section":[[0,0],[10,0]],
"maximum distance between coordinates":0.01,
//"thermal expansion coefficient":0,
"features":
[
{"model":"plume",
"name":"plume A",
"coordinates":[[0, 15],[5.7403, 13.8582],[10.6, 10.6],[13.8582, 5.7403],[15, 0],[13.8582, -5.7403],[10.6, -10.6],[5.7403, -13.8582],[0, -15],[-5.7403, -13.8582],[-10.6, -10.6]],
"cross section depths":[0, 200e3, 400e3, 600e3, 800e3, 1000e3, 1200e3, 1400e3, 1600e3, 1800e3, 2000e3],
"semi-major axis":[16, 17, 18, 19, 20, 21, 22, 24, 24, 25, 26],
"eccentricity":[0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7],
"rotation angles":[90, 112.5, 135, 157.5, 180, 202.5, 225, 247.5, 270, 292.5, 315],
"temperature models":
[
{
"model":"uniform",
"operation":"add",
"max depth":2000e3,
"temperature":200
}
],
"composition models":
[
{"model":"uniform","compositions":[1], "max depth":800e3},
{"model":"uniform","compositions":[2], "min depth":800e3, "max depth":1800e3}
]
}
]
}

0 comments on commit f142af9

Please sign in to comment.