Lattice Boltzmann codes