Cramps

Does anyone else get major cramp(s) after orgasming? I’ve asked my doctor and all she said was to take ibuprofen before sex :/ but I want to know what’s causing it or how to prevent it.