| 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 |
|
| 19 |
iterations |
| 20 |
|
| 21 |
it = input(' Please enter iteration : ','s') |
| 22 |
|
| 23 |
path = this_path |
| 24 |
cmdstr=['cd ' path ]; |
| 25 |
eval(cmdstr); |
| 26 |
path=pwd |
| 27 |
|
| 28 |
mufilename = (['mudgeu.' it ]); |
| 29 |
mvfilename = (['mudgev.' it ]); |
| 30 |
ufilename = (['U.' it ]); |
| 31 |
vfilename = (['V.' it ]); |
| 32 |
tfilename = (['T.' it ]); |
| 33 |
udfilename = (['Udsk.' it ]); |
| 34 |
vdfilename = (['Vdsk.' it ]); |
| 35 |
usfilename = (['Uspin.' it ]); |
| 36 |
vsfilename = (['Vspin.' it ]); |
| 37 |
mudgeu = rdmeta(mufilename,'b'); |
| 38 |
mudgev = rdmeta(mvfilename,'b'); |
| 39 |
udisk = rdmeta(udfilename,'b'); |
| 40 |
vdisk = rdmeta(vdfilename,'b'); |
| 41 |
uspin = rdmeta(usfilename,'b'); |
| 42 |
vspin = rdmeta(vsfilename,'b'); |
| 43 |
u = rdmeta(ufilename,'b'); |
| 44 |
v = rdmeta(vfilename,'b'); |
| 45 |
t = rdmeta(tfilename,'b'); |
| 46 |
|
| 47 |
w=zeros(Nx,Ny,Nz+1); |
| 48 |
dx=dm; |
| 49 |
dy=dm; |
| 50 |
|
| 51 |
for k=Nz:-1:1, |
| 52 |
w(1:Nx-1,1:Ny-1,k)= w(1:Nx-1,1:Ny-1,k+1)... |
| 53 |
-u(2:Nx,1:Ny-1,k)*dz(k)/dx +u(1:Nx-1,1:Ny-1,k)*dz(k)/dx ... |
| 54 |
-v(1:Nx-1,2:Ny,k)*dz(k)/dy +v(1:Nx-1,1:Ny-1,k)*dz(k)/dy ; |
| 55 |
end |
| 56 |
udminusu=-udisk-u(:,:,1); |
| 57 |
udminusus=-udisk-uspin(:,:,1); |
| 58 |
vdminusv=vdisk-v(:,:,1); |
| 59 |
vdminusvs=vdisk-vspin(:,:,1); |
| 60 |
figure |
| 61 |
subplot(4,4,1);pcolor(udisk);axis square;colorbar;shading flat; |
| 62 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('udisk'); |
| 63 |
subplot(4,4,2);pcolor(vdisk);axis square;colorbar;shading flat |
| 64 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('vdisk') |
| 65 |
subplot(4,4,3);pcolor(sqrt(vdisk.*vdisk+udisk.*udisk));axis square;colorbar;shading flat |
| 66 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('diskspeed') |
| 67 |
subplot(4,4,4);pcolor(vspin);axis square;colorbar;shading flat |
| 68 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('vspin') |
| 69 |
subplot(4,4,5);pcolor(uspin);axis square;colorbar;shading flat |
| 70 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('uspin') |
| 71 |
subplot(4,4,6);pcolor(sqrt(vdisk.*vdisk+udisk.*udisk));axis square;colorbar;shading flat |
| 72 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('spinspeed') |
| 73 |
subplot(4,4,7);pcolor(mudgeu);axis square;colorbar;shading flat |
| 74 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('mudgeu') |
| 75 |
subplot(4,4,8);pcolor(mudgev);axis square;colorbar;shading flat |
| 76 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('mudgev') |
| 77 |
subplot(4,4,9);pcolor(u(:,:,1));axis square;colorbar;shading flat |
| 78 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('u') |
| 79 |
subplot(4,4,10);pcolor(v(:,:,1));axis square;colorbar;shading flat |
| 80 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('v') |
| 81 |
subplot(4,4,11);pcolor(sqrt(v(:,:,1).*v(:,:,1)+u(:,:,1).*u(:,:,1)));axis square;colorbar;shading flat |
| 82 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('speed') |
| 83 |
subplot(4,4,12);pcolor(udminusu);axis square;colorbar;shading flat |
| 84 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('udminu') |
| 85 |
subplot(4,4,13);pcolor(udminusus);axis square;colorbar;shading flat |
| 86 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('udminusus') |
| 87 |
subplot(4,4,14);pcolor(vdminusv);axis square;colorbar;shading flat |
| 88 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('vdminusv') |
| 89 |
subplot(4,4,15);pcolor(vdminusvs);axis square;colorbar;shading flat |
| 90 |
set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]);title('vdminusvs') |
| 91 |
subplot(4,4,16);set(gca,'XTickLabel',[]);set(gca,'YTickLabel',[]); title(descriptor) |