source: issm/trunk/test/Par/SquareSheetConstrainedCO2.par@ 24313

Last change on this file since 24313 was 24313, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24310

File size: 2.8 KB
Line 
1%Start defining model parameters here
2CO2_temp = 150; CO2_n = 7;
3CO2_meltingPoint = 195; CO2_latentHeat = 199000;
4CO2_rhoIce = 1562; CO2_heatCapacity = 700; CO2_thermalCond = 0.5;
5CO2_dynViscosity = 13.72e-6; CO2_rhoLiquidZeroDeg = 929;
6md.materials.rho_ice = CO2_rhoIce;
7md.materials.rho_freshwater = CO2_rhoLiquidZeroDeg;
8md.materials.thermalconductivity = CO2_thermalCond;
9md.materials.heatcapacity = CO2_heatCapacity;
10md.materials.meltingpoint = CO2_meltingPoint;
11md.materials.latentheat = CO2_latentHeat;
12md.materials.mu_water = CO2_dynViscosity;
13
14%Geometry
15hmin=300;
16hmax=1000;
17ymin=min(md.mesh.y);
18ymax=max(md.mesh.y);
19xmin=min(md.mesh.x);
20xmax=max(md.mesh.x);
21md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y-ymin)/(ymax-ymin)+0.1*(hmin-hmax)*(md.mesh.x-xmin)/(xmax-xmin);
22md.geometry.base=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness+20.;
23md.geometry.surface=md.geometry.base+md.geometry.thickness;
24
25%Initial velocity
26x = archread('../Data/SquareSheetConstrained.arch','x');
27y = archread('../Data/SquareSheetConstrained.arch','y');
28vx = archread('../Data/SquareSheetConstrained.arch','vx');
29vy = archread('../Data/SquareSheetConstrained.arch','vy');
30index = archread('../Data/SquareSheetConstrained.arch','index');
31
32x = x{1};
33y = y{1};
34vx = vx{1};
35vy = vy{1};
36index = index{1};
37md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y);
38md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y);
39clear vx vy x y index;
40md.initialization.vz=zeros(md.mesh.numberofvertices,1);
41md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
42
43%Materials
44md.initialization.temperature=CO2_temp*ones(md.mesh.numberofvertices,1);
45md.materials.rheology_B=nye(md.initialization.temperature,1);
46md.materials.rheology_n=CO2_n*ones(md.mesh.numberofelements,1);
47
48%Surface mass balance and basal melting
49md.smb.mass_balance=10*ones(md.mesh.numberofvertices,1);
50md.basalforcings.floatingice_melting_rate=5*ones(md.mesh.numberofvertices,1);
51md.basalforcings.groundedice_melting_rate=5*ones(md.mesh.numberofvertices,1);
52
53%Friction
54md.friction.coefficient=20*ones(md.mesh.numberofvertices,1);
55md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
56md.friction.p=ones(md.mesh.numberofelements,1);
57md.friction.q=ones(md.mesh.numberofelements,1);
58
59%Numerical parameters
60md.masstransport.stabilization=1;
61md.thermal.stabilization=1;
62md.verbose=verbose(0);
63md.settings.waitonlock=30;
64md.stressbalance.restol=0.05;
65md.stressbalance.reltol=0.05;
66md.steadystate.reltol=0.05;
67md.stressbalance.abstol=NaN;
68md.timestepping.time_step=1;
69md.timestepping.final_time=3;
70md.groundingline.migration='None';
71
72%Deal with boundary conditions:
73md=SetIceSheetBC(md);
74
75%Change name so that no tests have the same name
76A=dbstack;
77if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.