Ignore:
Timestamp:
07/06/09 11:22:46 (16 years ago)
Author:
seroussi
Message:

better bump + results in models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/Miscellaneous/Bump/runme.m

    r1144 r1238  
    33%initialize model with Stokes model
    44md=model;
    5 md=mesh(md,'DomainOutline.exp',20000);
     5md=mesh(md,'DomainOutline.exp',2000);
     6md=meshexprefine(md,'ContourBump.exp',500);
    67md=geography(md,'','');
    7 md=parameterize(md,'Square.par');
     8md=parameterize(md,'Bump.par');
     9md.drag=50*ones(md.numberofgrids,1);
    810md=extrude(md,8,4);
    911md.pressure=zeros(md.numberofgrids,1);
     
    2224%now run a control method on macayeal
    2325md=model;
    24 md=mesh(md,'DomainOutline.exp',20000);
     26md=mesh(md,'DomainOutline.exp',2000);
     27md=meshexprefine(md,'ContourBump.exp',500);
    2528md=geography(md,'','');
    26 md=parameterize(md,'Square.par');
     29md=parameterize(md,'Bump.par');
    2730md.pressure=zeros(md.numberofgrids,1);
    2831md.vx=zeros(md.numberofgrids,1);
     
    4043md=solve(md,'analysis_type','control')
    4144
    42 %%now run a control method on pattyn
    43 %md=model;
    44 %md=mesh(md,'DomainOutline.exp',20000);
    45 %md=geography(md,'','');
    46 %md=parameterize(md,'Square.par');
    47 %md=extrude(md,8,4);
    48 %md.pressure=zeros(md.numberofgrids,1);
    49 %md.vx=zeros(md.numberofgrids,1);
    50 %md.vy=zeros(md.numberofgrids,1);
    51 %md.vz=zeros(md.numberofgrids,1);
    52 %md=setelementstype(md,'pattyn','all');
    53 %
    54 %%Initialize the CM
    55 %md.vx_obs=mds.results.diagnostic.vx;
    56 %md.vy_obs=mds.results.diagnostic.vy;
    57 %md.vel_obs=mds.results.diagnostic.vel;
    58 %
    59 %%Compute the CM
    60 %md=solve(md,'analysis_type','control')
     45%save model macayeal
     46mdm=md;
     47save modelmacayeal mdm
     48
     49%now run a control method on pattyn
     50md=model;
     51md=mesh(md,'DomainOutline.exp',2000);
     52md=meshexprefine(md,'ContourBump.exp',500);
     53md=geography(md,'','');
     54md=parameterize(md,'Bump.par');
     55md=extrude(md,8,4);
     56md.pressure=zeros(md.numberofgrids,1);
     57md.vx=zeros(md.numberofgrids,1);
     58md.vy=zeros(md.numberofgrids,1);
     59md.vz=zeros(md.numberofgrids,1);
     60md=setelementstype(md,'pattyn','all');
     61
     62%Initialize the CM
     63md.vx_obs=mds.results.diagnostic.vx;
     64md.vy_obs=mds.results.diagnostic.vy;
     65md.vel_obs=mds.results.diagnostic.vel;
     66
     67%Compute the CM
     68md=solve(md,'analysis_type','control')
     69
     70%save model pattyn
     71mdp=md;
     72save modelpattyn mdp
Note: See TracChangeset for help on using the changeset viewer.