source: issm/trunk/test/Par/RoundSheetStaticEISMINT.par@ 20500

Last change on this file since 20500 was 20500, checked in by Mathieu Morlighem, 9 years ago

merged trunk-jpl and trunk for revision 20497

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1disp(' creating thickness');
2hmin=0.01;
3hmax=2756.7;
4radius=sqrt((md.mesh.x).^2+(md.mesh.y).^2);
5radiusmax=max(radius);
6radius(find(radius>(1.-10^-9)*radiusmax))=radiusmax; %eliminate roundoff issues in next statement
7md.geometry.thickness=hmin*ones(size(md.mesh.x,1),1)+hmax*(4.*((1./2.)^(4./3.)*ones(size(md.mesh.x,1),1)-((radius)./(2.*radiusmax)).^(4./3.))).^(3./8.);
8md.geometry.base=0.*md.geometry.thickness;
9md.geometry.surface=md.geometry.base+md.geometry.thickness;
10
11disp(' creating drag');
12md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
13md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
14md.friction.p=ones(md.mesh.numberofelements,1);
15md.friction.q=ones(md.mesh.numberofelements,1);
16
17disp(' creating temperatures');
18tmin=238.15; %K
19st=1.67*10^-2/1000.; %k/m
20md.initialization.temperature=tmin+st*radius;
21md.basalforcings.geothermalflux=4.2*10^-2*ones(md.mesh.numberofvertices,1);
22
23disp(' creating flow law parameter');
24md.materials.rheology_B=6.81*10^7*ones(md.mesh.numberofvertices,1); %to have the same B as the analytical solution
25md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
26
27disp(' creating surface mass balance');
28smb_max=0.5; %m/yr
29sb=10^-2/1000.; %m/yr/m
30rel=450.*1000.; %m
31md.smb.mass_balance=min(smb_max,sb*(rel-radius));
32
33disp(' creating velocities');
34constant=0.3;
35md.inversion.vx_obs=constant/2.*md.mesh.x.*(md.geometry.thickness).^-1;
36md.inversion.vy_obs=constant/2.*md.mesh.y.*(md.geometry.thickness).^-1;
37md.inversion.vel_obs=sqrt((md.inversion.vx_obs).^2+(md.inversion.vy_obs).^2);
38md.initialization.vx=zeros(md.mesh.numberofvertices,1);
39md.initialization.vy=zeros(md.mesh.numberofvertices,1);
40md.initialization.vz=zeros(md.mesh.numberofvertices,1);
41md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
42
43%Deal with boundary conditions:
44disp(' boundary conditions for stressbalance model:');
45md=SetMarineIceSheetBC(md,'../Exp/RoundFrontEISMINT.exp');
46
47radius=sqrt((md.mesh.x).^2+(md.mesh.y).^2);
48pos=find(radius==min(radius));
49md.mesh.x(pos)=0.; md.mesh.y(pos)=0.; %the closest node to the center is changed to be exactly at the center
50
51md.stressbalance.spcvx(pos)=0.;
52md.stressbalance.spcvy(pos)=0.;
53md.stressbalance.spcvz(pos)=0.;
Note: See TracBrowser for help on using the repository browser.