Changeset 3581


Ignore:
Timestamp:
04/20/10 16:31:54 (15 years ago)
Author:
seroussi
Message:

mass conservation 2

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/Validation/EISMINT/MassConservation/CrossLine2.exp

    r3573 r3581  
    442 1.
    55# X pos Y pos
    6 10000  199999
    7 110000 0
     60 0
     7200000 100000
  • issm/trunk/test/Validation/EISMINT/MassConservation/runme2.m

    r3573 r3581  
    44%The goal is to test the prognostic model
    55%md=bamg(model,'domain','DomainOutline.exp','hmax',4550);
    6 md=bamg(model,'domain','DomainOutline.exp','hmax',3000);
     6md=bamg(model,'domain','DomainOutline.exp','hmax',2000);
    77md=geography(md,'all','');
    88md=parameterize(md,'Square.par');
     
    1515md.vx=160*sqrt(5)*ones(md.numberofgrids,1);
    1616md.vy= 80*sqrt(5)*ones(md.numberofgrids,1);
     17sinus=1/5*sqrt(5);
     18cosinus=2/5*sqrt(5);
    1719
    1820%0launch transient solution
     
    2022%FOR NOW:
    2123md.cluster=oshostname();
    22 md.np=10;
     24md.np=14;
    2325i=0;
    2426time=0;
     
    2729posLEFT=find(md.x<0.01);
    2830connectivity=full(sparse(md.elements(:),1,1));
    29 while(time<100),
    30         disp(['step ' num2str(i) '/' num2str(500/md.dt)]);
     31while(time<600),
     32        disp(['step ' num2str(i) '/' num2str(600/md.dt)]);
    3133        i=i+1;
    3234        time=time+md.dt;
     
    3537        %md.thickness=thickness./connectivity;
    3638        md.thickness=md.results.prognostic2.thickness;
    37         md.thickness(posLEFT)=500+100*sin((2*pi/200)*(time-md.y(posLEFT)/md.vy(1)));
    38         md.thickness(posDOWN)=500+100*sin((2*pi/200)*(time-md.x(posDOWN)/md.vx(1)));
     39        md.thickness(posLEFT)=500+100*sin((2*pi/200)*(time-sinus*md.y(posLEFT)/sqrt(md.vx(1)^2+md.vy(1)^2)));
     40        md.thickness(posDOWN)=500+100*sin((2*pi/200)*(time-cosinus*md.x(posDOWN)/sqrt(md.vx(1)^2+md.vy(1)^2)));
    3941        md.surface=md.bed+md.thickness;
    4042        md.dummy(i).thickness=md.thickness;
     
    4345
    4446%plot results
    45 plotmodel(md,'data',[md.thickness 500+100*sin(2*pi/200*(500-md.y/400))],'sectionvalue','CrossLine2.exp')
     47plotmodel(md,'data',[md.thickness 500+100*sin(2*pi/200*(600-(md.x*cosinus+md.y*sinus)/sqrt(md.vx(1)^2+md.vy(1)^2)))],'sectionvalue','CrossLine2.exp')
    4648
    4749%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.