<p>A computer-implemented method for simulating fluid flow using a lattice Boltzmann (LB) approach and for solving scalar transport equations is described herein. In addition to the lattice Boltzmann functions for fluid flow, a second set of distribution functions is introduced for transport scalars.</p>