It takes time to get over any relationship you can't just turn off your feelings towards your ex overnight.
You need to focus on the good things you have in your life, try and keep active, arrange nights out with your friends take up a hobby anything to keep your mind active and pull your thoughts away form your ex.
If he has been violent towards you in the past, then you are well shot of him, any time you feel like contacting him, think about how you felt when he was laying into you, that should be enough to change your mind.
Good luck.