Changeset 4871
- Timestamp:
- 07/29/10 10:06:05 (15 years ago)
- Location:
- issm/trunk/test/Validation/MacAyealVsPattyn
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/Validation/MacAyealVsPattyn/test1_iceshelf/runme.m
r909 r4871 10 10 11 11 %Compute solution for a 2d model 12 md=solve(md,'analysis_type','diagnostic','package','ice'); 13 vel_2d=md.results.diagnostic.vel; 12 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 13 vel_2d=zeros(md.numberofgrids,1); 14 vel_2d(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value; 14 15 15 16 %Compute solution for a 3d model 16 17 md=extrude(md,5,3); 17 18 md=setelementstype(md,'Pattyn','Pattyn.exp','fill','Macayeal'); 18 md=solve(md,'analysis_type', 'diagnostic','package','ice');19 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 19 20 20 21 %Calculate the average velocity on each grid 21 22 vel_3d=zeros(md.numberofgrids2d,1); 23 vel=vel_3d; 24 vel(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value; 22 25 grid_vel=0; 23 26 24 27 for i=1:md.numberofgrids2d 25 28 for j=1:(md.numlayers-1) 26 grid_vel=grid_vel+1/(2*(md.numlayers-1))*( md.results.diagnostic.vel(i+j*md.numberofgrids2d,1)+md.results.diagnostic.vel(i+(j-1)*md.numberofgrids2d,1));29 grid_vel=grid_vel+1/(2*(md.numlayers-1))*(vel(i+j*md.numberofgrids2d,1)+vel(i+(j-1)*md.numberofgrids2d,1)); 27 30 end 28 31 vel_3d(i,1)=grid_vel; -
issm/trunk/test/Validation/MacAyealVsPattyn/test2_icesheet/Square.par
r3768 r4871 33 33 %Parallel options 34 34 md.np=3; 35 md.cluster='wilkes'; 35 36 md.time=50; 36 37 md.waitonlock=1; 38 md.name='test2'; -
issm/trunk/test/Validation/MacAyealVsPattyn/test2_icesheet/runme.m
r899 r4871 10 10 %Compute solution for a 2d model 11 11 md=setelementstype(md,'Macayeal','all'); 12 md=solve(md,'analysis_type','diagnostic','package','ice'); 13 vel_2d=md.results.diagnostic.vel; 12 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 13 vel_2d=zeros(md.numberofgrids,1); 14 vel_2d(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value; 14 15 15 16 %Compute solution for a 3d model 16 17 md=extrude(md,5,3); 17 18 md=setelementstype(md,'Pattyn','all'); 18 md=solve(md,'analysis_type', 'diagnostic','package','ice');19 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 19 20 20 21 %Calculate the average velocity on each grid 21 22 vel_3d=zeros(md.numberofgrids2d,1); 23 vel=vel_3d; 24 vel(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value; 22 25 grid_vel=0; 23 26 24 27 for i=1:md.numberofgrids2d 25 28 for j=1:(md.numlayers-1) 26 grid_vel=grid_vel+1/(2*(md.numlayers-1))*( md.results.diagnostic.vel(i+j*md.numberofgrids2d,1)+md.results.diagnostic.vel(i+(j-1)*md.numberofgrids2d,1));29 grid_vel=grid_vel+1/(2*(md.numlayers-1))*(vel(i+j*md.numberofgrids2d,1)+vel(i+(j-1)*md.numberofgrids2d,1)); 27 30 end 28 31 vel_3d(i,1)=grid_vel; -
issm/trunk/test/Validation/MacAyealVsPattyn/test3_icesheet_iceshelf/Square.par
r3768 r4871 28 28 %Deal with boundary conditions: 29 29 disp(' boundary conditions for diagnostic model: '); 30 md=Set IceShelfBC(md,'Front.exp');30 md=SetMarineIceSheetBC(md,'Front.exp'); 31 31 32 32 %Parallel options 33 33 md.np=3; 34 34 md.time=50; 35 md.waitonlock=1 ;35 md.waitonlock=10; -
issm/trunk/test/Validation/MacAyealVsPattyn/test3_icesheet_iceshelf/runme.m
r899 r4871 10 10 %Compute solution for a 2d model 11 11 md=setelementstype(md,'Macayeal','all'); 12 md=solve(md,'analysis_type','diagnostic','package','ice'); 13 vel_2d=md.results.diagnostic.vel; 12 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 13 vel_2d=zeros(md.numberofgrids,1); 14 vel_2d(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value; 14 15 15 16 %Compute solution for a 3d model 16 17 md=extrude(md,5,3); 17 18 md=setelementstype(md,'Pattyn','all'); 18 md=solve(md,'analysis_type', 'diagnostic','package','ice');19 md=solve(md,'analysis_type',DiagnosticSolutionEnum); 19 20 20 21 %Calculate the average velocity on each grid 21 22 vel_3d=zeros(md.numberofgrids2d,1); 23 vel=vel_3d; 24 vel(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value; 22 25 grid_vel=0; 23 26 24 27 for i=1:md.numberofgrids2d 25 28 for j=1:(md.numlayers-1) 26 grid_vel=grid_vel+1/(2*(md.numlayers-1))*( md.results.diagnostic.vel(i+j*md.numberofgrids2d,1)+md.results.diagnostic.vel(i+(j-1)*md.numberofgrids2d,1));29 grid_vel=grid_vel+1/(2*(md.numlayers-1))*(vel(i+j*md.numberofgrids2d,1)+vel(i+(j-1)*md.numberofgrids2d,1)); 27 30 end 28 31 vel_3d(i,1)=grid_vel;
Note:
See TracChangeset
for help on using the changeset viewer.