Code covered by the BSD License  

Highlights from
immiscible LB

immiscible LB

by

 

23 Jul 2009 (Updated )

Implements Immiscible Lattice Boltzmann (ILB, D2Q9) method for two phase flows

Restart_Time_Evolution.m

if StopFlag==1
    %Max_Iter=Max_Iter+8000; % max allowed number of iterations
    Max_Iter=150000;
    StopFlag=0;
else
    % continue with the old Max_Iter value
end

%Check_Iter=30; 
Output_Every=1500; % frequency of check & output

% new avi file
avi_fname=[avi_fname,'I'];
mov=avifile(avi_fname,'compression','None'); % continue on another avi

%mov=aviread(avi_fname);     sz = size(mov(1).cdata);
%mov = mmreader([avi_fname,'.avi']),

% call main time evolution loop as before
Main_Time_Evolution_Loop

mov=close(mov);% closes avi file



Contact us