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

Last change on this file since 17806 was 17806, checked in by Mathieu Morlighem, 11 years ago

merged trunk-jpl and trunk for revision 17804

  • Property svn:executable set to *
File size: 2.3 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 = transpose(ncread('../Data/SquareSheetShelf.nc','x'));
19y = transpose(ncread('../Data/SquareSheetShelf.nc','y'));
20vx = transpose(ncread('../Data/SquareSheetShelf.nc','vx'));
21vy = transpose(ncread('../Data/SquareSheetShelf.nc','vy'));
22index = transpose(ncread('../Data/SquareSheetShelf.nc','index'));
23md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y);
24md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y);
25clear vx vy x y index;
26md.initialization.vz=zeros(md.mesh.numberofvertices,1);
27md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
28
29%Materials
30md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
31md.materials.rheology_B=paterson(md.initialization.temperature);
32md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
33
34%Accumulation and melting
35md.surfaceforcings.mass_balance=10.*ones(md.mesh.numberofvertices,1);
36md.basalforcings.melting_rate=5.*ones(md.mesh.numberofvertices,1);
37
38%Friction
39md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
40md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
41md.friction.p=ones(md.mesh.numberofelements,1);
42md.friction.q=ones(md.mesh.numberofelements,1);
43
44%Numerical parameters
45md.stressbalance.viscosity_overshoot=0.0;
46md.masstransport.stabilization=1;
47md.thermal.stabilization=1;
48md.verbose=verbose(0);
49md.settings.waitonlock=30;
50md.stressbalance.restol=0.05;
51md.steadystate.reltol=0.05;
52md.stressbalance.reltol=0.05;
53md.stressbalance.abstol=NaN;
54md.timestepping.time_step=1.;
55md.timestepping.final_time=3.;
56
57%Deal with boundary conditions:
58md=SetMarineIceSheetBC(md,'../Exp/SquareFront.exp');
59
60%Change name so that no test have the same name
61A=dbstack;
62if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.