Molecular-dynamics simulation methods for macromolecular crystallography