Obligatory ghusl follows causes such as relevant semen discharge, intercourse, and the ending of menstruation or nifas. Sunnah ghusl is associated with Friday, the Eids, ihram, and Arafah.
Madhi and wadi require wudu, not ghusl. These are three distinct types of legal ruling.