Skip to content

Commit 43d49f5

Browse files
docs
1 parent 0e7c745 commit 43d49f5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ makedocs(;
105105
"19 - Jura tutorial" => "man/Tutorial_Jura.md",
106106
"20 - 2D model setups" => "man/Tutorial_NumericalModel_2D.md",
107107
"21 - 3D model setups" => "man/Tutorial_NumericalModel_3D.md",
108-
"22 - Build geometry from polygons" => "man/tutorial_Polygon_structures.md"
108+
"22 - 3D model setups" => "man/Tutorial_VolcanoModel_3D.md",
109+
"23 - Build geometry from polygons" => "man/tutorial_Polygon_structures.md"
109110
],
110111
"User Guide" => Any[
111112
"Installation" => "man/installation.md",

docs/src/man/Tutorial_VolcanoModel_3D.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
```@meta
2-
EditURL = "../../../tutorials/Tutorial_NumericalModel_3D.jl"
3-
```
4-
51
# Simple model of a magmatic chamber with a volcano on top
62

73
### Aim
84
The aim of this tutorial is to show you how to create 3D numerical model setups that can be used as initial setups for other codes.
95

106
### Generating the model
117

12-
Lets start with creating a 3D model setup in cartesian coordinates, which uses the `CartData` data structure, with a resolution of $ 128 \times 128 \times 128 $ inside the domain $\Omega \in [-100,100] \times [-100,100] \times [-110,50]$ km
8+
Lets start with creating a 3D model setup in cartesian coordinates, which uses the `CartData` data structure, with a resolution of $ 128 \times 128 \times 128 $ grid points, inside the domain $\Omega \in [-100,100] \times [-100,100] \times [-110,50]$ km
139

1410
```julia
1511
using GeophysicalModelGenerator
@@ -57,7 +53,7 @@ add_volcano!(Phases, Temp, Grid;
5753
T = HalfspaceCoolingTemp(Age=20)
5854
)
5955
```
60-
56+
We can also add a magmatic chamber located below the volcano
6157
```julia
6258
add_ellipsoid!(Phases, Temp, Grid;
6359
cen = (0, 0, -40),
@@ -66,12 +62,17 @@ add_ellipsoid!(Phases, Temp, Grid;
6662
)
6763
```
6864

65+
where we prescribe a constant temperature of $T=1400^{\circ}C$
6966
```julia
7067
@. Temp[Phases == 4] = 1400
71-
@. Temp[Phases == 0] = 0
7268
Grid = addfield(Grid, (;Phases, Temp))
7369
```
7470

71+
Finally we setup the temperature of the air to $T^{\text{air}}=0^{\circ}C$
72+
```julia
73+
@. Temp[Phases == 0] = 0
74+
```
75+
7576
```julia
7677
write_paraview(Grid,"VolcanoModel3D");
7778
```

0 commit comments

Comments
 (0)