source: issm/trunk-jpl/test/Par/GiaBenchmarksCD.par@ 21166

Last change on this file since 21166 was 21166, checked in by agscott1, 9 years ago

CHG: Removed nc support for test Data, updated Data, Par and matlab functions to use arch

File size: 2.5 KB
Line 
1%Geometry specific to Experiments C and D
2rad=800000;
3nv=md.mesh.numberofvertices;
4for i=1:nv,
5 dist=sqrt(md.mesh.x(i).^2+md.mesh.y(i)^2);
6 if (dist <= rad)
7 md.geometry.thickness(i)=3000.0;
8 else
9 md.geometry.thickness(i)=1.0; % non-zero thickness
10 end
11end
12md.geometry.thickness=md.geometry.thickness';
13md.geometry.base=zeros(md.mesh.numberofvertices,1);
14md.geometry.surface=md.geometry.thickness+md.geometry.base;
15
16%Ice density used for benchmarking, not 917 kg/m^3
17md.materials.rho_ice=1000; %kg m^3
18
19%GIA parameters specific to Experiments A and B
20md.gia.mantle_viscosity=10^21*ones(md.mesh.numberofvertices,1); %in Pa.s
21md.gia.lithosphere_thickness=100*ones(md.mesh.numberofvertices,1); %in km
22md.materials.lithosphere_shear_modulus=6.7*10^10; %in Pa
23md.materials.lithosphere_density=3.32; %in g/cm^3
24md.materials.mantle_shear_modulus=1.45*10^11; %in Pa
25md.materials.mantle_density=3.34; %in g/cm^3
26
27%Initial velocity
28x = archread('../Data/SquareSheetConstrained.nc','x');
29y = archread('../Data/SquareSheetConstrained.nc','y');
30vx = archread('../Data/SquareSheetConstrained.nc','vx');
31vy = archread('../Data/SquareSheetConstrained.nc','vy');
32index = archread('../Data/SquareSheetConstrained.nc','index');
33
34md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y);
35md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y);
36clear vx vy x y index;
37md.initialization.vz=zeros(md.mesh.numberofvertices,1);
38md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
39
40%Materials
41md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
42md.materials.rheology_B=paterson(md.initialization.temperature);
43md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
44
45%Friction
46md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
47md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
48md.friction.p=ones(md.mesh.numberofelements,1);
49md.friction.q=ones(md.mesh.numberofelements,1);
50
51%Numerical parameters
52md.stressbalance.viscosity_overshoot=0.0;
53md.masstransport.stabilization=1.;
54md.thermal.stabilization=1.;
55md.verbose=verbose(0);
56md.settings.waitonlock=30;
57md.stressbalance.restol=0.05;
58md.steadystate.reltol=0.05;
59md.stressbalance.reltol=0.05;
60md.stressbalance.abstol=NaN;
61md.timestepping.time_step=1.;
62md.timestepping.final_time=3.;
63
64%Boundary conditions:
65md=SetIceSheetBC(md);
66
67%Change name so that no test have the same name
68A=dbstack;
69if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
70
Note: See TracBrowser for help on using the repository browser.