Changeset 9947


Ignore:
Timestamp:
09/27/11 08:29:39 (14 years ago)
Author:
Mathieu Morlighem
Message:

Fixed runme

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/examples/SquareIceShelf/Square.par

    r8312 r9947  
    44hmin=300;
    55hmax=1000;
    6 ymin=min(md.y);
    7 ymax=max(md.y);
    8 md.thickness=hmax+(hmin-hmax)*(md.y-ymin)/(ymax-ymin);
    9 md.bed=-md.rho_ice/md.rho_water*md.thickness;
    10 md.surface=md.bed+md.thickness;
     6ymin=min(md.mesh.y);
     7ymax=max(md.mesh.y);
     8md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y-ymin)/(ymax-ymin);
     9md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness;
     10md.geometry.surface=md.geometry.bed+md.geometry.thickness;
    1111
    1212disp('      creating drag');
    13 md.drag_type=2; %0 none 1 plastic 2 viscous
    14 pos=find(md.elementoniceshelf);
    15 md.drag_coefficient=200*ones(md.numberofnodes,1); %q=1.
    16 md.drag_coefficient(md.elements(pos,:))=0;
    17 md.drag_p=ones(md.numberofelements,1);
    18 md.drag_q=ones(md.numberofelements,1);
    19 
    20 disp('      creating temperature');
    21 md.observed_temperature=(273-20)*ones(md.numberofnodes,1);
     13pos=find(md.mask.elementonfloatingice);
     14md.friction.coefficient=200*ones(md.mesh.numberofvertices,1); %q=1.
     15md.friction.coefficient(md.mesh.elements(pos,:))=0;
     16md.friction.p=ones(md.mesh.numberofelements,1);
     17md.friction.q=ones(md.mesh.numberofelements,1);
    2218
    2319disp('      initial velocity');
    24 md.vx=zeros(md.numberofnodes,1);
    25 md.vy=zeros(md.numberofnodes,1);
    26 md.vz=zeros(md.numberofnodes,1);
    27 md.vel=zeros(md.numberofnodes,1);
     20md.initialization.vx=zeros(md.mesh.numberofvertices,1);
     21md.initialization.vy=zeros(md.mesh.numberofvertices,1);
     22md.initialization.vz=zeros(md.mesh.numberofvertices,1);
     23md.initialization.vel=zeros(md.mesh.numberofvertices,1);
    2824
    2925disp('      creating flow law paramter');
    30 md.rheology_B=paterson(md.observed_temperature);
    31 md.rheology_n=3*ones(md.numberofelements,1);
     26md.materials.rheology_B=paterson((273-20)*ones(md.mesh.numberofvertices,1));
     27md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
    3228
    3329disp('      creating boundary conditions');
  • issm/trunk/examples/SquareIceShelf/runme.m

    r8571 r9947  
    11md=model;
    2 md=mesh(md,'DomainOutline.exp',100000);
    3 md=geography(md,'all','');
     2md=setmesh(md,'DomainOutline.exp',100000);
     3md=setmask(md,'all','');
    44md=parameterize(md,'Square.par');
    5 md=setelementstype(md,'macayeal','all');
     5md=setflowequation(md,'macayeal','all');
    66md=solve(md,DiagnosticSolutionEnum);
Note: See TracChangeset for help on using the changeset viewer.