Flagellate

To whip or flog.  In a BDSM context, flagellation is often used for the purposes of sexual arousal and/or punishment. See whip.