Numerical investigation of phase change materials thermal capacitor for pipe flow