Changeset 3573


Ignore:
Timestamp:
04/20/10 09:56:02 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added Mass conservation test 2

Location:
issm/trunk/test/Validation/EISMINT/MassConservation
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/Validation/EISMINT/MassConservation/runme.m

    r3156 r3573  
    22% Vincent Rommelaere 1996
    33
    4 cluster='none';
    5 np=2;
    6 
    74%The goal is to test the prognostic model
    8 md=model;
    9 md=mesh(md,'DomainOutline.exp',4550);
     5%md=bamg(model,'domain','DomainOutline.exp','hmax',4550);
     6md=bamg(model,'domain','DomainOutline.exp','hmax',3000);
    107md=geography(md,'all','');
    118md=parameterize(md,'Square.par');
     
    1310
    1411%Evolution of the ice shelf
    15 md.ndt=500*md.yts;
    16 md.dt=5*md.yts;
    17 md.artificial_diffusivity=1; %Better result with no artificial diffusivity
     12md.ndt=500;
     13md.dt=1;
     14md.artificial_diffusivity=0; %Better result with no artificial diffusivity
    1815
    19 %launch transient solution
    20 md.cluster=cluster;
    21 md.np=np;
    22 md=solve(md,'analysis_type','transient');
     16%0launch transient solution
     17%md=solve(md,'analysis_type','transient');
     18%FOR NOW:
     19md.cluster=oshostname();
     20md.np=8;
     21i=0;
     22time=0;
     23md.dummy=struct();
     24pos=find(md.y>199999.9);
     25connectivity=full(sparse(md.elements(:),1,1));
     26while(time<500),
     27        disp(['step ' num2str(i) '/' num2str(500/md.dt)]);
     28        i=i+1;
     29        time=time+md.dt;
     30        md=solve(md,'analysis_type','prognostic2','package','ice');
     31        %thickness=full(sparse(reshape(md.elements',3*md.numberofelements,1),1,md.results.prognostic2.thickness));
     32        %md.thickness=thickness./connectivity;
     33        md.thickness=md.results.prognostic2.thickness;
     34        md.thickness(pos)=500+100*sin(2*pi*time/200)*ones(size(pos,1),1);
     35        md.surface=md.bed+md.thickness;
     36        md.dummy(i).thickness=md.thickness;
     37        %plotmodel(md,'data',md.thickness,'sectionvalue','CrossLine.exp')
     38end
    2339
    2440%plot results
    25 plotmodel(md,'data',md.results.transient(end).thickness,'sectionvalue','CrossLine.exp')
     41plotmodel(md,'data',[md.thickness 500+100*sin(2*pi/200*(500-md.y/400))],'sectionvalue','CrossLine.exp')
    2642
    2743%Don't forget to add these lines in icetransient2d.m, just before the computation of the thickness to change the thickness on the upper boundary condition
Note: See TracChangeset for help on using the changeset viewer.