| 1 |
edhill |
1.1 |
clear |
| 2 |
|
|
clear path |
| 3 |
|
|
|
| 4 |
|
|
global Nx Ny Nz |
| 5 |
|
|
global lat long dz dm mdep |
| 6 |
|
|
global delt_su su_its t_su delt |
| 7 |
|
|
global descriptor this_path |
| 8 |
|
|
global f deltaf Q beta r_expt r_heat H |
| 9 |
|
|
global time rots it |
| 10 |
|
|
global g Cp rho_bar alpha |
| 11 |
|
|
global u v t w |
| 12 |
|
|
global iterations |
| 13 |
|
|
|
| 14 |
|
|
|
| 15 |
|
|
param_file_name = ... |
| 16 |
|
|
input(' Please enter the name of the m-file with the parameters for this run : ','s') ; |
| 17 |
|
|
feval(param_file_name) ; |
| 18 |
|
|
path = this_path |
| 19 |
|
|
cmdstr=['cd ' path ]; |
| 20 |
|
|
eval(cmdstr); |
| 21 |
|
|
path=pwd |
| 22 |
|
|
|
| 23 |
|
|
% create circular sampling rings |
| 24 |
|
|
|
| 25 |
|
|
|
| 26 |
|
|
sizeit=size(iterations); |
| 27 |
|
|
theta20=zeros(sizeit(1),1); |
| 28 |
|
|
figure;hold on |
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
for i=2:sizeit(1)-1 |
| 32 |
|
|
tfilename=(['T.' iterations((i),1:10) ]); |
| 33 |
|
|
t=rdmds(tfilename,'b'); |
| 34 |
|
|
|
| 35 |
|
|
sum=0. |
| 36 |
|
|
for ii=1:Nx, |
| 37 |
|
|
for jj=1:Ny, |
| 38 |
|
|
|
| 39 |
|
|
kk=find(t(ii,jj,:)>21); |
| 40 |
|
|
iii=size(kk); |
| 41 |
|
|
sum=sum+iii(1); |
| 42 |
|
|
|
| 43 |
|
|
end |
| 44 |
|
|
end |
| 45 |
|
|
|
| 46 |
|
|
sum; |
| 47 |
|
|
no(i)=sum; |
| 48 |
|
|
|
| 49 |
|
|
|
| 50 |
|
|
time(i)=eval(iterations(i,1:10)); |
| 51 |
|
|
plot(time(i),no(i),'.');drawnow |
| 52 |
|
|
|
| 53 |
|
|
|
| 54 |
|
|
end |
| 55 |
|
|
|
| 56 |
|
|
|
| 57 |
|
|
|
| 58 |
|
|
title(descriptor) |
| 59 |
|
|
xlabel('timestep') |
| 60 |
|
|
ylabel('No of gridpoints in a warm pool') |
| 61 |
|
|
grid |
| 62 |
|
|
|
| 63 |
|
|
|
| 64 |
|
|
%save centralt centralt |
| 65 |
|
|
%save iterations iterations |
| 66 |
|
|
%save tcol tcol |
| 67 |
|
|
%save tincol tincol |
| 68 |
|
|
%save mdep mdep |
| 69 |
|
|
%save working tcol tincol mdep computertime |