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

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

merged trunk-jpl and trunk for revision 17804

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