source: issm/trunk/test/Par/SquareSheetShelf.par@ 9677

Last change on this file since 9677 was 9677, checked in by seroussi, 13 years ago

class steadystate

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1%Start defining model parameters here
2
3%Geometry
4hmin=300;
5hmax=1000;
6ymin=min(md.y);
7ymax=max(md.y);
8md.thickness=hmax+(hmin-hmax)*(md.y-ymin)/(ymax-ymin);
9md.bed=-md.materials.rho_ice/md.materials.rho_water*md.thickness;
10bed_sheet=-md.materials.rho_ice/md.materials.rho_water*(hmax+(hmin-hmax)*(ymax/2-ymin)/(ymax-ymin));
11pos=find(md.y<=ymax/2);
12md.bed(pos)=bed_sheet;
13md.surface=md.bed+md.thickness;
14
15%Initial velocity
16load('../Data/SquareSheetShelf.data','-mat');
17md.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.x,md.y);
18md.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.x,md.y);
19clear vx vy x y index;
20md.vz=zeros(md.numberofnodes,1);
21md.pressure=zeros(md.numberofnodes,1);
22
23%Materials
24md.temperature=(273-20)*ones(md.numberofnodes,1);
25md.materials.rheology_B=paterson(md.temperature);
26md.materials.rheology_n=3*ones(md.numberofelements,1);
27
28%Accumulation and melting
29md.surfaceforcings.mass_balance=10*ones(md.numberofnodes,1);
30md.basalforcings.melting_rate=5*ones(md.numberofnodes,1);
31
32%Friction
33pos=find(md.mask.elementonfloatingice);
34md.friction.coefficient=20*ones(md.numberofnodes,1);
35md.friction.coefficient(md.elements(pos,:))=0;
36md.friction.p=ones(md.numberofelements,1);
37md.friction.q=ones(md.numberofelements,1);
38
39%Numerical parameters
40md.viscosity_overshoot=0.0;
41md.prognostic.stabilization=1;
42md.thermal.stabilization=1;
43md.verbose=verbose(0);
44md.waitonlock=30;
45md.eps_res=0.05;
46md.steadystate.reltol=0.05;
47md.eps_rel=0.05;
48md.eps_abs=NaN;
49md.timestepping.time_step=1;
50md.timestepping.final_time=3;
51
52%Deal with boundary conditions:
53md=SetMarineIceSheetBC(md,'../Exp/SquareFront.exp');
54
55%Change name so that no test have the same name
56A=dbstack;
57if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.