1 | import numpy as np
|
---|
2 | from plotmodel import plotmodel
|
---|
3 | from SetIceSheetBC import SetIceSheetBC
|
---|
4 | #Parameterization for ISMIP F experiment
|
---|
5 |
|
---|
6 | #Set the Simulation generic name #md.miscellaneous
|
---|
7 | #->
|
---|
8 |
|
---|
9 | #Geometry
|
---|
10 | print(' Constructing Geometry')
|
---|
11 |
|
---|
12 | #Define the geometry of the simulation #md.geometry
|
---|
13 | #surface is [-x*tan(3.0*pi/180)] #md.mesh
|
---|
14 | #->
|
---|
15 |
|
---|
16 | #base is [surface-1000+100*exp(-((x-L/2).^2+(y-L/2).^2)/(10000.^2))]
|
---|
17 | #L is the size of the side of the square #max(md.mesh.x)-min(md.mesh.x)
|
---|
18 | #->
|
---|
19 |
|
---|
20 | #->
|
---|
21 |
|
---|
22 | #thickness is the difference between surface and base #md.geometry
|
---|
23 | #->
|
---|
24 |
|
---|
25 | #plot the geometry to check it out
|
---|
26 | #->
|
---|
27 |
|
---|
28 |
|
---|
29 | print(' Defining friction parameters')
|
---|
30 |
|
---|
31 | #These parameters will not be used but need to be fixed #md.friction
|
---|
32 | #one friciton coefficient per node (md.mesh.numberofvertices,1)
|
---|
33 | #conversion from year to seconds with #md.constants.yts
|
---|
34 | #->
|
---|
35 |
|
---|
36 | #one friction exponent (p,q) per element
|
---|
37 | #->
|
---|
38 |
|
---|
39 | #->
|
---|
40 |
|
---|
41 |
|
---|
42 | print(' Construct ice rheological properties')
|
---|
43 |
|
---|
44 | #The rheology parameters sit in the material section #md.materials
|
---|
45 | #B has one value per vertex
|
---|
46 | #->
|
---|
47 |
|
---|
48 | #n has one value per element
|
---|
49 | #->
|
---|
50 |
|
---|
51 |
|
---|
52 | print(' Set boundary conditions')
|
---|
53 |
|
---|
54 | #Set the default boundary conditions for an ice-sheet
|
---|
55 | # #help SetIceSheetBC
|
---|
56 | #->
|
---|
57 |
|
---|
58 | print(' Initializing velocity and pressure')
|
---|
59 |
|
---|
60 | #initialize the velocity and pressurefields of #md.initialization
|
---|
61 | #->
|
---|
62 |
|
---|
63 | #->
|
---|
64 |
|
---|
65 | #->
|
---|
66 |
|
---|
67 | #->
|
---|