clear clear path clear iterations 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 figure;hold on %set(gca,'XLim',[10000 35000]) %set(gca,'YLim',[20 35]) sizeit=size(iterations); centraltheta=zeros(sizeit(1),Nz); for i=1:sizeit(1) tfilename=(['T.' iterations((i),1:10) ]); t=rdmeta(tfilename,'b'); centralt(i,:)=t(Nx/2+1,Ny/2-1,:)-20; plot(eval(iterations((i),1:10)),centralt(i,:),'.');drawnow tincol(i)=sum((centralt(i,:)).*dz); time(i)=(eval(iterations(i,1:10))-su_its)*delt; end tcol=centralt; title(descriptor) xlabel('timestep') ylabel('not quite the central temperature') grid computertime=time; %save centralt centralt %save iterations iterations %save tcol tcol %save tincol tincol %save mdep mdep save oc1computer tcol tincol mdep computertime