Changeset 2898
- Timestamp:
- 01/22/10 17:10:30 (15 years ago)
- Location:
- issm/trunk/test/Miscellaneous/Bump
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/Miscellaneous/Bump/Bump.par
r1238 r2898 5 5 6 6 %dynamics 7 md.debug=2; 7 8 md.dt=0.1*md.yts; %1 year 8 9 md.ndt=md.dt*3; … … 14 15 ymax=max(md.y); 15 16 md.thickness=hmax+(hmin-hmax)*(md.y-ymin)/(ymax-ymin); 16 md.bed=-md.rho_ice/md.rho_water*md.thickness+ height*exp(-((md.x-50000).^2+(md.y-50000).^2)/(2000)^2);17 md.bed=-md.rho_ice/md.rho_water*md.thickness+10; 17 18 md.surface=md.bed+md.thickness; 19 md.bed=-md.rho_ice/md.rho_water*md.thickness+height*exp(-((md.x-50000).^2+(md.y-50000).^2)/(2000)^2)+10; 18 20 md.thickness=md.surface-md.bed; 19 21 20 22 md.drag_type=2; %0 none 1 plastic 2 viscous 21 md.drag= 20*ones(md.numberofgrids,1); %q=1.23 md.drag=30*ones(md.numberofgrids,1); %q=1. 22 24 %Take care of iceshelves: no basal drag 23 25 pos=find(md.elementoniceshelf); … … 33 35 %Deal with boundary conditions: 34 36 md=SetIceSheetBC(md); 35 md.dirichletvalues_diag=ones(md.numberofgrids,1)*[0 200]; 37 md.spcvelocity(:,4)=zeros(md.numberofgrids,1); 38 md.spcvelocity(:,5)=200*ones(md.numberofgrids,1); 36 39 37 40 %Parallel options 38 md.cluster=' wilkes';41 md.cluster='larsen'; 39 42 md.np=8; 40 43 md.time=50; -
issm/trunk/test/Miscellaneous/Bump/runme.m
r1238 r2898 1 1 %Test of a bump 2 3 loadmodel diagstokes 4 mdc=mds; 2 5 3 6 %initialize model with Stokes model … … 7 10 md=geography(md,'',''); 8 11 md=parameterize(md,'Bump.par'); 9 md.drag=50*ones(md.numberofgrids,1);10 12 md=extrude(md,8,4); 11 13 md.pressure=zeros(md.numberofgrids,1); … … 15 17 md=setelementstype(md,'pattyn','all','stokes','all'); 16 18 19 %Initialize the CM with average value of vx and vy 20 md.vx_obs=mdc.results.diagnostic.vx; 21 md.vy_obs=mdc.results.diagnostic.vy; 22 md.vel_obs=mdc.results.diagnostic.vel; 23 24 md.nsteps=5; 25 md.fit=2*ones(5,1); 26 md.optscal=1000*ones(5,1); 27 md.maxiter=20*ones(5,1); 17 28 %compute solution 18 md=solve(md,'analysis_type','diagnostic'); 29 md=solve(md,'analysis_type','control'); 30 31 save step1 md 32 md.drag=md.results.control.parameter; 33 34 md=solve(md,'analysis_type','control'); 35 save step2 md 36 37 md.drag=md.results.control.parameter; 38 md.fit=0*md.fit; 39 save step3 md 19 40 20 41 %save model stokes 21 42 mds=md; 22 43 save modelstokes mds 44 error 23 45 24 46 %now run a control method on macayeal … … 35 57 36 58 %Initialize the CM with average value of vx and vy 37 md.vx_obs=DepthAverage(mds,mds.results.diagnostic.vx); 38 md.vy_obs=DepthAverage(mds,mds.results.diagnostic.vy); 39 md.vel_obs=DepthAverage(mds,mds.results.diagnostic.vel); 40 md.drag=30*ones(md.numberofgrids,1); 59 md.vx_obs=DepthAverage(mdc,mdc.results.diagnostic.vx); 60 md.vy_obs=DepthAverage(mdc,mdc.results.diagnostic.vy); 61 md.vel_obs=DepthAverage(mdc,mdc.results.diagnostic.vel); 41 62 42 63 %Compute the CM … … 61 82 62 83 %Initialize the CM 63 md.vx_obs=md s.results.diagnostic.vx;64 md.vy_obs=md s.results.diagnostic.vy;65 md.vel_obs=md s.results.diagnostic.vel;84 md.vx_obs=mdc.results.diagnostic.vx; 85 md.vy_obs=mdc.results.diagnostic.vy; 86 md.vel_obs=mdc.results.diagnostic.vel; 66 87 67 88 %Compute the CM
Note:
See TracChangeset
for help on using the changeset viewer.