Skip to content

Commit f6d6c66

Browse files
fix the .prm file
1 parent 3aafda1 commit f6d6c66

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

cookbooks/2D_subduction_with_two_phase_flow/fixed_slab.prm

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# layer. The layers dehydrate as they are subducted, with the solid-fluid
44
# reactions governed by an approximation published by Tian et al., 2018.
55

6-
set World builder file = fixed_slab.wb
6+
set Additional shared libraries = /Users/danieldouglas/software/aspect/cookbooks/2D_subduction_with_two_phase_flow/plugin/lib2D_subduction_with_two_phase_flow.so
7+
set World builder file = /Users/danieldouglas/software/aspect/cookbooks/2D_subduction_with_two_phase_flow/fixed_slab.wb
78
set Adiabatic surface temperature = 1573
89
set Nonlinear solver scheme = iterated Advection and Stokes
910
set Nonlinear solver failure strategy = continue with next timestep
@@ -58,7 +59,7 @@ subsection Temperature field
5859
end
5960

6061
subsection Initial composition model
61-
set List of model names = world builder
62+
set List of model names = world builder disequilibrium
6263
subsection World builder
6364
set List of relevant compositions = porosity, bound_fluid, peridotite, gabbro, MORB, sediment
6465
end
@@ -117,7 +118,7 @@ subsection Material model
117118
set Reference fluid density = 1000
118119
set Shear to bulk viscosity ratio = 0.1
119120
set Reference fluid viscosity = 1
120-
set Reference permeability = 1e-7
121+
set Reference permeability = 5e-8
121122
set Exponential fluid weakening factor = 30
122123
set Fluid compressibility = 0
123124
set Fluid reaction time scale for operator splitting = 1e4
@@ -157,8 +158,6 @@ subsection Material model
157158
MORB: 1.577e-21, \
158159
sediment: 1.577e-21
159160

160-
set Query bound fluid for water fugacity = true
161-
162161
set Water fugacity exponents for diffusion creep = 0.7
163162

164163
set Stress exponents for diffusion creep = 1.0
@@ -232,10 +231,10 @@ end
232231
subsection Mesh refinement
233232
set Coarsening fraction = 0.3
234233
set Refinement fraction = 0.5
235-
set Initial adaptive refinement = 0
236-
set Initial global refinement = 0
234+
set Initial adaptive refinement = 3
235+
set Initial global refinement = 5
237236
set Strategy = temperature, viscosity, composition threshold, minimum refinement function
238-
set Time steps between mesh refinement = 5
237+
set Time steps between mesh refinement = 0
239238
set Refinement criteria scaling factors = 2, 1.5, 1.5, 1
240239
set Refinement criteria merge operation = max
241240
set Run postprocessors on initial refinement = false
@@ -261,11 +260,11 @@ subsection Boundary velocity model
261260
end
262261

263262
subsection Melt settings
264-
set Include melt transport = false
263+
set Include melt transport = false
265264
end
266265

267266
subsection Postprocess
268-
set List of postprocessors = visualization, composition statistics, velocity statistics
267+
set List of postprocessors = visualization, composition statistics, velocity statistics
269268
subsection Visualization
270269
set List of output variables = material properties, strain rate, named additional outputs, darcy velocity
271270
set Output format = vtu

cookbooks/2D_subduction_with_two_phase_flow/fixed_slab.wb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"max depth": 300e3,
3636
"composition models":
3737
[
38-
{"model": "tian water content mod", "compositions": [1], "min depth":0.0, "max depth": 10e3, "lithology": "sediment", "initial water content": 2, "cutoff pressure": 1},
39-
{"model": "tian water content mod", "compositions": [1], "min depth":10e3, "max depth": 20e3, "lithology": "MORB", "initial water content": 1, "cutoff pressure": 16},
40-
{"model": "tian water content mod", "compositions": [1], "min depth":20e3, "max depth": 30e3, "lithology": "gabbro", "initial water content": 0.5, "cutoff pressure": 26},
41-
{"model": "tian water content mod", "compositions": [1], "min depth":30e3, "max depth": 120e3, "lithology": "peridotite", "initial water content": 1, "cutoff pressure": 10},
38+
{"model": "tian water content", "compositions": [1], "min depth":0.0, "max depth": 10e3, "lithology": "sediment", "initial water content": 2, "cutoff pressure": 1},
39+
{"model": "tian water content", "compositions": [1], "min depth":10e3, "max depth": 20e3, "lithology": "MORB", "initial water content": 1, "cutoff pressure": 16},
40+
{"model": "tian water content", "compositions": [1], "min depth":20e3, "max depth": 30e3, "lithology": "gabbro", "initial water content": 0.5, "cutoff pressure": 26},
41+
{"model": "tian water content", "compositions": [1], "min depth":30e3, "max depth": 120e3, "lithology": "peridotite", "initial water content": 1, "cutoff pressure": 10},
4242
{"model": "uniform", "compositions": [5], "min depth":0.0, "max depth": 10e3, "operation":"add"},
4343
{"model": "uniform", "compositions": [4], "min depth":10e3, "max depth": 20e3, "operation":"add"},
4444
{"model": "uniform", "compositions": [3], "min depth":20e3, "max depth": 30e3, "operation":"add"},
@@ -58,10 +58,10 @@
5858
{"length":300e3,"thickness":[300e3],"top truncation":[-50e3],"angle":[45,45]}],
5959

6060
"composition models":[
61-
{"model":"tian water content mod", "compositions":[1], "min distance slab top":0, "max distance slab top":10e3, "lithology":"sediment", "initial water content": 2, "cutoff pressure": 1},
62-
{"model":"tian water content mod", "compositions":[1], "min distance slab top":10e3, "max distance slab top":20e3, "lithology":"MORB", "initial water content": 1, "cutoff pressure": 16},
63-
{"model":"tian water content mod", "compositions":[1], "min distance slab top":20e3, "max distance slab top":30e3, "lithology":"gabbro", "initial water content": 0.5, "cutoff pressure": 26},
64-
{"model":"tian water content mod", "compositions":[1], "min distance slab top":30e3, "max distance slab top":120e3, "lithology":"peridotite", "initial water content": 1, "cutoff pressure": 10},
61+
{"model":"tian water content", "compositions":[1], "min distance slab top":0, "max distance slab top":10e3, "lithology":"sediment", "initial water content": 2, "cutoff pressure": 1},
62+
{"model":"tian water content", "compositions":[1], "min distance slab top":10e3, "max distance slab top":20e3, "lithology":"MORB", "initial water content": 1, "cutoff pressure": 16},
63+
{"model":"tian water content", "compositions":[1], "min distance slab top":20e3, "max distance slab top":30e3, "lithology":"gabbro", "initial water content": 0.5, "cutoff pressure": 26},
64+
{"model":"tian water content", "compositions":[1], "min distance slab top":30e3, "max distance slab top":120e3, "lithology":"peridotite", "initial water content": 1, "cutoff pressure": 10},
6565
{"model":"uniform", "compositions":[5], "min distance slab top":0.0, "max distance slab top":10e3, "operation":"add"},
6666
{"model":"uniform", "compositions":[4], "min distance slab top":10e3, "max distance slab top":20e3, "operation":"add"},
6767
{"model":"uniform", "compositions":[3], "min distance slab top":20e3, "max distance slab top":30e3, "operation":"add"},

cookbooks/2D_subduction_with_two_phase_flow/plugin/bound_fluid_source.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace aspect
4444
MaterialModel::MaterialModelOutputs<dim> &out) const
4545
{
4646
ReactiveFluidTransport<dim>::evaluate(in, out);
47-
const unsigned int bound_fluid_idx = this->introspection().compositional_index_for_name("bound_fluid_idx");
47+
const unsigned int bound_fluid_idx = this->introspection().compositional_index_for_name("bound_fluid");
4848
for (unsigned int q=0; q < in.n_evaluation_points(); ++q)
4949
if (out.reaction_terms[q][bound_fluid_idx] <= 0.0)
5050
out.reaction_terms[q][bound_fluid_idx] = 0.0;

cookbooks/2D_subduction_with_two_phase_flow/plugin/world_builder_disequilibrium_fluid.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ namespace aspect
128128
n_comp);
129129
if (n_comp == bound_fluid_idx &&
130130
this->get_parameters().compositional_field_methods[bound_fluid_idx] == Parameters<dim>::AdvectionFieldMethod::static_field)
131-
comp_value *= 1.1;
131+
comp_value *= 1.1/100;
132132
return comp_value;
133133
}
134134

0 commit comments

Comments
 (0)