source: issm/trunk/examples/IceflowModels/SquareShelf.par@ 23189

Last change on this file since 23189 was 23189, checked in by Mathieu Morlighem, 7 years ago

merged trunk-jpl and trunk for revision 23187

  • Property svn:executable set to *
File size: 1.9 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;
12md.geometry.surface=md.geometry.base+md.geometry.thickness;
13
14%Initial velocity and pressure
15x = transpose(ncread('../Data/SquareShelf.nc','x'));
16y = transpose(ncread('../Data/SquareShelf.nc','y'));
17vx = transpose(ncread('../Data/SquareShelf.nc','vx'));
18vy = transpose(ncread('../Data/SquareShelf.nc','vy'));
19index = transpose(ncread('../Data/SquareShelf.nc','index'));
20md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y);
21md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y);
22clear vx vy x y index;
23md.initialization.vz=zeros(md.mesh.numberofvertices,1);
24md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
25
26%Materials
27md.initialization.temperature=(273-20)*ones(md.mesh.numberofvertices,1);
28md.materials.rheology_B=paterson(md.initialization.temperature);
29md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
30
31%Friction
32md.friction.coefficient=20*ones(md.mesh.numberofvertices,1);
33md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
34md.friction.p=ones(md.mesh.numberofelements,1);
35md.friction.q=ones(md.mesh.numberofelements,1);
36
37%Numerical parameters
38md.masstransport.stabilization=1;
39md.thermal.stabilization=1;
40md.settings.waitonlock=30;
41md.verbose=verbose(0);
42md.stressbalance.restol=0.10;
43md.steadystate.reltol=0.02;
44md.stressbalance.reltol=0.02;
45md.stressbalance.abstol=NaN;
46md.timestepping.time_step=1;
47md.timestepping.final_time=3;
48
49%Boundary conditions:
50md=SetIceShelfBC(md,'./SquareFront.exp');
51
52%Change name so that no test have the same name
53A=dbstack;
54if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.