Studies in molecular dynamics. XVIII. The square-well phase diagram