source: issm/trunk/test/Validation/HydrostaticIceSheet/NoFront/runme.m@ 761

Last change on this file since 761 was 761, checked in by seroussi, 16 years ago

added Validation tests to compare ice shelves with ice sheets in hydrostatic equilibrium

  • Property svn:executable set to *
File size: 1.2 KB
Line 
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
7md=model;
8md=mesh(md,'DomainOutline.exp',50000);
9md=geography(md,'all','');
10md=parameterize(md,'Square.par');
11md=setelementstype(md,'Macayeal','all');
12
13%Compute solution for a 2d model
14md=solve(md,'analysis_type','diagnostic');
15vel_shelf=md.results.diagnostic.vel;
16
17%Compute solution for a 3d model
18md=geography(md,'','');
19md=solve(md,'analysis_type','diagnostic');
20vel_sheet=md.results.diagnostic.vel;
21
22%Plot of the velocity from the ice sheet and he ice shelf model
23plotmodel(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 %]')
Note: See TracBrowser for help on using the repository browser.