Skip to content

Commit 348dc81

Browse files
committed
setup_geometry
1 parent ae11514 commit 348dc81

10 files changed

+198
-198
lines changed

docs/src/man/Tutorial_NumericalModel_2D.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ Temp = fill(1350.0, nx, 1, nz);
4747
We will start with a simple subduction setup, which consists of a horizontal part:
4848

4949
```julia
50-
addBox!(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), zlim=(-80.0, 0.0), phase = ConstantPhase(1));
5151
```
5252

5353
And with the inclined part:
5454

5555
```julia
56-
addBox!(Phases, Temp, Grid2D; xlim=(0,300), zlim=(-80.0, 0.0), phase = ConstantPhase(1), DipAngle=30);
56+
add_box!(Phases, Temp, Grid2D; xlim=(0,300), zlim=(-80.0, 0.0), phase = ConstantPhase(1), DipAngle=30);
5757
```
5858

5959
Add them to the `CartData` dataset:
@@ -100,8 +100,8 @@ LithosphericPhases([15 55], [1 2], nothing)
100100
and set the slab again:
101101

102102
```julia
103-
addBox!(Phases, Temp, Grid2D; xlim=(-800,0.0), zlim=(-80.0, 0.0), phase = lith);
104-
addBox!(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), 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);
105105
```
106106

107107
Which 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
126126
therm = HalfspaceCoolingTemp(Age=40)
127-
addBox!(Phases, Temp, Grid2D; xlim=(-800,0.0), zlim=(-80.0, 0.0), phase = lith, T=therm);
128-
addBox!(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), 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);
129129
```
130130

131131
Which looks like:
@@ -159,13 +159,13 @@ a spreading velocity (note that this simply relates to the thermal structure and
159159

160160
```julia
161161
lith = LithosphericPhases(Layers=[15 55], Phases=[1 2], Tlab=1250)
162-
addBox!(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), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
163163
```
164164

165165
For the subduction we use a thermal structure of a slab heated by hot asthenosphere
166166

167167
```julia
168-
addBox!(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,300), zlim=(-80.0, 0.0), phase = lith, T = McKenzie_subducting_slab(Tsurface=0,v_cm_yr=3), DipAngle=30);
169169
```
170170

171171
We can set the mantle lithosphere that is hotter > 1250 C to mantle:
@@ -190,21 +190,21 @@ Ok, lets add an overriding slab as well. For this, we use the `AddLayer!` functi
190190

191191
```julia
192192
lith = LithosphericPhases(Layers=[15 20 55], Phases=[3 4 5], Tlab=1250)
193-
addBox!(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,1000), zlim=(-80.0, 0.0), phase = lith, T=HalfspaceCoolingTemp(Age=80));
194194
```
195195

196196
The oceanic plate is as before
197197

198198
```julia
199199
lith = LithosphericPhases(Layers=[15 55], Phases=[1 2], Tlab=1250)
200-
addBox!(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), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
201201
```
202202

203203
For the inclined part, we set a layer above the slab (the "weak" layer to facilitate subduction initiation )
204204

205205
```julia
206206
lith = LithosphericPhases(Layers=[10 15 55], Phases=[6 1 2], Tlab=1250)
207-
addBox!(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,300), zlim=(-80.0, 10.0), phase = lith, T = McKenzie_subducting_slab(Tsurface=0,v_cm_yr=3), DipAngle=30);
208208
```
209209

210210
Lithosphere-asthenosphere boundary:
@@ -225,7 +225,7 @@ Saved file: Grid2D_SubductionOverriding.vts
225225
![Mechanical2D_Tutorial_5](../assets/img/Mechanical2D_Tutorial_5.png)
226226

227227
#### Curved slab - mechanics
228-
So far, the subducting part of the slab was always straight. We can also create a curved slab by using the `addSlab!` function. This uses a parametric representation of the slab and is a bit more involved than the `addBox!` function.
228+
So far, the subducting part of the slab was always straight. We can also create a curved slab by using the `add_slab!` function. This uses a parametric representation of the slab and is a bit more involved than the `add_box!` function.
229229

230230
We start with the horizontal part:
231231

@@ -236,15 +236,15 @@ z = range(-660,0, nz);
236236
Grid2D = CartData(xyz_grid(x,0,z))
237237
Phases = zeros(Int64, nx, 1, nz);
238238
Temp = fill(1350.0, nx, 1, nz);
239-
addBox!(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), zlim=(-80.0, 0.0), phase = ConstantPhase(1));
240240
```
241241

242242
Next, 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.
243243
Other parameters to be specified are `Thickness` (Slab thickness), `θ_max` (maximum slab dip angle), `Length` (length of slab), and `Lb` length of bending zoneof slab
244244

245245
```julia
246246
trench = Trench(Start=(0.0,-100.0), End=(0.0,100.0), Thickness=80.0, θ_max=45.0, Length=300, Lb=200, direction=-1.0);
247-
addSlab!(Phases, Temp, Grid2D, trench, phase = ConstantPhase(1));
247+
add_slab!(Phases, Temp, Grid2D, trench, phase = ConstantPhase(1));
248248
```
249249

250250
Add them to the `CartData` dataset:
@@ -262,7 +262,7 @@ Saved file: Grid2D_SubductionCurvedMechanical.vts
262262
![Mechanical2D_Tutorial_6](../assets/img/Mechanical2D_Tutorial_6.png)
263263

264264
#### Curved slab - thermo-mechanics
265-
The `addSlab!` function has a few more interesting options. You can, for example, specify a weak decoupling layer above the slab which adds a weak layer between the subducting and overriding slab.
265+
The `add_slab!` function has a few more interesting options. You can, for example, specify a weak decoupling layer above the slab which adds a weak layer between the subducting and overriding slab.
266266
You can also indicate a thermal structure for the slab, which can increase from a halfspace cooling model (of the horizontal part of the slab) to a slab that is heated by the surrounding mantle below a decouping depth `d_decoupling`.
267267

268268
Our starting basis is the example above with ridge and overriding slab
@@ -284,16 +284,16 @@ LithosphericPhases([15 20 55], [3 4 5], 1250)
284284
Lets 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-
addBox!(Phases, Temp, Grid2D; xlim=(200,1000), zlim=(-150.0, 0.0), phase = lith, T=HalfspaceCoolingTemp(Age=80));
288-
addBox!(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,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));
289289
```
290290

291291
The horizontal part of the oceanic plate is as before:
292292

293293
```julia
294294
v_spread_cm_yr = 3 #spreading velocity
295295
lith = LithosphericPhases(Layers=[15 55], Phases=[1 2], Tlab=1250)
296-
addBox!(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), zlim=(-150.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=v_spread_cm_yr));
297297
```
298298

299299
Yet, now we add a trench as well. The starting thermal age at the trench is that of the horizontal part of the oceanic plate:
@@ -321,7 +321,7 @@ in this case, we have a more reasonable slab thickness:
321321
```julia
322322
trench = Trench(Start=(0.0,-100.0), End=(0.0,100.0), Thickness=90.0, θ_max=30.0, Length=600, Lb=200,
323323
WeakzoneThickness=15, WeakzonePhase=6, d_decoupling=125);
324-
addSlab!(Phases, Temp, Grid2D, trench, phase = lith, T=T_slab);
324+
add_slab!(Phases, Temp, Grid2D, trench, phase = lith, T=T_slab);
325325
```
326326

327327
Lithosphere-asthenosphere boundary:

docs/src/man/Tutorial_NumericalModel_3D.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ Note that if the lowermost layer has the same phase as the mantle, you can defin
4343

4444
```julia
4545
lith = LithosphericPhases(Layers=[15 45 10], Phases=[0 1 2], Tlab=1250)
46-
addBox!(Phases, Temp, Grid; xlim=(-800,0.0), ylim=(-400, 400.0), zlim=(-80.0, 0.0), phase = lith,
46+
add_box!(Phases, Temp, Grid; xlim=(-800,0.0), ylim=(-400, 400.0), zlim=(-80.0, 0.0), phase = lith,
4747
Origin=(-0,0,0),
4848
T=SpreadingRateTemp(SpreadingVel=3, MORside="right"), StrikeAngle=30);
4949
```
5050

5151
And an an inclined part:
5252

5353
```julia
54-
addBox!(Phases, Temp, Grid; xlim=(0,300), ylim=(-400, 400.0), zlim=(-80.0, 0.0), phase = lith,
54+
add_box!(Phases, Temp, Grid; xlim=(0,300), ylim=(-400, 400.0), zlim=(-80.0, 0.0), phase = lith,
5555
Origin=(-0,0,0),
5656
T=McKenzie_subducting_slab(Tsurface=0,v_cm_yr=3), DipAngle=30, StrikeAngle=30);
5757
```
@@ -104,27 +104,27 @@ Overriding plate with a 30 km crust and mantle lithosphere that where T<1250 cel
104104

105105
```julia
106106
lith_cont = LithosphericPhases(Layers=[30 200 50], Phases=[3 4 2], Tlab=1250)
107-
addBox!(Phases, Temp, Grid; xlim=(400,1000), ylim=(-1000, 0.0), zlim=(-240.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=150));
108-
addBox!(Phases, Temp, Grid; xlim=(200,1000), ylim=(-1000, 0.0), zlim=(-80.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=150));
107+
add_box!(Phases, Temp, Grid; xlim=(400,1000), ylim=(-1000, 0.0), zlim=(-240.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=150));
108+
add_box!(Phases, Temp, Grid; xlim=(200,1000), ylim=(-1000, 0.0), zlim=(-80.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=150));
109109

110110
lith_cont = LithosphericPhases(Layers=[30 200 10], Phases=[5 6 2], Tlab=1250)
111-
addBox!(Phases, Temp, Grid; xlim=(400,1000), ylim=(0, 1000), zlim=(-240.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=200));
112-
addBox!(Phases, Temp, Grid; xlim=(200,1000), ylim=(0, 1000), zlim=( -80.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=200));
111+
add_box!(Phases, Temp, Grid; xlim=(400,1000), ylim=(0, 1000), zlim=(-240.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=200));
112+
add_box!(Phases, Temp, Grid; xlim=(200,1000), ylim=(0, 1000), zlim=( -80.0, 0.0), phase = lith_cont, T=HalfspaceCoolingTemp(Age=200));
113113
```
114114

115115
Define an oceanic plate with ridge
116116

117117
```julia
118118
v_spread_cm_yr = 3 #spreading velocity
119119
lith = LithosphericPhases(Layers=[15 45 10], Phases=[0 1 2], Tlab=1250)
120-
addBox!(Phases, Temp, Grid; xlim=(-800 , 200), ylim=(-1000, -400.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
121-
addBox!(Phases, Temp, Grid; xlim=(-1000,-800), ylim=(-1000, -400.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3,MORside="right"));
120+
add_box!(Phases, Temp, Grid; xlim=(-800 , 200), ylim=(-1000, -400.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
121+
add_box!(Phases, Temp, Grid; xlim=(-1000,-800), ylim=(-1000, -400.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3,MORside="right"));
122122

123-
addBox!(Phases, Temp, Grid; xlim=(-700, 200), ylim=(-400, 200.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
124-
addBox!(Phases, Temp, Grid; xlim=(-1000,-700), ylim=(-400, 200.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3,MORside="right"));
123+
add_box!(Phases, Temp, Grid; xlim=(-700, 200), ylim=(-400, 200.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
124+
add_box!(Phases, Temp, Grid; xlim=(-1000,-700), ylim=(-400, 200.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3,MORside="right"));
125125

126-
addBox!(Phases, Temp, Grid; xlim=(-650, 200), ylim=(200, 1000.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
127-
addBox!(Phases, Temp, Grid; xlim=(-1000,-650), ylim=(200, 1000.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3,MORside="right"));
126+
add_box!(Phases, Temp, Grid; xlim=(-650, 200), ylim=(200, 1000.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3));
127+
add_box!(Phases, Temp, Grid; xlim=(-1000,-650), ylim=(200, 1000.0), zlim=(-80.0, 0.0), phase = lith, T=SpreadingRateTemp(SpreadingVel=3,MORside="right"));
128128
```
129129

130130
Subducting parts of the oceanic plate
@@ -136,27 +136,27 @@ We want to add a smooth transition from a halfspace cooling 1D thermal profile t
136136
AgeTrench_Myrs = 1000*1e3/(v_spread_cm_yr/1e2)/1e6 #plate age @ trench
137137
trench1 = Trench(Start=(200.0,-1000.0), End=(200.0,-400.0), Thickness=90.0, θ_max=45.0, Length=600, Lb=200, WeakzoneThickness=15, WeakzonePhase=7, d_decoupling=175);
138138
T_slab = LinearWeightedTemperature( F1=HalfspaceCoolingTemp(Age=AgeTrench_Myrs), F2=McKenzie_subducting_slab(Tsurface=0,v_cm_yr=v_spread_cm_yr, Adiabat = 0.0))
139-
addSlab!(Phases, Temp, Grid, trench1, phase = lith, T=T_slab);
139+
add_slab!(Phases, Temp, Grid, trench1, phase = lith, T=T_slab);
140140
```
141141

142142
```julia
143143
AgeTrench_Myrs = (900)*1e3/(v_spread_cm_yr/1e2)/1e6 #plate age @ trench
144144
trench1 = Trench(Start=(200.0,-400.0), End=(200.0,200.0), Thickness=90.0, θ_max=45.0, Length=600, Lb=200, WeakzoneThickness=15, WeakzonePhase=7, d_decoupling=175);
145145
T_slab = LinearWeightedTemperature( F1=HalfspaceCoolingTemp(Age=AgeTrench_Myrs), F2=McKenzie_subducting_slab(Tsurface=0,v_cm_yr=v_spread_cm_yr, Adiabat = 0.0))
146-
addSlab!(Phases, Temp, Grid, trench1, phase = lith, T=T_slab);
146+
add_slab!(Phases, Temp, Grid, trench1, phase = lith, T=T_slab);
147147
```
148148

149149
```julia
150150
AgeTrench_Myrs = 850e3/(v_spread_cm_yr/1e2)/1e6 #plate age @ trench
151151
trench1 = Trench(Start=(200.0,200.0), End=(200.0,1000.0), Thickness=90.0, θ_max=45.0, Length=600, Lb=200, WeakzoneThickness=15, WeakzonePhase=7, d_decoupling=175);
152152
T_slab = LinearWeightedTemperature( F1=HalfspaceCoolingTemp(Age=AgeTrench_Myrs), F2=McKenzie_subducting_slab(Tsurface=0,v_cm_yr=v_spread_cm_yr, Adiabat = 0.0))
153-
addSlab!(Phases, Temp, Grid, trench1, phase = lith, T=T_slab);
153+
add_slab!(Phases, Temp, Grid, trench1, phase = lith, T=T_slab);
154154
```
155155

156156
Finally, it is often nice to see the deformation of the plate when it subducts. A simple way to do that is to put a `stripes` on top using `addStripes`, which has the same phase as the subducting crust.
157157

158158
```julia
159-
addStripes!(Phases, Grid; stripAxes = (1,1,0), phase = ConstantPhase(0), stripePhase = ConstantPhase(9), stripeWidth=50, stripeSpacing=200)
159+
add_stripes!(Phases, Grid; stripAxes = (1,1,0), phase = ConstantPhase(0), stripePhase = ConstantPhase(9), stripeWidth=50, stripeSpacing=200)
160160
```
161161

162162
Finally, we can add all this to the `CartData` dataset:

docs/src/man/geodynamic_setups.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ The routines provided here have the following functionality:
99
- Add various 1D thermal structures (and possibilities to combine them)
1010

1111
```@docs
12-
GeophysicalModelGenerator.addBox!
13-
GeophysicalModelGenerator.addLayer!
14-
GeophysicalModelGenerator.addSphere!
15-
GeophysicalModelGenerator.addEllipsoid!
16-
GeophysicalModelGenerator.addCylinder!
17-
GeophysicalModelGenerator.addStripes!
18-
GeophysicalModelGenerator.addSlab!
19-
GeophysicalModelGenerator.makeVolcTopo
12+
GeophysicalModelGenerator.add_box!
13+
GeophysicalModelGenerator.add_layer!
14+
GeophysicalModelGenerator.add_sphere!
15+
GeophysicalModelGenerator.add_ellipsoid!
16+
GeophysicalModelGenerator.add_cylinder!
17+
GeophysicalModelGenerator.add_stripes!
18+
GeophysicalModelGenerator.add_slab!
19+
GeophysicalModelGenerator.make_volc_topo
2020
GeophysicalModelGenerator.ConstantTemp
2121
GeophysicalModelGenerator.LinearTemp
2222
GeophysicalModelGenerator.HalfspaceCoolingTemp
2323
GeophysicalModelGenerator.SpreadingRateTemp
2424
GeophysicalModelGenerator.LithosphericTemp
2525
GeophysicalModelGenerator.ConstantPhase
26-
GeophysicalModelGenerator.compute_Phase
26+
GeophysicalModelGenerator.compute_phase
2727
GeophysicalModelGenerator.LithosphericPhases
2828
GeophysicalModelGenerator.McKenzie_subducting_slab
2929
GeophysicalModelGenerator.LinearWeightedTemperature

docs/src/man/tutorial_Polygon_structures.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This tutorial visualizes simplified geological as it is done here for a passive
88
## Steps
99

1010
#### 1. Set up your simplified background model
11-
Before adding specific geological features, a general simplified model setup is necessary. The construction is made by using the `addBox!` function. For the model the discontinuities are in 15, 45, 145, and 945 km depth.
11+
Before adding specific geological features, a general simplified model setup is necessary. The construction is made by using the `add_box!` function. For the model the discontinuities are in 15, 45, 145, and 945 km depth.
1212

1313
```julia
1414
using GeophysicalModelGenerator
@@ -29,10 +29,10 @@ Phase = ones(Int32,size(X))
2929
Temp = ones(Float64,size(X))*1350
3030

3131
# add different phases: crust->2, Mantle Lithosphere->3 Mantle->1
32-
addBox!(Phase, Temp, Cart; xlim=(0.0,800.0),ylim=(0.0,800.0), zlim=(-800.0,0.0), phase = LithosphericPhases(Layers=[15 30 100 800], Phases=[2 3 1 5], Tlab=1300 ), T=LinearTemp(Ttop=20, Tbot=1600))
32+
add_box!(Phase, Temp, Cart; xlim=(0.0,800.0),ylim=(0.0,800.0), zlim=(-800.0,0.0), phase = LithosphericPhases(Layers=[15 30 100 800], Phases=[2 3 1 5], Tlab=1300 ), T=LinearTemp(Ttop=20, Tbot=1600))
3333

3434
# add air phase 0
35-
addBox!(Phase, Temp, Cart; xlim=(0.0,800.0),ylim=(0.0,800.0), zlim=(0.0,50.0), phase = ConstantPhase(0), T=ConstantTemp(20.0))
35+
add_box!(Phase, Temp, Cart; xlim=(0.0,800.0),ylim=(0.0,800.0), zlim=(0.0,50.0), phase = ConstantPhase(0), T=ConstantTemp(20.0))
3636
```
3737

3838

@@ -47,13 +47,13 @@ To include the geological structures of a passive margin into the model, we use
4747
# unlimited number of points possible to create the polygon
4848

4949
# add sediment basin
50-
addPolygon!(Phase, Temp, Cart; xlim=[0.0,0.0, 160.0, 200.0],ylim=[100.0,300.0], zlim=[0.0,-10.0,-20.0,0.0], phase = ConstantPhase(8), T=LinearTemp(Ttop=20, Tbot=30));
50+
add_polygon!(Phase, Temp, Cart; xlim=[0.0,0.0, 160.0, 200.0],ylim=[100.0,300.0], zlim=[0.0,-10.0,-20.0,0.0], phase = ConstantPhase(8), T=LinearTemp(Ttop=20, Tbot=30));
5151

5252
# add thinning of the continental crust attached to the slab and its thickness
53-
addPolygon!(Phase, Temp, Cart; xlim=[0.0, 200.0, 0.0],ylim=[500.0,800.0], zlim=[-100.0,-150.0,-150.0], phase = ConstantPhase(5), T=LinearTemp(Ttop=1000, Tbot=1100));
53+
add_polygon!(Phase, Temp, Cart; xlim=[0.0, 200.0, 0.0],ylim=[500.0,800.0], zlim=[-100.0,-150.0,-150.0], phase = ConstantPhase(5), T=LinearTemp(Ttop=1000, Tbot=1100));
5454

5555
# add accretionary prism
56-
addPolygon!(Phase, Temp, Cart; xlim=[800.0, 600.0, 800.0],ylim=[100.0,800.0], zlim=[0.0,0.0,-60.0], phase = ConstantPhase(8), T=LinearTemp(Ttop=20, Tbot=30));
56+
add_polygon!(Phase, Temp, Cart; xlim=[800.0, 600.0, 800.0],ylim=[100.0,800.0], zlim=[0.0,0.0,-60.0], phase = ConstantPhase(8), T=LinearTemp(Ttop=20, Tbot=30));
5757
```
5858

5959
#### 3. Export final model setup to a paraview file

0 commit comments

Comments
 (0)