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