[20500] | 1 | %Test Name: SquareSheetShelfTranSSA3d
|
---|
[13975] | 2 | md=triangle(model(),'../Exp/Square.exp',150000.);
|
---|
[9641] | 3 | md=setmask(md,'../Exp/SquareShelf.exp','');
|
---|
[4996] | 4 | md=parameterize(md,'../Par/SquareSheetShelf.par');
|
---|
[21729] | 5 | md.geometry.bed=md.geometry.base;
|
---|
[25836] | 6 | pos=find(md.mask.ocean_levelset<0);
|
---|
[21729] | 7 | md.geometry.bed(pos)=md.geometry.base(pos)-10;
|
---|
| 8 | md.friction=frictioncoulomb();
|
---|
| 9 | md.friction.coefficient=20.*ones(md.mesh.numberofvertices,1);
|
---|
| 10 | md.friction.p=ones(md.mesh.numberofelements,1);
|
---|
| 11 | md.friction.q=ones(md.mesh.numberofelements,1);
|
---|
| 12 | md.friction.coefficientcoulomb=0.02*ones(md.mesh.numberofvertices,1);
|
---|
[20500] | 13 | md.transient.isthermal=0;
|
---|
[21729] | 14 | md.transient.isgroundingline=1;
|
---|
[16137] | 15 | md=setflowequation(md,'SSA','all');
|
---|
[8589] | 16 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
[20500] | 17 | md.transient.requested_outputs={'default','GroundedArea','FloatingArea','TotalFloatingBmb','TotalGroundedBmb','TotalSmb'};
|
---|
[22758] | 18 | md=extrude(md,3,1);
|
---|
[21341] | 19 | md=solve(md,'Transient');
|
---|
[5098] | 20 |
|
---|
| 21 | %Fields and tolerances to track changes
|
---|
[25836] | 22 | field_names={...
|
---|
| 23 | 'Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','GroundedArea1','FloatingArea1','TotalFloatingBmb1','TotalGroundedBmb1','TotalSmb1',...
|
---|
[20500] | 24 | 'Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','GroundedArea2','FloatingArea2','TotalFloatingBmb2','TotalGroundedBmb2','TotalSmb2',...
|
---|
[25836] | 25 | 'Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','GroundedArea3','FloatingArea3','TotalFloatingBmb3','TotalGroundedBmb3','TotalSmb3'...
|
---|
| 26 | };
|
---|
| 27 | field_tolerances={...
|
---|
| 28 | 2e-13,2e-13,2e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,...
|
---|
| 29 | 2e-13,2e-13,2e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,...
|
---|
| 30 | 2e-13,2e-13,2e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13...
|
---|
| 31 | };
|
---|
[5098] | 32 | field_values={...
|
---|
[10976] | 33 | (md.results.TransientSolution(1).Vx),...
|
---|
| 34 | (md.results.TransientSolution(1).Vy),...
|
---|
| 35 | (md.results.TransientSolution(1).Vel),...
|
---|
| 36 | (md.results.TransientSolution(1).Pressure),...
|
---|
[17806] | 37 | (md.results.TransientSolution(1).Base),...
|
---|
[10976] | 38 | (md.results.TransientSolution(1).Surface),...
|
---|
| 39 | (md.results.TransientSolution(1).Thickness),...
|
---|
[20500] | 40 | (md.results.TransientSolution(1).GroundedArea),...
|
---|
| 41 | (md.results.TransientSolution(1).FloatingArea),...
|
---|
| 42 | (md.results.TransientSolution(1).TotalFloatingBmb),...
|
---|
| 43 | (md.results.TransientSolution(1).TotalGroundedBmb),...
|
---|
| 44 | (md.results.TransientSolution(1).TotalSmb),...
|
---|
[10976] | 45 | (md.results.TransientSolution(2).Vx),...
|
---|
| 46 | (md.results.TransientSolution(2).Vy),...
|
---|
| 47 | (md.results.TransientSolution(2).Vel),...
|
---|
| 48 | (md.results.TransientSolution(2).Pressure),...
|
---|
[17806] | 49 | (md.results.TransientSolution(2).Base),...
|
---|
[10976] | 50 | (md.results.TransientSolution(2).Surface),...
|
---|
| 51 | (md.results.TransientSolution(2).Thickness),...
|
---|
[20500] | 52 | (md.results.TransientSolution(2).GroundedArea),...
|
---|
| 53 | (md.results.TransientSolution(2).FloatingArea),...
|
---|
| 54 | (md.results.TransientSolution(2).TotalFloatingBmb),...
|
---|
| 55 | (md.results.TransientSolution(2).TotalGroundedBmb),...
|
---|
| 56 | (md.results.TransientSolution(2).TotalSmb),...
|
---|
[10976] | 57 | (md.results.TransientSolution(3).Vx),...
|
---|
| 58 | (md.results.TransientSolution(3).Vy),...
|
---|
| 59 | (md.results.TransientSolution(3).Vel),...
|
---|
| 60 | (md.results.TransientSolution(3).Pressure),...
|
---|
[17806] | 61 | (md.results.TransientSolution(3).Base),...
|
---|
[10976] | 62 | (md.results.TransientSolution(3).Surface),...
|
---|
| 63 | (md.results.TransientSolution(3).Thickness),...
|
---|
[20500] | 64 | (md.results.TransientSolution(3).GroundedArea),...
|
---|
| 65 | (md.results.TransientSolution(3).FloatingArea),...
|
---|
| 66 | (md.results.TransientSolution(3).TotalFloatingBmb),...
|
---|
| 67 | (md.results.TransientSolution(3).TotalGroundedBmb),...
|
---|
| 68 | (md.results.TransientSolution(3).TotalSmb),...
|
---|
[25836] | 69 | };
|
---|