| 1 | %Test Name: SquareShelfTranCflHO
|
|---|
| 2 | md=triangle(model(),'../Exp/Square.exp',200000.);
|
|---|
| 3 | md=setmask(md,'all','');
|
|---|
| 4 | md=parameterize(md,'../Par/SquareShelf.par');
|
|---|
| 5 | md=extrude(md,3,1.);
|
|---|
| 6 | md=setflowequation(md,'HO','all');
|
|---|
| 7 | md.cluster=generic('name',oshostname(),'np',3);
|
|---|
| 8 | md.timestepping = timesteppingadaptive(md.timestepping);
|
|---|
| 9 | md.timestepping.final_time=20.;
|
|---|
| 10 | md=solve(md,'Transient');
|
|---|
| 11 |
|
|---|
| 12 | %Fields and tolerances to track changes
|
|---|
| 13 | field_names ={'Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1', ...
|
|---|
| 14 | 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2', ...
|
|---|
| 15 | 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3'};
|
|---|
| 16 | field_tolerances={...
|
|---|
| 17 | 1e-08,5e-09,1e-09,5e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,...
|
|---|
| 18 | 2e-09,5e-09,1e-08,5e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-06,...
|
|---|
| 19 | 1e-08,1e-08,1e-08,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05};
|
|---|
| 20 | field_values={...
|
|---|
| 21 | (md.results.TransientSolution(1).Vx),...
|
|---|
| 22 | (md.results.TransientSolution(1).Vy),...
|
|---|
| 23 | (md.results.TransientSolution(1).Vz),...
|
|---|
| 24 | (md.results.TransientSolution(1).Vel),...
|
|---|
| 25 | (md.results.TransientSolution(1).Pressure),...
|
|---|
| 26 | (md.results.TransientSolution(1).Base),...
|
|---|
| 27 | (md.results.TransientSolution(1).Surface),...
|
|---|
| 28 | (md.results.TransientSolution(1).Thickness),...
|
|---|
| 29 | (md.results.TransientSolution(1).Temperature),...
|
|---|
| 30 | (md.results.TransientSolution(1).BasalforcingsGroundediceMeltingRate),...
|
|---|
| 31 | (md.results.TransientSolution(2).Vx),...
|
|---|
| 32 | (md.results.TransientSolution(2).Vy),...
|
|---|
| 33 | (md.results.TransientSolution(2).Vz),...
|
|---|
| 34 | (md.results.TransientSolution(2).Vel),...
|
|---|
| 35 | (md.results.TransientSolution(2).Pressure),...
|
|---|
| 36 | (md.results.TransientSolution(2).Base),...
|
|---|
| 37 | (md.results.TransientSolution(2).Surface),...
|
|---|
| 38 | (md.results.TransientSolution(2).Thickness),...
|
|---|
| 39 | (md.results.TransientSolution(2).Temperature),...
|
|---|
| 40 | (md.results.TransientSolution(2).BasalforcingsGroundediceMeltingRate),...
|
|---|
| 41 | (md.results.TransientSolution(3).Vx),...
|
|---|
| 42 | (md.results.TransientSolution(3).Vy),...
|
|---|
| 43 | (md.results.TransientSolution(3).Vz),...
|
|---|
| 44 | (md.results.TransientSolution(3).Vel),...
|
|---|
| 45 | (md.results.TransientSolution(3).Pressure),...
|
|---|
| 46 | (md.results.TransientSolution(3).Base),...
|
|---|
| 47 | (md.results.TransientSolution(3).Surface),...
|
|---|
| 48 | (md.results.TransientSolution(3).Thickness),...
|
|---|
| 49 | (md.results.TransientSolution(3).Temperature),...
|
|---|
| 50 | (md.results.TransientSolution(3).BasalforcingsGroundediceMeltingRate),...
|
|---|
| 51 | };
|
|---|