| 1 |
function plotfields( iter ) |
| 2 |
clear |
| 3 |
clear path |
| 4 |
|
| 5 |
global Nx Ny Nz |
| 6 |
global lat long dz dm mdep |
| 7 |
global delt_su su_its t_su delt |
| 8 |
global descriptor this_path |
| 9 |
global f deltaf Q beta r_expt r_heat H |
| 10 |
global time rots it |
| 11 |
global g Cp rho_bar alpha |
| 12 |
global u v t w |
| 13 |
global iterations |
| 14 |
|
| 15 |
|
| 16 |
for j=1:5:Ny |
| 17 |
j |
| 18 |
figure(1) |
| 19 |
subplot(2,1,1) |
| 20 |
pcolor(flipud(transpose(squeeze(t(:,j,:)))));shading flat; colorbar; |
| 21 |
title(['t timestep ' num2str(eval(it)) ' y section ' int2str(j) ]); |
| 22 |
drawnow |
| 23 |
subplot(2,1,2) |
| 24 |
pcolor(flipud(transpose(squeeze(w(:,j,:)))));shading flat; colorbar; |
| 25 |
title(['w timestep ' num2str(eval(it)) ' y section ' int2str(j) ]); |
| 26 |
drawnow |
| 27 |
|
| 28 |
pause |
| 29 |
|
| 30 |
end |
| 31 |
|
| 32 |
return |