Changeset 3581
- Timestamp:
- 04/20/10 16:31:54 (15 years ago)
- Location:
- issm/trunk/test/Validation/EISMINT/MassConservation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/Validation/EISMINT/MassConservation/CrossLine2.exp
r3573 r3581 4 4 2 1. 5 5 # X pos Y pos 6 10000 199999 7 11000006 0 0 7 200000 100000 -
issm/trunk/test/Validation/EISMINT/MassConservation/runme2.m
r3573 r3581 4 4 %The goal is to test the prognostic model 5 5 %md=bamg(model,'domain','DomainOutline.exp','hmax',4550); 6 md=bamg(model,'domain','DomainOutline.exp','hmax', 3000);6 md=bamg(model,'domain','DomainOutline.exp','hmax',2000); 7 7 md=geography(md,'all',''); 8 8 md=parameterize(md,'Square.par'); … … 15 15 md.vx=160*sqrt(5)*ones(md.numberofgrids,1); 16 16 md.vy= 80*sqrt(5)*ones(md.numberofgrids,1); 17 sinus=1/5*sqrt(5); 18 cosinus=2/5*sqrt(5); 17 19 18 20 %0launch transient solution … … 20 22 %FOR NOW: 21 23 md.cluster=oshostname(); 22 md.np=1 0;24 md.np=14; 23 25 i=0; 24 26 time=0; … … 27 29 posLEFT=find(md.x<0.01); 28 30 connectivity=full(sparse(md.elements(:),1,1)); 29 while(time< 100),30 disp(['step ' num2str(i) '/' num2str( 500/md.dt)]);31 while(time<600), 32 disp(['step ' num2str(i) '/' num2str(600/md.dt)]); 31 33 i=i+1; 32 34 time=time+md.dt; … … 35 37 %md.thickness=thickness./connectivity; 36 38 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))); 39 41 md.surface=md.bed+md.thickness; 40 42 md.dummy(i).thickness=md.thickness; … … 43 45 44 46 %plot results 45 plotmodel(md,'data',[md.thickness 500+100*sin(2*pi/200*( 500-md.y/400))],'sectionvalue','CrossLine2.exp')47 plotmodel(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') 46 48 47 49 %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.