Changeset 5606
- Timestamp:
- 08/27/10 08:42:22 (15 years ago)
- Location:
- issm/trunk/test/NightlyRun
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/NightlyRun/test1101.m
r5540 r5606 1 1 %This test is a test from the ISMP-HOM Intercomparison project 2 2 %Pattyn and Payne 2006 3 printingflag= true;3 printingflag=false; 4 4 5 5 L_list={5000,10000,20000,40000,80000,160000}; -
issm/trunk/test/NightlyRun/test1102.m
r5098 r5606 1 1 %This test is a test from the ISMP-HOM Intercomparison project 2 2 %Pattyn and Payne 2006 3 printingflag=false; 3 4 4 5 L_list={5000,10000,20000,40000,80000,160000}; 6 L_list={80000}; 5 7 results={}; 8 minvx=[]; 9 maxvx=[]; 6 10 7 11 for i=1:length(L_list), … … 12 16 md=squaremesh(md,L,L,nx,ny); 13 17 md=geography(md,'',''); %ice sheet test 18 19 % %Find elements at the corner and extract model 20 % posnodes=find((md.x==0 | md.x==max(md.x)) & (md.y==0 | md.y==max(md.y))); 21 % [a,b]=find(ismember(md.elements,posnodes)); 22 % elements=ones(md.numberofelements,1); 23 % elements(a)=0; 24 % md=modelextract(md,elements); 25 14 26 md=parameterize(md,'../Par/ISMIPA.par'); 15 md=extrude(md,9,1); 16 17 md=setelementstype(md,'pattyn','all','stokes','all'); 27 md=extrude(md,10,1); 28 md=setelementstype(md,'stokes','all'); 18 29 19 30 %Create dirichlet on the bed only 20 md.spcvelocity=zeros(md.numberofgrids,6);31 %md.spcvelocity=zeros(md.numberofgrids,6); 21 32 pos=find(md.gridonbed); 22 md.spcvelocity(pos,1: 2)=1;33 md.spcvelocity(pos,1:3)=1; 23 34 24 35 %Create MPCs to have periodic boundary conditions 25 posx=find(md.x==0); 26 posx2=find(md.x==max(md.x)); 36 %posx=find(md.x==0); 37 %posx2=find(md.x==max(md.x)); 38 %posx=find(md.x==0 & md.y~=0 & md.y~=max(md.y) & ~md.gridonbed); 39 %posx2=find(md.x==max(md.x) & md.y~=0 & md.y~=max(md.y) & ~md.gridonbed); 27 40 28 posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x)); %Don't take the same grids two times29 posy2=find(md.y==max(md.y) & md.x~=0 & md.x~=max(md.x));41 %posy=find(md.y==0 & md.x~=0 & md.x~=max(md.x) & ~md.gridonbed); %Don't take the same grids two times 42 %posy2=find(md.y==max(md.y) & md.x~=0 & md.x~=max(md.x) & ~md.gridonbed); 30 43 31 md.penalties=[posx,posx2;posy,posy2];44 %md.penalties=[posx,posx2;posy,posy2]; 32 45 33 46 %Compute the diagnostic 47 md.verbose=3; 48 md.eps_abs=NaN; 49 md.eps_rel=NaN; 50 md.eps_res=1; 34 51 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 35 52 … … 38 55 vy=PatchToVec(md.results.DiagnosticSolution.Vy); 39 56 vz=PatchToVec(md.results.DiagnosticSolution.Vz); 57 pressure=PatchToVec(md.results.DiagnosticSolution.Pressure); 40 58 results{i}=md.results.DiagnosticSolution; 59 minvx(i)=min(vx(end-md.numberofgrids2d+1:end)); 60 maxvx(i)=max(vx(end-md.numberofgrids2d+1:end)); 41 61 42 plotmodel(md,'data',vx,'data',vy,'data',vz,'layer#all',md.numlayers) 62 %Now plot vx, vy, vz and vx on a cross section 63 plotmodel(md,'data',vx,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',2) 64 if printingflag, 65 set(gcf,'Color','w') 66 printmodel(['ismipastokesvx' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 67 system(['mv ismipastokesvx' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']); 68 end 69 plotmodel(md,'data',vy,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',3) 70 if printingflag, 71 set(gcf,'Color','w') 72 printmodel(['ismipastokesvy' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 73 system(['mv ismipastokesvy' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']); 74 end 75 plotmodel(md,'data',vz,'layer#all',md.numlayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',4) 76 if printingflag, 77 set(gcf,'Color','w') 78 printmodel(['ismipastokesvz' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 79 system(['mv ismipastokesvz' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']); 80 end 43 81 82 if(L==5000), 83 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP5000.exp','layer',md.numlayers,... 84 'resolution',[10 10],'ylim',[10 18],'xlim',[0 5000],'title','','xlabel','') 85 elseif(L==10000), 86 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP10000.exp','layer',md.numlayers,... 87 'resolution',[10 10],'ylim',[10 30],'xlim',[0 10000],'title','','xlabel','') 88 elseif(L==20000), 89 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP20000.exp','layer',md.numlayers,... 90 'resolution',[10 10],'ylim',[0 50],'xlim',[0 20000],'title','','xlabel','') 91 elseif(L==40000), 92 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP40000.exp','layer',md.numlayers,... 93 'resolution',[10 10],'ylim',[0 80],'xlim',[0 40000],'title','','xlabel','') 94 elseif(L==80000), 95 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP80000.exp','layer',md.numlayers,... 96 'resolution',[10 10],'ylim',[0 100],'xlim',[0 80000],'title','','xlabel','') 97 elseif(L==160000), 98 plotmodel(md,'data',vx,'sectionvalue','../Exp/ISMIP160000.exp','layer',md.numlayers,... 99 'resolution',[10 10],'ylim',[0 120],'xlim',[0 160000],'title','','xlabel','') 100 end 101 if printingflag, 102 set(gcf,'Color','w') 103 printmodel(['ismipastokesvxsec' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 104 system(['mv ismipastokesvxsec' num2str(L) '.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']); 105 end 44 106 end 45 107 108 %Now plot the min and max values of vx for each size of the square 109 plot([5 10 20 40 80 160],minvx);ylim([0 18]) 110 if printingflag, 111 set(gcf,'Color','w') 112 printmodel('ismipastokesminvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 113 system(['mv ismipastokesminvx.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']); 114 end 115 plot([5 10 20 40 80 160],maxvx);ylim([0 120]) 116 if printingflag, 117 set(gcf,'Color','w') 118 printmodel('ismipastokesmaxvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 119 system(['mv ismipastokesmaxvx.png ' ISSM_DIR '/../website/doc_pdf/validation/Images/ISMIP/TestA ']); 120 end 46 121 %Fields and tolerances to track changes 47 122 field_names ={... -
issm/trunk/test/NightlyRun/test1103.m
r5540 r5606 1 1 %This test is a test from the ISMP-HOM Intercomparison project 2 2 %Pattyn and Payne 2006 3 printingflag= true;3 printingflag=false; 4 4 5 5 L_list={5000,10000,20000,40000,80000,160000}; -
issm/trunk/test/NightlyRun/test1105.m
r5540 r5606 1 1 %This test is a test from the ISMP-HOM Intercomparison project 2 2 %Pattyn and Payne 2006 3 printingflag= true;3 printingflag=false; 4 4 5 5 L_list={5000,10000,20000,40000,80000,160000}; -
issm/trunk/test/NightlyRun/test1107.m
r5540 r5606 1 1 %This test is a test from the ISMP-HOM Intercomparison project 2 2 %Pattyn and Payne 2006 3 printingflag= true;3 printingflag=false; 4 4 5 5 L_list={5000,10000,20000,40000,80000,160000}; -
issm/trunk/test/NightlyRun/test1109.m
r5567 r5606 5 5 % - Pattyn with some sliding 6 6 % - Stokes with some sliding 7 printingflag= true;7 printingflag=false; 8 8 results={}; 9 9 -
issm/trunk/test/NightlyRun/test1201.m
r5423 r5606 1 1 %This test is a test from the EISMINT for Ice shelves Vincent Rommelaere 1996 2 printingflag= true;2 printingflag=false; 3 3 4 4 results={}; -
issm/trunk/test/NightlyRun/test1202.m
r5423 r5606 1 1 %Test on the diagnostic model and the prognostic in 2d 2 printingflag= true;2 printingflag=false; 3 3 4 4 %tests 3 and 4: using Glen's flow law -
issm/trunk/test/NightlyRun/test1203.m
r5423 r5606 1 1 %Test on the diagnostic model and the prognostic in 2d 2 printingflag= true;2 printingflag=false; 3 3 4 4 %test 5 and 6 : -
issm/trunk/test/NightlyRun/test1205.m
r5117 r5606 44 44 %Plot of the velocity from the exact and calculated solutions 45 45 figure(1) 46 set(gcf,'Position',[1 1 1580 1150]) 46 47 subplot(2,2,1) 47 48 p=patch('Faces',md.elements2d,'Vertices',[md.x2d md.y2d],'FaceVertexCData',... -
issm/trunk/test/NightlyRun/test1207.m
r5117 r5606 17 17 %We extrude the model to have a 3d model 18 18 md=extrude(md,numlayers,1); 19 md=setelementstype(md,' pattyn','all','stokes','all');19 md=setelementstype(md,'stokes','all'); 20 20 21 21 %Spc the grids on the bed -
issm/trunk/test/NightlyRun/test1208.m
r5198 r5606 1 1 %EISMINT benchmark experiment A 2 2 numlayers=10; 3 resolution= 30000;3 resolution=40000; 4 4 5 5 %To begin with the numerical model … … 18 18 19 19 %Adapt the time steps to the resolution 20 md.dt=25; 20 md.dt=20; 21 md.verbose=10; 21 22 md.output_frequency=20; 22 23 -
issm/trunk/test/NightlyRun/test1301.m
r5423 r5606 3 3 % at upper surface and an impose flux at its base. The result must be a linear temperature from the upper to the lower 4 4 % surface with an imposed slope (Geothermal flux). if it is not the case, something is thermal modeling has been changed... 5 printingflag= true;5 printingflag=false; 6 6 7 7 md=model; -
issm/trunk/test/NightlyRun/test1302.m
r5423 r5606 2 2 % There is u=v=0 and w=cst everywhere the only thermal boundary conditions are an imposed temperature 3 3 % at upper surface and an impose flux at its base. 4 printingflag= true;4 printingflag=false; 5 5 6 6 md=model; -
issm/trunk/test/NightlyRun/test1303.m
r5423 r5606 3 3 % at the lower and upper surface. The result must be a linear temperature from the upper to the lower 4 4 % surface. if it is not the case, something is thermal modeling has been changed... 5 printingflag= true;5 printingflag=false; 6 6 7 7 md=model; -
issm/trunk/test/NightlyRun/test1304.m
r5423 r5606 3 3 % at upper surface and an impose flux at its base. The result must be a linear temperature from the upper to the lower 4 4 % surface with an imposed slope (Geothermal flux). if it is not the case, something is thermal modeling has been changed... 5 printingflag= true;5 printingflag=false; 6 6 7 7 md=model;
Note:
See TracChangeset
for help on using the changeset viewer.