source: issm/trunk/examples/ISMIP/IsmipA.py@ 26744

Last change on this file since 26744 was 26744, checked in by Mathieu Morlighem, 3 years ago

merged trunk-jpl and trunk for revision 26742

File size: 1.1 KB
Line 
1import numpy as np
2from plotmodel import plotmodel
3from SetIceSheetBC import SetIceSheetBC
4#Parameterization for ISMIP A experiment
5
6#Set the Simulation generic name #md.miscellaneous
7#->
8
9#Geometry
10print(' Constructing Geometry')
11
12#Define the geometry of the simulation #md.geometry
13#surface is [-x*tan(0.5*pi/180)] #md.mesh
14#->
15
16#base is [surface-1000+500*sin(x*2*pi/L).*sin(y*2*pi/L)]
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
29print(' 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#->
34
35#one friciton exponent (p,q) per element
36#->
37
38#->
39
40
41print(' Construct ice rheological properties')
42
43#The rheology parameters sit in the material section #md.materials
44#B has one value per vertex
45#->
46
47#n has one value per element
48#->
49
50
51print(' Set boundary conditions')
52
53#Set the default boundary conditions for an ice-sheet
54# help SetIceSheetBC
55#->
Note: See TracBrowser for help on using the repository browser.