We use lattice Boltzmann simulations to study the effect of shear on the ph
ase ordering of a two-dimensional binary fluid. The shear is imposed by gen
eralizing the lattice Boltzmann algorithm to include Lees-Edwards boundary
conditions. We show how the interplay between the ordering effects of the s
pinodal decomposition and the disordering tendencies of the shear, which de
pends on the shear rate and the fluid viscosity, can lead to a state of dyn
amic equilibrium where domains are continually broken up and reformed.