source: issm/workshop/08ISMIP/CheatyIsmipF.par@ 18038

Last change on this file since 18038 was 18038, checked in by bdef, 11 years ago

Adding ISMIP tutorial

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