Skip to content

Commit

Permalink
update some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Jul 10, 2024
1 parent e49f9ec commit 035d0e1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
8 changes: 6 additions & 2 deletions docs/src/man/Blankenbach.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ fig

### Final model
Temperature field
![Temperature](../assets/Blankenbach_Temp.png)
<!-- ![Temperature](../assets/Blankenbach_Temp.png) -->

<img src="../assets/Blankenbach_Temp.png" width="500" />

And time history of the rms-velocity and Nusselt number
![time series](../assets/Blankenbach_Time_Series_V_Nu.png)

<img src="../assets/Blankenbach_Time_Series_V_Nu.png" width="500" />
<!-- ![time series](../assets/Blankenbach_Time_Series_V_Nu.png) -->
3 changes: 2 additions & 1 deletion docs/src/man/ShearBands.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,5 @@ fig

### Final model
Shear Bands evolution in a 2D visco-elasto-plastic rheology model
![Shearbands](../assets/movies/DP_nx2058_2D.gif)

<img src="../assets/movies/DP_nx2058_2D.gif" width="500" />
23 changes: 9 additions & 14 deletions docs/src/man/subduction2D/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ add_box!(
T = HalfspaceCoolingTemp(Tsurface=20, Tmantle=Tbot, Age=80,Adiabat=0.4)
)
```
![](../../assets/Subduction2D_setup_4.png)
<img src="../../assets/Subduction2D_setup_1.png" width="750" />


Next we add a horizontal 80 km thick oceanic lithosphere. Note that we leave a 100 km buffer zone next to the vertical boundaries of the domain, to facilitate the sliding of the oceanic plates.
```julia
Expand All @@ -52,7 +53,7 @@ add_box!(
T = HalfspaceCoolingTemp(Tsurface=20, Tmantle=Tbot, Age=80, Adiabat=0.4)
)
```
![](../../assets/Subduction2D_setup_2.png)
<img src="../../assets/Subduction2D_setup_2.png" width="750" />

As in the original paper, we add a 8km thick crust on top of the subducting oceanic plate.
```julia
Expand All @@ -68,9 +69,9 @@ add_box!(
T = HalfspaceCoolingTemp(Tsurface=20, Tmantle=Tbot, Age=80, Adiabat=0.4)
)
```
![](../../assets/Subduction2D_setup_3.png)
<img src="../../assets/Subduction2D_setup_3.png" width="750" />

And finally we add the subducting slab, with the trench located at 1430km from the right-hand-side boundary.
And we add the subducting slab, with the trench located at 1430km from the right-hand-side boundary.

```julia
add_box!(
Expand All @@ -84,18 +85,12 @@ add_box!(
T = HalfspaceCoolingTemp(Tsurface=20, Tmantle=Tbot, Age=80, Adiabat=0.4)
)
```
![](../../assets/Subduction2D_setup_4.png)
<img src="../../assets/Subduction2D_setup_4.png" width="750" />

To finish, we set every cell above the surface to be sticky air, with a temperature of 20°C.
```julia
surf = Grid2D.z.val .> 0.0
@views Temp[surf] .= 20.0
@views Phases[surf] .= 3
@views Temp[surf] .= 20.0
```
![](../../assets/Subduction2D_setup_5.png)

```julia
li = (abs(last(x)-first(x)), abs(last(z)-first(z))) .* 1e3 # in meters
origin = (x[1], z[1]) .* 1e3 # lower-left corner of the domain
Phases = Phases[:,1,:] .+ 1 # +1 because Julia is 1-indexed
Temp = Temp[:,1,:].+273 # in Kelvin
```
<img src="../../assets/Subduction2D_setup_5.png" width="750" />

0 comments on commit 035d0e1

Please sign in to comment.