Dipolar particles in an external field: Molecular dynamics simulation and mean field theory.