Changeset 7026


Ignore:
Timestamp:
01/11/11 16:35:47 (14 years ago)
Author:
Mathieu Morlighem
Message:

updated example

Location:
issm/trunk/examples/SquareIceShelf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/examples/SquareIceShelf/README

    r815 r7026  
    44md=parameterize(md,'Square.par');
    55md=setelementstype(md,'macayeal','all');
    6 md=solve(md,'analysis_type','diagnostic','package','ice');
    7 plotmodel(md,'data',md.results.diagnostic.vel);
     6md=solve(md,'analysis_type',DiagnosticSolutionEnum);
  • issm/trunk/examples/SquareIceShelf/Square.par

    r438 r7026  
    11%Start defining model parameters here
    2 
    3 %dynamics
    4 md.dt=1*md.yts; %1 year
    5 md.ndt=md.dt*10;
    6 md.artificial_diffusivity=1;
    72
    83disp('      creating thickness');
     
    1712disp('      creating drag');
    1813md.drag_type=2; %0 none 1 plastic 2 viscous
    19 md.drag=200*ones(md.numberofgrids,1); %q=1.
    20 %Take care of iceshelves: no basal drag
    2114pos=find(md.elementoniceshelf);
    22 md.drag(md.elements(pos,:))=0;
    23 md.p=ones(md.numberofelements,1);
    24 md.q=ones(md.numberofelements,1);
    25 md.viscosity_overshoot=0.3;
     15md.drag_coefficient=200*ones(md.numberofgrids,1); %q=1.
     16md.drag_coefficient(md.elements(pos,:))=0;
     17md.drag_p=ones(md.numberofelements,1);
     18md.drag_q=ones(md.numberofelements,1);
    2619
    2720disp('      creating temperature');
     
    2922
    3023disp('      creating flow law paramter');
    31 md.B=paterson(md.observed_temperature);
    32 md.n=3*ones(md.numberofelements,1);
     24md.rheology_B=paterson(md.observed_temperature);
     25md.rheology_n=3*ones(md.numberofelements,1);
    3326
    34 %Deal with boundary conditions:
     27disp('      creating boundary conditions');
    3528md=SetIceShelfBC(md,'Front.exp');
    36 
    37 %Parallel options
    38 md.np=3;
    39 md.time=50;
    40 md.waitonlock=1;
Note: See TracChangeset for help on using the changeset viewer.