Changeset 2898


Ignore:
Timestamp:
01/22/10 17:10:30 (15 years ago)
Author:
seroussi
Message:

minor modifications in test/Miscellaneous

Location:
issm/trunk/test/Miscellaneous/Bump
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/Miscellaneous/Bump/Bump.par

    r1238 r2898  
    55
    66%dynamics
     7md.debug=2;
    78md.dt=0.1*md.yts; %1 year
    89md.ndt=md.dt*3;
     
    1415ymax=max(md.y);
    1516md.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);
     17md.bed=-md.rho_ice/md.rho_water*md.thickness+10;
    1718md.surface=md.bed+md.thickness;
     19md.bed=-md.rho_ice/md.rho_water*md.thickness+height*exp(-((md.x-50000).^2+(md.y-50000).^2)/(2000)^2)+10;
    1820md.thickness=md.surface-md.bed;
    1921
    2022md.drag_type=2; %0 none 1 plastic 2 viscous
    21 md.drag=20*ones(md.numberofgrids,1); %q=1.
     23md.drag=30*ones(md.numberofgrids,1); %q=1.
    2224%Take care of iceshelves: no basal drag
    2325pos=find(md.elementoniceshelf);
     
    3335%Deal with boundary conditions:
    3436md=SetIceSheetBC(md);
    35 md.dirichletvalues_diag=ones(md.numberofgrids,1)*[0 200];
     37md.spcvelocity(:,4)=zeros(md.numberofgrids,1);
     38md.spcvelocity(:,5)=200*ones(md.numberofgrids,1);
    3639
    3740%Parallel options
    38 md.cluster='wilkes';
     41md.cluster='larsen';
    3942md.np=8;
    4043md.time=50;
  • issm/trunk/test/Miscellaneous/Bump/runme.m

    r1238 r2898  
    11%Test of a bump
     2
     3loadmodel diagstokes
     4mdc=mds;
    25
    36%initialize model with Stokes model
     
    710md=geography(md,'','');
    811md=parameterize(md,'Bump.par');
    9 md.drag=50*ones(md.numberofgrids,1);
    1012md=extrude(md,8,4);
    1113md.pressure=zeros(md.numberofgrids,1);
     
    1517md=setelementstype(md,'pattyn','all','stokes','all');
    1618
     19%Initialize the CM with average value of vx and vy
     20md.vx_obs=mdc.results.diagnostic.vx;
     21md.vy_obs=mdc.results.diagnostic.vy;
     22md.vel_obs=mdc.results.diagnostic.vel;
     23
     24md.nsteps=5;
     25md.fit=2*ones(5,1);
     26md.optscal=1000*ones(5,1);
     27md.maxiter=20*ones(5,1);
    1728%compute solution
    18 md=solve(md,'analysis_type','diagnostic');
     29md=solve(md,'analysis_type','control');
     30
     31save step1 md
     32md.drag=md.results.control.parameter;
     33
     34md=solve(md,'analysis_type','control');
     35save step2 md
     36
     37md.drag=md.results.control.parameter;
     38md.fit=0*md.fit;
     39save step3 md
    1940
    2041%save model stokes
    2142mds=md;
    2243save modelstokes mds
     44error
    2345
    2446%now run a control method on macayeal
     
    3557
    3658%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);
     59md.vx_obs=DepthAverage(mdc,mdc.results.diagnostic.vx);
     60md.vy_obs=DepthAverage(mdc,mdc.results.diagnostic.vy);
     61md.vel_obs=DepthAverage(mdc,mdc.results.diagnostic.vel);
    4162
    4263%Compute the CM
     
    6182
    6283%Initialize the CM
    63 md.vx_obs=mds.results.diagnostic.vx;
    64 md.vy_obs=mds.results.diagnostic.vy;
    65 md.vel_obs=mds.results.diagnostic.vel;
     84md.vx_obs=mdc.results.diagnostic.vx;
     85md.vy_obs=mdc.results.diagnostic.vy;
     86md.vel_obs=mdc.results.diagnostic.vel;
    6687
    6788%Compute the CM
Note: See TracChangeset for help on using the changeset viewer.