[761] | 1 | % This file can be run to compare an icesheet in hydrostatic equilibrium with an iceshelf.
|
---|
| 2 | % This test deals with a mesh includind a iceshelf/icesheet with no ice front. The geometry
|
---|
| 3 | % is square. Just run this file in Matlab, with a properly setup Ice code.
|
---|
| 4 | % The result should be exactly the same since the ice sheet is in hydrostatic equilibrium
|
---|
| 5 | % so the friction at the base should be zero.
|
---|
| 6 |
|
---|
| 7 | md=model;
|
---|
| 8 | md=mesh(md,'DomainOutline.exp',50000);
|
---|
| 9 | md=geography(md,'all','');
|
---|
| 10 | md=parameterize(md,'Square.par');
|
---|
| 11 | md=setelementstype(md,'Macayeal','all');
|
---|
| 12 |
|
---|
| 13 | %Compute solution for a 2d model
|
---|
| 14 | md=solve(md,'analysis_type','diagnostic');
|
---|
| 15 | vel_shelf=md.results.diagnostic.vel;
|
---|
| 16 |
|
---|
| 17 | %Compute solution for a 3d model
|
---|
| 18 | md=geography(md,'','');
|
---|
| 19 | md=solve(md,'analysis_type','diagnostic');
|
---|
| 20 | vel_sheet=md.results.diagnostic.vel;
|
---|
| 21 |
|
---|
| 22 | %Plot of the velocity from the ice sheet and he ice shelf model
|
---|
| 23 | plotmodel(md,'data',vel_shelf,'title','Velocity of ice shelf','data',vel_sheet,'title','Velocity of ice sheet','data',vel_sheet-vel_shelf,'title','Absolute difference between ice sheet and ice shelf velocities','data',abs((vel_sheet-vel_shelf)./vel_shelf)*100,'title','Relative difference between ice sheet and ice shelf velocities [in %]')
|
---|