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

Read_Vessel_from_image_file.m
% read geometry from file 

if(1), % 
dove='C:\';
fil_name_por='Cruiser1.gif'; 
A=imread(fil_name_por); % 
A=A>0;
A=A(:,2:end-2);
[Nr Mc]=size(A);
A=imresize(A,[Nr*2,Mc*2]);
[Nr Mc]=size(A);
figure, imshow(A,[]);   
end

Contact us