Relativistic tidal compressions of a star by a massive black hole