Code covered by the BSD License  

Highlights from
immiscible LB

immiscible LB


G. Sken (view profile)


23 Jul 2009 (Updated )

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

function varargout = mink(varargin)
% function res = MINK(list, k)
% If LIST is a vector, MINK returns in RES the K smallest elements of LIST
%   RES is sorted in ascending order
% [res loc] = MINK(...)
%   Location of the smallest elements: RES=LIST(LOC)
% If list is a matrix, MINK operates along the first dimension
% Use MINK(..., dim) to operate along the dimension dim
%     MINK(..., dim, 'sorting', false) to disable the post-sorting step
%                                      (true by default)
% Author Bruno Luong <>
% Contributor: Matt Fig
% Last update: 07/April/2009
%              10/Jan/2010: possibility to disable post-sorting step

[nout{:}] = minmaxk(@minkmex, varargin{:});

Contact us