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

Last change on this file since 25836 was 25836, checked in by Mathieu Morlighem, 4 years ago

merged trunk-jpl and trunk for revision 25834

  • Property svn:executable set to *
File size: 2.4 KB
RevLine 
[4996]1%Start defining model parameters here
2
3%Geometry
[13975]4hmin=300.;
5hmax=1000.;
[9734]6ymin=min(md.mesh.y);
7ymax=max(md.mesh.y);
[16137]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);
[17806]11md.geometry.base=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness;
[9636]12bed_sheet=-md.materials.rho_ice/md.materials.rho_water*(hmax+(hmin-hmax)*(ymax/2-ymin)/(ymax-ymin));
[13975]13pos=find(md.mesh.y<=ymax/2.);
[17806]14md.geometry.base(pos)=bed_sheet;
15md.geometry.surface=md.geometry.base+md.geometry.thickness;
[4996]16
17%Initial velocity
[21341]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};
[9734]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);
[4996]30clear vx vy x y index;
[9725]31md.initialization.vz=zeros(md.mesh.numberofvertices,1);
32md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
[4996]33
34%Materials
[13975]35md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
[9684]36md.materials.rheology_B=paterson(md.initialization.temperature);
[13975]37md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
[4996]38
39%Accumulation and melting
[20500]40md.smb.mass_balance=10.*ones(md.mesh.numberofvertices,1);
[18301]41md.basalforcings.groundedice_melting_rate=5.*ones(md.mesh.numberofvertices,1);
42md.basalforcings.floatingice_melting_rate=5.*ones(md.mesh.numberofvertices,1);
[4996]43
44%Friction
[13975]45md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
[25836]46md.friction.coefficient(find(md.mask.ocean_levelset<0.))=0.;
[9725]47md.friction.p=ones(md.mesh.numberofelements,1);
48md.friction.q=ones(md.mesh.numberofelements,1);
[4996]49
50%Numerical parameters
[16137]51md.masstransport.stabilization=1;
[9632]52md.thermal.stabilization=1;
[6307]53md.verbose=verbose(0);
[9702]54md.settings.waitonlock=30;
[16137]55md.stressbalance.restol=0.05;
[9677]56md.steadystate.reltol=0.05;
[16137]57md.stressbalance.reltol=0.05;
58md.stressbalance.abstol=NaN;
[13975]59md.timestepping.time_step=1.;
60md.timestepping.final_time=3.;
[23189]61md.groundingline.migration='None';
[4996]62
63%Deal with boundary conditions:
[8939]64md=SetMarineIceSheetBC(md,'../Exp/SquareFront.exp');
[4999]65
66%Change name so that no test have the same name
67A=dbstack;
[9625]68if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.