Flow, Thermal, and Chemical Modeling for Pipeline Internal Corrosion Analyses