2 %a=load('model_test_out.txt');
\r
3 f=fopen('model_test_out.txt','r');
\r
4 if f<0, error('cannot open input file'), end
\r
14 fprintf('step %i time %g ',i,t),
\r
15 fprintf('lfn change %g\n',...
\r
16 max(max(abs(lfn-lfn_last))));
\r
24 vis(lfn,flux,vx,vy,dx,dy,t)
\r
33 function vis(u,f,vx,vy,dx,dy,tNow)
\r
34 % u = level function
\r
35 % f = reaction intensity or flux
\r
46 set(h,'edgecolor','none')
\r
49 contour3(y,x,u,[0 0],'k')
\r
56 set(h,'edgecolor','none')
\r
59 contour(y,x,u',[0 0],'k')
\r
63 [xx,yy]=ndgrid(x,y);
\r
64 quiver(xx(ix,iy),yy(ix,iy),vx(ix,iy),vy(ix,iy))
\r
68 disp('no visualization selected, set vis=type to 2d or 3d')
\r
72 title(sprintf('t=%g',tNow));
\r