1 | #Test Name: GiaIvinsBenchmarksAB2dC1
|
---|
2 | from socket import gethostname
|
---|
3 |
|
---|
4 | import numpy as np
|
---|
5 |
|
---|
6 | from model import *
|
---|
7 | from parameterize import *
|
---|
8 | from setmask import *
|
---|
9 | from solve import *
|
---|
10 | from triangle import *
|
---|
11 |
|
---|
12 |
|
---|
13 | #Benchmark experiments (Figure A2c Ivins and James, 1999, Geophys. J. Int.)
|
---|
14 | md = triangle(model(), '../Exp/RoundFrontEISMINT.exp', 200000)
|
---|
15 | md = setmask(md, '', '')
|
---|
16 | md = parameterize(md, '../Par/GiaIvinsBenchmarksCD.py')
|
---|
17 |
|
---|
18 | #indicate what you want to compute
|
---|
19 | md.gia.cross_section_shape = 1 # for square-edged x - section
|
---|
20 |
|
---|
21 | #define loading history
|
---|
22 | md.timestepping.start_time = 0.3 # for t \approx 0 kyr : to get eleastic response!
|
---|
23 | md.timestepping.final_time = 2500000 # 2, 500 kyr
|
---|
24 | md.geometry.thickness = np.array([np.append(md.geometry.thickness * 0.0, 0.0),
|
---|
25 | np.append(md.geometry.thickness / 2.0, 0.1),
|
---|
26 | np.append(md.geometry.thickness, 0.2),
|
---|
27 | np.append(md.geometry.thickness, md.timestepping.start_time)]).T
|
---|
28 |
|
---|
29 | #solve for GIA deflection
|
---|
30 | md.cluster = generic('name', gethostname(), 'np', 3)
|
---|
31 | md.verbose = verbose('1111111')
|
---|
32 | md = solve(md, 'Gia')
|
---|
33 |
|
---|
34 | #Fields and tolerances to track changes
|
---|
35 | field_names = ['UGia', 'UGiaRate']
|
---|
36 | field_tolerances = [1e-13, 1e-13]
|
---|
37 | field_values = [md.results.GiaSolution.UGia, md.results.GiaSolution.UGiaRate]
|
---|