Skip to content

Commit

Permalink
Added English version of part3
Browse files Browse the repository at this point in the history
  • Loading branch information
minoue-xx committed Apr 16, 2020
1 parent 2c20acc commit 226c881
Show file tree
Hide file tree
Showing 18 changed files with 858 additions and 10 deletions.
6 changes: 4 additions & 2 deletions docs_part2/script_AnimateVelocityField_part2.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
% represents the velocity using |quiver| function. The code below generates GIF.
% The numerical integration process discussed above is now in the function |updateVelocityField.m.|
%
clear, close all
addpath('../functions/')
%% Animation Setting
visRate = 4; % downsample rate of the data for quiver
recordGIF = false; % set to true if you wanna make GIF
Expand Down Expand Up @@ -80,8 +82,8 @@
end

% Update the velocity field (uses dct)
[u,v] = updateVelocityField_CNAB_bctop(u,v,Nx,Ny,dx,dy,Re,dt,bctop,'dct');
% [u,v] = updateVelocityField_RK3_bctop(u,v,Nx,Ny,dx,dy,Re,dt,bctop,'dct');
% [u,v] = updateVelocityField_CNAB_bctop(u,v,Nx,Ny,dx,dy,Re,dt,bctop,'dct');
[u,v] = updateVelocityField_RK3_bctop(u,v,Nx,Ny,dx,dy,Re,dt,bctop,'dct');

% Update the plot at every recordRate steps
if mod(ii,recordRate) == 0
Expand Down
Loading

0 comments on commit 226c881

Please sign in to comment.