1 |
edhill |
1.1 |
close all |
2 |
|
|
whos |
3 |
|
|
global Nx Ny Nz |
4 |
|
|
global lat long dz dm mdep |
5 |
|
|
global delt_su su_its t_su delt |
6 |
|
|
global descriptor this_path |
7 |
|
|
global f deltaf Q beta r_expt r_heat H |
8 |
|
|
global time rots it |
9 |
|
|
global g Cp rho_bar alpha |
10 |
|
|
global u v t w |
11 |
|
|
global iterations |
12 |
|
|
|
13 |
|
|
% i=find(t<20); |
14 |
|
|
% t(i)=20; |
15 |
|
|
|
16 |
|
|
cmin=20; |
17 |
|
|
cmax=32; |
18 |
|
|
V=[cmin cmax]; |
19 |
|
|
figure |
20 |
|
|
caxis('manual') |
21 |
|
|
|
22 |
|
|
%subplot(2,1,1) |
23 |
|
|
title='in-situ temperature at z=3'; |
24 |
|
|
imagesc(lat,long,squeeze(t(1:Nx-1,1:Ny-1,3))');shading flat;axis off;box on; |
25 |
|
|
% imagesc(lat,long,squeeze(t(:,:,5))');shading flat;axis image;caxis(V);colorbar('vertical'); |
26 |
|
|
set(gca,'ydir','norm') |
27 |
|
|
text(0,-50,descriptor); |
28 |
|
|
text(0,140,title); |
29 |
|
|
text(0,-30,'timestep');text(80,-30,num2str(it)) |
30 |
|
|
%subplot(2,1,2) |
31 |
|
|
figure |
32 |
|
|
imagesc(squeeze(meantheta(1:Nx-2,Ny/2,1:Nz-1))');grid;axis off; |
33 |
|
|
% contour(flipud(squeeze(t(1:Nx-1,Ny/2,3:Nz))'),50);caxis(V);colorbar;grid |
34 |
|
|
% text(0,-2,'in-situ east-west temperature ') |
35 |
|
|
%figure |
36 |
|
|
% contour(flipud(squeeze(t(Ny/4,1:Ny-1,1:Nz))'),50);colorbar;grid |
37 |
|
|
% text(0,-2,'in-situ north-south temperature') |
38 |
|
|
|