-
Notifications
You must be signed in to change notification settings - Fork 0
/
wedge.py
225 lines (199 loc) · 7.29 KB
/
wedge.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# %% markdown
# # Thust Wedge Tutorial
#
# Model Setup: Arijit Laik([email protected])
#
# Revision: Romain Beucher ([email protected])
#
# This tutorial is mostly based off Ruh et al. (2013) and other similar stuides, which examine the development thrust sheet and or accretionary wegdes with visco-plastic rheologies .In this 2D model, the boundary conditions, initial conditions,geometry material properties are based on Ruh et al. and other such similar studies.(see Ruh et al. 2013 and references therein: J.B. Ruh, T. Gerya nd J.-P. Burg (2013), G3, v.14(4), p. 1131-1155)
# %% markdown
# ![Tutorial10](./images/Tutorial_10.gif)
# %%
import underworld.function as fn
import UWGeodynamics as GEO
import numpy as np
# import glucifer
# %% markdown
# ### Model Scaling
# %%
u = GEO.UnitRegistry
velocity = 1 * u.centimeter / u.year
model_length = 100.0e3 * u.meter
bodyforce = 2700.0 * u.kilogram / u.metre ** 3 * 9.81 * u.meter / u.second ** 2
KL = model_length
Kt = KL / velocity
KM = bodyforce * KL ** 2 * Kt ** 2
GEO.scaling_coefficients["[length]"] = KL
GEO.scaling_coefficients["[time]"] = Kt
GEO.scaling_coefficients["[mass]"] = KM
Model = GEO.Model(
elementRes=(1024, 192),
minCoord=(0.0 * u.kilometer, -7 * u.kilometer),
maxCoord=(128.0 * u.kilometer, 17.0 * u.kilometer),
gravity=(0.0, -9.81 * u.meter / u.second ** 2),
)
# %%
Model.outputDir = "T10_uw"
# %% markdown
# ### Material Setup
#
# We will start by defining the air layer, the rigid base and the frictional layer.
# %%
air_shape = GEO.shapes.Layer(top=Model.top, bottom=0.0 * u.kilometer)
fricLayerShape = GEO.shapes.Layer(
top=Model.bottom + 1.0 * u.kilometer, bottom=Model.bottom + 0.5 * u.kilometer
)
rigidBaseShape = GEO.shapes.Layer(
top=Model.bottom + 0.5 * u.kilometer, bottom=Model.bottom
)
air = Model.add_material(name="Air", shape=air_shape)
frictionalBasal = Model.add_material(name="Frictional", shape=fricLayerShape)
rigidBase = Model.add_material(name="Frictional", shape=rigidBaseShape)
sediment = Model.add_material(name="Sediment")
# %% markdown
# ### Pile of sedimentary layers
# %% markdown
# We define a 6km thick pile of sedimentary layers, with each layer being 0.5 km thick, for a total of 12 layers
# %%
top_pile = 0.0
bottom_pile = -6.0 * u.kilometer
NLayers = 12
layer_thickness = (top_pile - bottom_pile) / NLayers
plastic_pile = []
layer_above = air_shape
for index in range(NLayers):
shape = GEO.shapes.Layer(
top=layer_above.bottom, bottom=layer_above.bottom - layer_thickness
)
material = Model.add_material(name="Plastic {0}".format(index), shape=shape)
plastic_pile.append(material)
layer_above = shape
# %%
# colours = "tan #3A3A3A #00a8a8 " + 6 * "#425e6a salmon "
# FigMat = glucifer.Figure(figsize=(1200, 250), quality=3)
# FigMat.Points(
# Model.swarm,
# Model.materialField,
# discrete=True,
# colours=colours,
# fn_mask=Model.materialField > air.index,
# )
# FigMat.objects[0].colourBar["binlabels"] = True
# FigMat.show()
# %% markdown
# ## Model (Global) properties
# %%
Model.density = 2700 * u.kilogram / u.metre ** 3
Model.viscosity = 1e23 * u.pascal * u.second
Model.maxViscosity = 1e23 * u.pascal * u.second
Model.minViscosity = 5e19 * u.pascal * u.second
# %% markdown
# ## Viscosity
# %%
air.viscosity = 1e19 * u.pascal * u.second
air.minViscosity = 1e19 * u.pascal * u.second
air.density = 1.0 * u.kilogram / u.metre ** 3
# Note that this is not necessary as this does not differ from the
# Model property.
for material in plastic_pile:
material.density = 2700 * u.kilogram / u.metre ** 3
material.viscosity = 1e23 * u.pascal * u.second
frictionalBasal.viscosity = 1e23 * u.pascal * u.second
rigidBase.viscosity = 1e23 * u.pascal * u.second
sediment.viscosity = 1e22 * u.pascal * u.second
# %% markdown
# ## Plasticity
# %%
plastic_Law = GEO.DruckerPrager(
cohesion=20.0 * u.megapascal,
# cohesionAfterSoftening=4.0 * u.megapascal,
frictionCoefficient=np.tan(np.radians(25.0)),
# frictionAfterSoftening=np.tan(np.radians(20.0)),
# epsilon1=0.01,
# epsilon2=0.06,
)
sediment.plasticity = GEO.DruckerPrager(
cohesion=10.0 * u.megapascal,
# cohesionAfterSoftening=4.0 * u.megapascal,
frictionCoefficient=np.tan(np.radians(20.0)),
# frictionAfterSoftening=np.tan(np.radians(15.0)),
# epsilon1=0.01,
# epsilon2=0.03,
)
for material in plastic_pile:
material.plasticity = plastic_Law
frictionalBasal.plasticity = GEO.DruckerPrager(
cohesion=0.1 * u.megapascal,
frictionCoefficient=np.tan(np.radians(12.0)),
# frictionAfterSoftening=np.tan(np.radians(6.0)),
# epsilon1=0.01,
# epsilon2=0.0,
)
# %% markdown
# ## Velocity Boundary Conditions
# The rigid base has the same velocity(=1cm/year,or velocity of the left wall), the linear gradational velocity is in the low frictional layer, this prevents the rigid bottom sheet from bending at the left edge, moreover as the rigid bottom sheet is analogous to a Mylar(PET) conveyor belt / sheet in sandbox models(Konstantinovskaya and Malavieille, 2011[https://doi.org/10.1016/j.tecto.2011.01.020], or Bose et al 2014[https://doi.org/10.1016/j.jsg.2014.07.004])
# The boundary conditions simulate the mechanics of convergent plate boundaries where a rigid backstop scrapes upper levels of the crust off a rigid moving "plate". This is comparable to setups of analog models, where a rough sheet lying below sand layers is pulled out below a fixed and rigid backstop .This setup also matches the boundary conditions used in the analytical critical wedge theory. New swarms coming in through the left side allow for simulation of long term deformation.
#
# ![setupandBCs](./images/Tutorial_10_bcs.png)
# %%
tapeL = frictionalBasal
flthick = GEO.nd(tapeL.top - tapeL.bottom)
conditions = [
(Model.y <= GEO.nd(rigidBase.top), GEO.nd(-velocity)),
(
Model.y < GEO.nd(tapeL.top),
GEO.nd(-velocity) * (flthick - (Model.y - GEO.nd(tapeL.bottom))) / flthick,
),
(True, GEO.nd(0.0 * u.centimeter / u.year)),
]
fn_condition = fn.branching.conditional(conditions)
Model.set_velocityBCs(
left=[fn_condition, 0.0],
right=[-velocity, None],
top=[None, None],
bottom=[-velocity, 0.0],
)
# %%
# Fig = glucifer.Figure(figsize=(1200, 250), quality=3)
# Fig.Surface(Model.mesh, fn.math.dot(Model.velocityField, Model.velocityField))
# Fig.show()
# %%
Model.solver.set_inner_method("mumps")
Model.solver.set_penalty(1e6)
GEO.rcParams["nonlinear.tolerance"] = 1e-2
GEO.rcParams["initial.nonlinear.tolerance"] = 1e-2
# %%
Model.init_model()
# %%
# Fig = glucifer.Figure(figsize=(1200, 250), quality=3)
# Fig.Points(
# Model.swarm,
# GEO.Dimensionalize(Model.viscosityField, u.pascal * u.second),
# logScale=True,
# )
# Fig.show()
# %%
badRes = 0.7 * ((Model.maxCoord[0] - Model.minCoord[0]) / Model.elementRes[0])
Model.surfaceProcesses = GEO.surfaceProcesses.Badlands(
airIndex=[air.index],
sedimentIndex=sediment.index,
XML="ressources/badlandsT10.xml",
resolution=badRes,
checkpoint_interval=0.2e6 * u.years,
aspectRatio2d=0.02,
outputDir="T10_bl",
)
# %%
# def post_solve_hook():
# global FigMat
# if Model.step % 10 == 0:
# FigMat.save("Material-{0}.png".format(Model.step))
#
#
# Model.postSolveHook = post_solve_hook
# %%
Model.run_for(15 * u.megayears, checkpoint_interval=0.2e6 * u.years, restartStep=None)
# %%
# %%
# air.index
# %%