Hydraulics of corrosive gas pockets in force mains