@@ -47,13 +47,13 @@ Temp = fill(1350.0, nx, 1, nz);
4747We will start with a simple subduction setup, which consists of a horizontal part:
4848
4949``` julia
50- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = ConstantPhase (1 ));
50+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = ConstantPhase (1 ));
5151```
5252
5353And with the inclined part:
5454
5555``` julia
56- add_box! (Phases, Temp, Grid2D; xlim= (0 ,300 ), zlim= (- 80.0 , 0.0 ), phase = ConstantPhase (1 ), DipAngle= 30 );
56+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,300.0 ), zlim= (- 80.0 , 0.0 ), phase = ConstantPhase (1 ), DipAngle= 30 );
5757```
5858
5959Add them to the ` CartData ` dataset:
@@ -100,8 +100,8 @@ LithosphericPhases([15 55], [1 2], nothing)
100100and set the slab again:
101101
102102``` julia
103- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith);
104- add_box! (Phases, Temp, Grid2D; xlim= (0 ,300 ), zlim= (- 80.0 , 0.0 ), phase = lith, DipAngle= 30 );
103+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith);
104+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,300.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, DipAngle= 30 );
105105```
106106
107107Which looks like:
@@ -124,8 +124,8 @@ We can do that by specifying a thermal structure. For example, we can use the ha
124124
125125``` julia
126126therm = HalfspaceCoolingTemp (Age= 40 )
127- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= therm);
128- add_box! (Phases, Temp, Grid2D; xlim= (0 ,300 ), zlim= (- 80.0 , 0.0 ), phase = lith, T = therm, DipAngle= 30 );
127+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= therm);
128+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,300.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T = therm, DipAngle= 30 );
129129```
130130
131131Which looks like:
@@ -159,13 +159,13 @@ a spreading velocity (note that this simply relates to the thermal structure and
159159
160160``` julia
161161lith = LithosphericPhases (Layers= [15 55 ], Phases= [1 2 ], Tlab= 1250 )
162- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= SpreadingRateTemp (SpreadingVel= 3 ));
162+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= SpreadingRateTemp (SpreadingVel= 3 ));
163163```
164164
165165For the subduction we use a thermal structure of a slab heated by hot asthenosphere
166166
167167``` julia
168- add_box! (Phases, Temp, Grid2D; xlim= (0 ,300 ), zlim= (- 80.0 , 0.0 ), phase = lith, T = McKenzie_subducting_slab (Tsurface= 0 ,v_cm_yr= 3 ), DipAngle= 30 );
168+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,300.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T = McKenzie_subducting_slab (Tsurface= 0 ,v_cm_yr= 3 ), DipAngle= 30 );
169169```
170170
171171We can set the mantle lithosphere that is hotter > 1250 C to mantle:
@@ -186,25 +186,25 @@ Saved file: Grid2D_SubductionRidge.vts
186186![ Mechanical2D_Tutorial_4] ( ../assets/img/Mechanical2D_Tutorial_4.png )
187187
188188#### Overriding slab and weak layer
189- Ok, lets add an overriding slab as well. For this, we use the ` AddLayer !` function
189+ Ok, lets add an overriding slab as well. For this, we use the ` add_layer !` function
190190
191191``` julia
192192lith = LithosphericPhases (Layers= [15 20 55 ], Phases= [3 4 5 ], Tlab= 1250 )
193- add_box! (Phases, Temp, Grid2D; xlim= (0 ,1000 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= HalfspaceCoolingTemp (Age= 80 ));
193+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,1000.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= HalfspaceCoolingTemp (Age= 80 ));
194194```
195195
196196The oceanic plate is as before
197197
198198``` julia
199199lith = LithosphericPhases (Layers= [15 55 ], Phases= [1 2 ], Tlab= 1250 )
200- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= SpreadingRateTemp (SpreadingVel= 3 ));
200+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = lith, T= SpreadingRateTemp (SpreadingVel= 3 ));
201201```
202202
203203For the inclined part, we set a layer above the slab (the "weak" layer to facilitate subduction initiation )
204204
205205``` julia
206206lith = LithosphericPhases (Layers= [10 15 55 ], Phases= [6 1 2 ], Tlab= 1250 )
207- add_box! (Phases, Temp, Grid2D; xlim= (0 ,300 ), zlim= (- 80.0 , 10.0 ), phase = lith, T = McKenzie_subducting_slab (Tsurface= 0 ,v_cm_yr= 3 ), DipAngle= 30 );
207+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,300.0 ), zlim= (- 80.0 , 10.0 ), phase = lith, T = McKenzie_subducting_slab (Tsurface= 0 ,v_cm_yr= 3 ), DipAngle= 30 );
208208```
209209
210210Lithosphere-asthenosphere boundary:
@@ -236,7 +236,7 @@ z = range(-660,0, nz);
236236Grid2D = CartData (xyz_grid (x,0 ,z))
237237Phases = zeros (Int64, nx, 1 , nz);
238238Temp = fill (1350.0 , nx, 1 , nz);
239- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = ConstantPhase (1 ));
239+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 80.0 , 0.0 ), phase = ConstantPhase (1 ));
240240```
241241
242242Next, we should define a ` Trench ` structure, which contains info about the trench which goes in 3D from ` Start ` - ` End ` coordinates (` x ` ,` y ` )-coordinates respectively. As we are dealing with a 2D model, we set the ` y ` -coordinates to -100.0 and 100.0 respectively.
@@ -284,16 +284,16 @@ LithosphericPhases([15 20 55], [3 4 5], 1250)
284284Lets start with defining the horizontal part of the overriding plate. Note that we define this twice with different thickness to deal with the bending subduction area:
285285
286286``` julia
287- add_box! (Phases, Temp, Grid2D; xlim= (200 ,1000 ), zlim= (- 150.0 , 0.0 ), phase = lith, T= HalfspaceCoolingTemp (Age= 80 ));
288- add_box! (Phases, Temp, Grid2D; xlim= (0 ,200 ), zlim= (- 50.0 , 0.0 ), phase = lith, T= HalfspaceCoolingTemp (Age= 80 ));
287+ add_box! (Phases, Temp, Grid2D; xlim= (200.0 ,1000.0 ), zlim= (- 150.0 , 0.0 ), phase = lith, T= HalfspaceCoolingTemp (Age= 80 ));
288+ add_box! (Phases, Temp, Grid2D; xlim= (0.0 ,200.0 ), zlim= (- 50.0 , 0.0 ), phase = lith, T= HalfspaceCoolingTemp (Age= 80 ));
289289```
290290
291291The horizontal part of the oceanic plate is as before:
292292
293293``` julia
294294v_spread_cm_yr = 3 # spreading velocity
295295lith = LithosphericPhases (Layers= [15 55 ], Phases= [1 2 ], Tlab= 1250 )
296- add_box! (Phases, Temp, Grid2D; xlim= (- 800 ,0.0 ), zlim= (- 150.0 , 0.0 ), phase = lith, T= SpreadingRateTemp (SpreadingVel= v_spread_cm_yr));
296+ add_box! (Phases, Temp, Grid2D; xlim= (- 800.0 ,0.0 ), zlim= (- 150.0 , 0.0 ), phase = lith, T= SpreadingRateTemp (SpreadingVel= v_spread_cm_yr));
297297```
298298
299299Yet, now we add a trench as well. The starting thermal age at the trench is that of the horizontal part of the oceanic plate:
0 commit comments