Skip to content

Commit d5dd2e1

Browse files
committed
Polygon again
1 parent dc372e4 commit d5dd2e1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/src/man/tutorial_Polygon_structures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ AddBox!(Phase, Temp, Cart; xlim=(0.0,800.0),ylim=(0.0,800.0), zlim=(0.0,50.0), p
4040
```
4141

4242

43-
#### 2. Add polygon struture
43+
#### 2. Add polygon structure
4444
For including the geological structures of a passive margin into the model via the polygon function, depths down to 150 km are focused on. With the polygon function, it is possible to create different shapes. In the example, the sediment basin shows a more trapezial (2D in x-/z-direction) shape, while the thinning of the plate is a more triangular (2D in x-/z-direction). More complex structures are possible to build in the background model due to the non-limitation number of points in the x- and z-direction. In y-direction only the length can be varied and is set by two values. The shape is not changeable. 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)).
4545

4646

4747
```julia
48-
# xlim: x-coordiates of the points, same ordering as zlim
48+
# xlim: x-coordinates of the points, same ordering as zlim
4949
# zlim: z-coordinates of the points, same ordering as xlim
5050
# ylim: limits the object within the two ylim values
5151
# unlimited number of points possible to create the polygon

src/Setup_geometry.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,9 @@ Parameters
485485
- Phase - Phase array (consistent with Grid)
486486
- Temp - Temperature array (consistent with Grid)
487487
- Grid - Grid structure (usually obtained with ReadLaMEM_InputFile)
488-
- xlim - x-cooridnate of the polygon points, same ordering as zlim, number of points unlimited
489-
- ylim - y-cooridnate, limition in length possible (two values (start and stop))
490-
- zlim - z-cooridnate of the polygon points, same ordering as xlim, number of points unlimited
488+
- xlim - x-coordinate of the polygon points, same ordering as zlim, number of points unlimited
489+
- ylim - y-coordinate, limitation in length possible (two values (start and stop))
490+
- zlim - z-coordinate of the polygon points, same ordering as xlim, number of points unlimited
491491
- phase - specifies the phase of the box. See `ConstantPhase()`
492492
- T - specifies the temperature of the box. See `ConstantTemp()`,`LinearTemp()`,`HalfspaceCoolingTemp()`,`SpreadingRateTemp()`
493493
@@ -543,7 +543,7 @@ end
543543

544544
# Compute thermal structure accordingly. See routines below for different options
545545
if T != nothing
546-
Temp[ind] = Compute_ThermalStructure(Temp[ind], X[ind], Y[ind], Z[ind], T)
546+
Temp[ind] = Compute_ThermalStructure(Temp[ind], X[ind], Y[ind], Z[ind], Phase[ind], T)
547547
end
548548

549549
# Set the phase. Different routines are available for that - see below.

tutorials/Tutorial_polygon_geometry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Temp = ones(Float64,size(X))*1350
2121
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) )#T=HalfspaceCoolingTemp(Tsurface=20.0, Tmantle=1350, Age=120, Adiabat=0.4)
2222

2323

24-
# xlim: x-coordiates of the points, same ordering as zlim
24+
# xlim: x-coordinates of the points, same ordering as zlim
2525
# zlim: z-coordinates of the points, same ordering as xlim
2626
# ylim: limits the object within the two ylim values
2727
# unlimited number of points possible to create the polygon

0 commit comments

Comments
 (0)