source: issm/trunk/test/NightlyRun/test334.m@ 16562

Last change on this file since 16562 was 16562, checked in by Mathieu Morlighem, 11 years ago

CHG: merging trunk and trunk-jpl

File size: 1.2 KB
Line 
1md=triangle(model(),'../Exp/Square.exp',100000.);
2md=setmask(md,'','');
3md=parameterize(md,'../Par/SquareSheetConstrained.par');
4md=setflowequation(md,'SSA','all');
5md.cluster=generic('name',oshostname(),'np',1);
6md.hydrology=(hydrologydc);
7md.hydrology.isefficientlayer=0;
8md.hydrology.sedimentlimit_flag=1;
9md.hydrology.sedimentlimit=8000.0;
10md.initialization.sediment_head=0.0*ones(md.mesh.numberofvertices,1);
11md.hydrology.spcsediment_head=NaN*ones(md.mesh.numberofvertices,1);
12pos=find(md.mesh.y==0);
13md.hydrology.spcsediment_head(pos)=0.0;
14md.basalforcings.melting_rate = 2.0*ones(md.mesh.numberofvertices,1);
15md.hydrology.sediment_transmitivity=3;
16md.timestepping.time_step=0;
17md.timestepping.final_time=1.0;
18%md.verbose=verbose('1111111');
19md=extrude(md,3,1.1);
20md=solve(md,HydrologySolutionEnum());
21
22%Fields and tolerances to track changes
23%you can also compare with an analitic solution, but it is exact
24%only if no limits are applied
25%analitic=(md.mesh.y.^2-2*md.mesh.y*1.0e6)*(-2.0/(2*md.constants.yts*md.hydrology.sediment_transmitivity))
26field_names ={'SedimentWaterHead','SedimentHeadResidual'};
27field_tolerances={1e-13, 2.5e-10};
28field_values={md.results.HydrologySolution.SedimentHead,md.results.HydrologySolution.SedimentHeadResidual}
Note: See TracBrowser for help on using the repository browser.