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