Modelling a dune field