1 | md=setmesh(model,'../Exp/Square.exp',150000);
|
---|
2 | md=setmask(md,'all','');
|
---|
3 | md=parameterize(md,'../Par/SquareShelf.par');
|
---|
4 | md=setflowequation(md,'macayeal','all');
|
---|
5 | md.geometry.bed=md.geometry.bed+50; md.geometry.surface=md.geometry.surface+50;
|
---|
6 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
7 | md.prognostic.hydrostatic_adjustment='Incremental';
|
---|
8 | md=solve(md,TransientSolutionEnum);
|
---|
9 |
|
---|
10 | %Fields and tolerances to track changes
|
---|
11 | field_names ={'Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3'};
|
---|
12 | field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13};
|
---|
13 | field_values={...
|
---|
14 | PatchToVec(md.results.TransientSolution(1).Vx),...
|
---|
15 | PatchToVec(md.results.TransientSolution(1).Vy),...
|
---|
16 | PatchToVec(md.results.TransientSolution(1).Vel),...
|
---|
17 | PatchToVec(md.results.TransientSolution(1).Pressure),...
|
---|
18 | PatchToVec(md.results.TransientSolution(1).Bed),...
|
---|
19 | PatchToVec(md.results.TransientSolution(1).Surface),...
|
---|
20 | PatchToVec(md.results.TransientSolution(1).Thickness),...
|
---|
21 | PatchToVec(md.results.TransientSolution(2).Vx),...
|
---|
22 | PatchToVec(md.results.TransientSolution(2).Vy),...
|
---|
23 | PatchToVec(md.results.TransientSolution(2).Vel),...
|
---|
24 | PatchToVec(md.results.TransientSolution(2).Pressure),...
|
---|
25 | PatchToVec(md.results.TransientSolution(2).Bed),...
|
---|
26 | PatchToVec(md.results.TransientSolution(2).Surface),...
|
---|
27 | PatchToVec(md.results.TransientSolution(2).Thickness),...
|
---|
28 | PatchToVec(md.results.TransientSolution(3).Vx),...
|
---|
29 | PatchToVec(md.results.TransientSolution(3).Vy),...
|
---|
30 | PatchToVec(md.results.TransientSolution(3).Vel),...
|
---|
31 | PatchToVec(md.results.TransientSolution(3).Pressure),...
|
---|
32 | PatchToVec(md.results.TransientSolution(3).Bed),...
|
---|
33 | PatchToVec(md.results.TransientSolution(3).Surface),...
|
---|
34 | PatchToVec(md.results.TransientSolution(3).Thickness),...
|
---|
35 | };
|
---|