[19243] | 1 | %Test Name: SquareShelfTranIspddIsdeltaO18pdSSA2d
|
---|
[18002] | 2 | md=triangle(model(),'../Exp/Square.exp',150000.);
|
---|
| 3 | md=setmask(md,'all','');
|
---|
| 4 | md=parameterize(md,'../Par/SquareShelf.par');
|
---|
| 5 |
|
---|
[19243] | 6 | %md.verbose=verbose('all');
|
---|
[18002] | 7 |
|
---|
[19243] | 8 | % Use of ispdd and isdelta18o methods
|
---|
[19527] | 9 | md.smb = SMBd18opdd();
|
---|
| 10 | md.smb.isd18opd=1;
|
---|
| 11 | %md.smb.precipitation(1:md.mesh.numberofvertices,1:12)=0;
|
---|
| 12 | %md.smb.monthlytemperatures(1:md.mesh.numberofvertices,1:12)=273;
|
---|
[18002] | 13 |
|
---|
[19243] | 14 | % Add temperature, precipitation and delta18o needed to measure the surface mass balance
|
---|
| 15 | % creating delta18o
|
---|
| 16 | load '../Data/delta18o.data'
|
---|
[19527] | 17 | md.smb.delta18o=delta18o;
|
---|
[18002] | 18 |
|
---|
[19243] | 19 | % creating Present day temperatures
|
---|
| 20 | % Same temperature over the all region:
|
---|
| 21 | tmonth(1:12)=238.15+20.;
|
---|
| 22 | for imonth=0:11
|
---|
[19527] | 23 | md.smb.temperatures_presentday(1:md.mesh.numberofvertices,imonth+1)=tmonth(imonth+1);
|
---|
[19243] | 24 | end
|
---|
| 25 |
|
---|
| 26 | % creating initialization and spc temperatures initialization and
|
---|
| 27 | % spc
|
---|
[19527] | 28 | md.thermal.spctemperature=mean(md.smb.temperatures_presentday(1:md.mesh.numberofvertices,1:12),2)-10; %-10*ones(md.mesh.numberofvertices,1);
|
---|
| 29 | md.initialization.temperature=md.thermal.spctemperature; %md.smb.temperatures_presentday(1:md.mesh.numberofvertices,1);
|
---|
[19243] | 30 |
|
---|
| 31 | % creating precipitation
|
---|
| 32 | for imonth=0:11
|
---|
[19527] | 33 | md.smb.precipitations_presentday(1:md.mesh.numberofvertices,imonth+1)=-0.4*10^(-6)*md.mesh.y+0.5;
|
---|
[19243] | 34 | end
|
---|
[19527] | 35 | md.smb = initialize(md.smb,md);
|
---|
[19243] | 36 |
|
---|
| 37 | % time steps and resolution
|
---|
| 38 | md.timestepping.time_step=20;
|
---|
| 39 | md.settings.output_frequency=1;
|
---|
| 40 | md.timestepping.final_time=60;
|
---|
| 41 |
|
---|
| 42 | md=setflowequation(md,'SSA','all');
|
---|
| 43 | md.cluster=generic('name',oshostname(),'np',1); % 3 for the cluster
|
---|
[21056] | 44 | md=solve(md,'Transient');
|
---|
[18002] | 45 |
|
---|
| 46 | %Fields and tolerances to track changes
|
---|
[24296] | 47 | field_names ={'Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','SmbMassBalance1',...
|
---|
| 48 | 'Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','SmbMassBalance2',...
|
---|
| 49 | 'Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','SmbMassBalance3'};
|
---|
[24298] | 50 | field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,...
|
---|
| 51 | 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,...
|
---|
| 52 | 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13};
|
---|
[18002] | 53 | field_values={...
|
---|
| 54 | (md.results.TransientSolution(1).Vx),...
|
---|
| 55 | (md.results.TransientSolution(1).Vy),...
|
---|
| 56 | (md.results.TransientSolution(1).Vel),...
|
---|
| 57 | (md.results.TransientSolution(1).Pressure),...
|
---|
| 58 | (md.results.TransientSolution(1).Base),...
|
---|
| 59 | (md.results.TransientSolution(1).Surface),...
|
---|
| 60 | (md.results.TransientSolution(1).Thickness),...
|
---|
[19527] | 61 | (md.results.TransientSolution(1).SmbMassBalance),...
|
---|
[18002] | 62 | (md.results.TransientSolution(2).Vx),...
|
---|
| 63 | (md.results.TransientSolution(2).Vy),...
|
---|
| 64 | (md.results.TransientSolution(2).Vel),...
|
---|
| 65 | (md.results.TransientSolution(2).Pressure),...
|
---|
| 66 | (md.results.TransientSolution(2).Base),...
|
---|
| 67 | (md.results.TransientSolution(2).Surface),...
|
---|
| 68 | (md.results.TransientSolution(2).Thickness),...
|
---|
[19527] | 69 | (md.results.TransientSolution(2).SmbMassBalance),...
|
---|
[18002] | 70 | (md.results.TransientSolution(3).Vx),...
|
---|
| 71 | (md.results.TransientSolution(3).Vy),...
|
---|
| 72 | (md.results.TransientSolution(3).Vel),...
|
---|
| 73 | (md.results.TransientSolution(3).Pressure),...
|
---|
| 74 | (md.results.TransientSolution(3).Base),...
|
---|
| 75 | (md.results.TransientSolution(3).Surface),...
|
---|
| 76 | (md.results.TransientSolution(3).Thickness),...
|
---|
[19527] | 77 | (md.results.TransientSolution(3).SmbMassBalance),...
|
---|
[18002] | 78 | };
|
---|