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

Last change on this file since 21341 was 21341, checked in by Mathieu Morlighem, 8 years ago

merged trunk-jpl and trunk for revision 21337

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1%Start defining model parameters here
2
3%Geometry
4hmin=300.;
5hmax=1000.;
6ymin=min(md.mesh.y);
7ymax=max(md.mesh.y);
8xmin=min(md.mesh.x);
9xmax=max(md.mesh.x);
10md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y-ymin)/(ymax-ymin)+0.1*(hmin-hmax)*(md.mesh.x-xmin)/(xmax-xmin);
11md.geometry.base=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness;
12bed_sheet=-md.materials.rho_ice/md.materials.rho_water*(hmax+(hmin-hmax)*(ymax/2-ymin)/(ymax-ymin));
13pos=find(md.mesh.y<=ymax/2.);
14md.geometry.base(pos)=bed_sheet;
15md.geometry.surface=md.geometry.base+md.geometry.thickness;
16
17%Initial velocity
18x = archread('../Data/SquareSheetShelf.arch','x');
19y = archread('../Data/SquareSheetShelf.arch','y');
20vx = archread('../Data/SquareSheetShelf.arch','vx');
21vy = archread('../Data/SquareSheetShelf.arch','vy');
22index = archread('../Data/SquareSheetShelf.arch','index');
23x = x{1};
24y = y{1};
25vx = vx{1};
26vy = vy{1};
27index = index{1};
28md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y);
29md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y);
30clear vx vy x y index;
31md.initialization.vz=zeros(md.mesh.numberofvertices,1);
32md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
33
34%Materials
35md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
36md.materials.rheology_B=paterson(md.initialization.temperature);
37md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
38
39%Accumulation and melting
40md.smb.mass_balance=10.*ones(md.mesh.numberofvertices,1);
41md.basalforcings.groundedice_melting_rate=5.*ones(md.mesh.numberofvertices,1);
42md.basalforcings.floatingice_melting_rate=5.*ones(md.mesh.numberofvertices,1);
43
44%Friction
45md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
46md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
47md.friction.p=ones(md.mesh.numberofelements,1);
48md.friction.q=ones(md.mesh.numberofelements,1);
49
50%Numerical parameters
51md.stressbalance.viscosity_overshoot=0.0;
52md.masstransport.stabilization=1;
53md.thermal.stabilization=1;
54md.verbose=verbose(0);
55md.settings.waitonlock=30;
56md.stressbalance.restol=0.05;
57md.steadystate.reltol=0.05;
58md.stressbalance.reltol=0.05;
59md.stressbalance.abstol=NaN;
60md.timestepping.time_step=1.;
61md.timestepping.final_time=3.;
62
63%Deal with boundary conditions:
64md=SetMarineIceSheetBC(md,'../Exp/SquareFront.exp');
65
66%Change name so that no test have the same name
67A=dbstack;
68if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.