**
Thanks for contacting with your health concern and I've two opinions regarding your condition:
1. As there is history of surgical intervention,
consult a General Surgeon for necessary examination and investigation since although there is no direct interrelation between hemorrhoids and gas accumulation, but each worsens the symptoms of other, and going by your history and symptom
2. the most probable diagnosis could be functional
IBS [irritable bowel syndrome] which is a collection of symptoms ranging from
bloating,
diarrhea,
abdominal pain, and
constipation, so
consult a Gastroenterologist for necessary examination and investigation, till then
. maintain proper hydration [to prevent dehydration] and replace with electrolytes [avoid apple, grapes, pear juice which can make stomach upset].
- Avoid fiber-rich diet, since it can make bloating worse [instead take plain white rice, boiled potato, plain toast]
- avoid eating dairy products, spicy food, and spicy condiments, stay away from artificial sweeteners.
- take less of strong spices (ginger, garlic), oily-fried-fatty food and flatus producing foods (peas, beans, dals)
- eat slowly, avoid haste-irregular eating and sweet/heavy food which are difficult to digest and cause indigestion
- since it is a psychosomatic disease thus tranquility of mind is must, as such Medhya drugs or a mild tranquilizer are useful.
PS. If symptoms persist, call your doctor since it can be symptoms of underlying illness or infection which require medical intervention.