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

Sorted_link_Table.m

SortedP=zeros(8,9,'int32'); 
SortedN=zeros(8,9,'int32'); 


SortedP=[ ...
    [1 5 8 2 9 4 6 7 3];
    [2 6 5 3 9 1 7 8 4];
    [3 7 6 4 9 2 8 5 1]; %ok
    [4 8 7 1 9 3 5 6 2];
    [5 2 1 6 9 8 3 4 7];
    [6 3 2 7 9 5 4 1 8];
    [7 4 3 8 9 6 1 2 5];
    [8 1 4 5 9 7 2 3 6] ];
    
    
 SortedN=[ 
    [1 8 5 4 9 2 7 6 3]; % ok
    [2 5 6 1 9 3 8 7 4];
    [3 6 7 2 9 4 5 8 1];
    [4 7 8 3 9 1 6 5 2]; % ok
    [5 1 2 8 9 6 4 3 7]; 
    [6 2 3 5 9 7 1 4 8]; % ok
    [7 3 4 6 9 8 2 1 5];
    [8 4 1 7 9 5 3 2 6] ];
    


    SortedP=int32(SortedP);
    SortedN=int32(SortedN);

Contact us