To practice mentally grounding yourself, focus on some aspect of the physical world around you, rather than on your internal thoughts and feelings. Focus on the present rather than the past. Practice your grounding techniques so that they will come naturally when you are upset.
image: Skagit County Tulip Festival 2011 by verifex under Creative Commons license