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 % create circular sampling rings sizeit=size(iterations); theta20=zeros(sizeit(1),1); figure;hold on for i=2:sizeit(1)-1 tfilename=(['T.' iterations((i),1:10) ]); t=rdmds(tfilename,'b'); tt(i,:)=t(Nx/2,Ny/2,:)-20; time(i)=eval(iterations(i,1:10)); end plot(time(2:sizeit(1)-1),tt(2:sizeit-1,1:10));drawnow title(descriptor) xlabel('timestep') ylabel('T anomaly at the center of the tank for 10 near-surface levels') grid computertime=time; %save centralt centralt %save iterations iterations %save tcol tcol %save tincol tincol %save mdep mdep %save working tcol tincol mdep computertime