Lattice Boltzmann multicomponent model for direct-writing printing