clear clear path global Nx Ny Nz global lat long dz dm mdep global delt_su su_its t_su delt global descriptor this_path global f deltaf Q beta r_expt r_heat H global time rots it global g Cp rho_bar alpha global u v t w global iterations param_file_name = ... input(' Please enter the name of the m-file with the parameters for this run : ','s') ; feval(param_file_name) ; path = this_path cmdstr=['cd ' path ]; eval(cmdstr); path=pwd XCenter = Nx/2 ; YCenter = Ny/2 ; R2 = 2*r_heat/dm ; % create large circular mask mask=ones(Nx,Ny); for i=1:Nx for j=1:Ny DispX=XCenter-i; DispY=YCenter-j; if ( DispX^2 + DispY^2 >= R2^2 ) mask(i,j)=0; end end end figure;hold on %set(gca,'XLim',[10000 35000]) set(gca,'YLim',[0.0 1.0]) sizeit=size(iterations); meanmudgeu=zeros(sizeit(1),1); for i=1:sizeit(1) mufilename=(['TWcorrectionu.' iterations((i),1:10) ]); mudgeu=rdmeta(mufilename,'b'); meanmudgeu(i,:)=sum(sum(mudgeu.*mask))/sum(sum(mask)); plot(eval(iterations((i),1:10)),meanmudgeu(i,:),'o');drawnow end title(descriptor) xlabel('timestep') ylabel('mean mudgeu') grid %save meanmudgeu meanmudgeu %save iterations iterations