| 1 |
clear |
| 2 |
clear path |
| 3 |
whos |
| 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 |
XCenter = Nx/2 ; |
| 15 |
YCenter = Ny/2 ; |
| 16 |
R2 = 55 ; |
| 17 |
% create large circular mask |
| 18 |
mask=ones(Nx,Ny); |
| 19 |
for i=1:Nx |
| 20 |
for j=1:Ny |
| 21 |
DispX=XCenter-i; |
| 22 |
DispY=YCenter-j; |
| 23 |
if ( DispX^2 + DispY^2 >= R2^2 ) |
| 24 |
mask(i,j)=0; |
| 25 |
end |
| 26 |
end |
| 27 |
end |
| 28 |
|
| 29 |
cmin=-1e-4; |
| 30 |
cmax=+1e-4; |
| 31 |
V=[cmin cmax]; |
| 32 |
figure |
| 33 |
caxis('manual') |
| 34 |
pcolor(lat,long,squeeze(w(:,:,2)).*mask);shading('interp'); |
| 35 |
axis image;caxis(V);colorbar('horizontal'); |