Changeset 2897


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

minor modifications of examples

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/examples/IceStream/Stream.par

    r2461 r2897  
    2424md.surface=zeros(md.numberofgrids,1);
    2525pos=find(md.x>=0);
    26 md.surface(pos)=50+4.5*sqrt(md.x(pos));
     26md.surface(pos)=50+0.5*sqrt(md.x(pos));
     27%md.surface(pos)=50+4.5*sqrt(md.x(pos));
    2728pos=find(md.x<0);
    2829md.surface(pos)=50;
     
    3031md.thickness=md.surface-md.bed;
    3132
     33%Add extra slope
     34pos=find(md.x>0);
     35md.bed(pos)=md.bed(pos)+500*betat*md.x(pos);
     36md.surface(pos)=md.surface(pos)+500*betat*md.x(pos);
     37
    3238disp('      creating drag');
    3339md.drag_type=2; %0 none 1 plastic 2 viscous
    34 md.drag=150*ones(md.numberofgrids,1); %q=1.
     40md.drag=5000*ones(md.numberofgrids,1); %q=1.
    3541in=ContourToMesh(md.elements,md.x,md.y,expread('drag.exp',1),'node',1);
    3642md.drag(find(in))=10;
     
    4551md.observed_temperature=(273-20)*ones(md.numberofgrids,1);
    4652md.temperature=(273-20)*ones(md.numberofgrids,1);
     53md.pressure=md.g*md.rho_ice*(md.surface-md.z); %lithostatique
    4754
    4855disp('      creating flow law paramter');
    4956md.B=5.2738*10^7*ones(md.numberofgrids,1);
    5057in=ContourToMesh(md.elements,md.x,md.y,expread('WeakB.exp',1),'node',1);
    51 md.B(find(in))=md.B(find(in))/3;
     58%md.B(find(in))=md.B(find(in))/3;
    5259md.n=3*ones(md.numberofelements,1);
    5360
     
    5663
    5764%Parallel options
    58 md.np=6;
     65md.cluster='cosmos';
     66md.time=60;
     67md.queue='shortq';
     68md.np=10;
    5969
    6070%dynamics
    61 md.dt=0.1; %1 year
     71md.dt=0; %1 year
    6272md.ndt=1;
    6373md.artificial_diffusivity=1;
  • issm/trunk/examples/IceStream/runme.m

    r2461 r2897  
    1 cluster='astrid';
    21
    32md=model;
    4 md=mesh(md,'DomainOutline.exp',400);
     3md=mesh(md,'DomainOutline.exp',500);
    54md=geography(md,'IceShelf.exp','');
    65md=parameterize(md,'Stream.par');
    7 %md=extrude(md,3,1);
    8 md=setelementstype(md,'macayeal','all');
    9 md.cluster=cluster;
    10 md=solve(md,'analysis_type','transient');
    11 %md=solve(md,'analysis_type','diagnostic');
     6md=extrude(md,10,1);
     7md=setelementstype(md,'pattyn','all');
     8%md=setelementstype(md,'macayeal','all');
     9%md=solve(md,'analysis_type','transient');
     10md=solve(md,'analysis_type','diagnostic');
     11%md=solve(md,'analysis_type','steadystate');
Note: See TracChangeset for help on using the changeset viewer.