You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Adding complex geometries to a model setup including sedimentary basins, lithospheric thinning and an accretionary prism
2
+
3
+
4
+
## Goal
5
+
6
+
This tutorial visualizes simplified geological as it is done here for a passive margin where lithospheric thinning, sedimentary basin and accretionary prism occur. The simplification is based on a polygon structure for a pseudo-3D model. While the structure can have a random shape in the `x`- and `z`-direction, in the `y`-direction only the extent is variable.
7
+
8
+
## Steps
9
+
10
+
#### 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.
12
+
13
+
```julia
14
+
using GeophysicalModelGenerator
15
+
16
+
# number of cells in every direction
17
+
nx =100
18
+
ny =100
19
+
nz =200
20
+
21
+
# define domain size
22
+
x =LinRange(0.0,800.0,nx)
23
+
y =LinRange(0.0,800.0,ny)
24
+
z =LinRange(-660,50,nz)
25
+
Cart =CartData(XYZGrid(x, y, z))
26
+
27
+
# initialize phase and temperature matrix
28
+
Phase =ones(Int32,size(X))
29
+
Temp =ones(Float64,size(X))*1350
30
+
31
+
# add different phases: crust->2, Mantle Lithosphere->3 Mantle->1
To include the geological structures of a passive margin into the model, we use polygons for depths of up to 150 km. In the example, the sediment basin shows a more trapezoidal (2D in `x`-/`z`-direction) shape, while the thinning of the plate has a more triangular (2D in `x`-/`z`-direction). More complex structures can be build using arbitrarily sized polygons in `x`- and `z`-direction, wheraes in the `y`-direction only the length can be varied (specified by two values). The `x`- and `z`-values of the points need to be in the same order for selecting the correct point (P1(1/3), P2(2/2) --> xlim(1,2), ylim(3,2)).
41
+
42
+
43
+
```julia
44
+
# xlim: x-coordinates of the points, same ordering as zlim
45
+
# zlim: z-coordinates of the points, same ordering as xlim
46
+
# ylim: limits the object within the two ylim values
47
+
# unlimited number of points possible to create the polygon
After importing and looking at the file to paraview, some unresolved areas might be visible as they are visible in this model. That is due to the resolution and shape of the polygon. To reduce those artefacts an increase in resolution or a change of the polygon angle might help.
If you want to run the entire example, you can find the .jl code [here](https://github.com/JuliaGeodynamics/GeophysicalModelGenerator.jl/blob/main/tutorial/Tutorial_polygon_geometry.jl)
0 commit comments