Melting around a shaft rotating in a phase-change material