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

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

BUG: Updated par files to use contents of the returned cell array from archread

File size: 2.6 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.arch','x');
29y = archread('../Data/SquareSheetConstrained.arch','y');
30vx = archread('../Data/SquareSheetConstrained.arch','vx');
31vy = archread('../Data/SquareSheetConstrained.arch','vy');
32index = archread('../Data/SquareSheetConstrained.arch','index');
33
34x = x{1};
35y = y{1};
36vx = vx{1};
37vy = vy{1};
38index = index{1};
39
40md.initialization.vx=InterpFromMeshToMesh2d(index,x,y,vx,md.mesh.x,md.mesh.y);
41md.initialization.vy=InterpFromMeshToMesh2d(index,x,y,vy,md.mesh.x,md.mesh.y);
42clear vx vy x y index;
43md.initialization.vz=zeros(md.mesh.numberofvertices,1);
44md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
45
46%Materials
47md.initialization.temperature=(273.-20.)*ones(md.mesh.numberofvertices,1);
48md.materials.rheology_B=paterson(md.initialization.temperature);
49md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
50
51%Friction
52md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
53md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
54md.friction.p=ones(md.mesh.numberofelements,1);
55md.friction.q=ones(md.mesh.numberofelements,1);
56
57%Numerical parameters
58md.stressbalance.viscosity_overshoot=0.0;
59md.masstransport.stabilization=1.;
60md.thermal.stabilization=1.;
61md.verbose=verbose(0);
62md.settings.waitonlock=30;
63md.stressbalance.restol=0.05;
64md.steadystate.reltol=0.05;
65md.stressbalance.reltol=0.05;
66md.stressbalance.abstol=NaN;
67md.timestepping.time_step=1.;
68md.timestepping.final_time=3.;
69
70%Boundary conditions:
71md=SetIceSheetBC(md);
72
73%Change name so that no test have the same name
74A=dbstack;
75if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
76
Note: See TracBrowser for help on using the repository browser.