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