Analytical and numerical investigation of U-tube heat exchangers