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

Define_Body_Force.m
 % EXTERNAL (Body) FORCES e.g. inlet pressure or inlet-outlet gradient
        % directions:           E  N W S NE NW SW SE ZERO
        %Bforce = dPdL*(1/6)*+1*[0 -1 0 1 -1 -1 1  1  0]'; %;
        %...                    E  N E S NE NW SW SE RP ...
        % the pressure pushes the fluid down i.e. N to S
        
        % directions:            E  N W S NE NW SW SE ZERO
        Bforce = dPdL*(1/6)*[0 -1 0 1 -1 -1 1  1  0]'; %;
        
       

Contact us