← Back to Projects
Personal project · Oct 2026

Shell-and-Tube Heat Exchanger CFD

I designed a shell-and-tube heat exchanger in SolidWorks and simulated it in Flow Simulation. It moves 528 kW from hot water to cold at an effectiveness of 0.65, and the energy balance closes within 2.6 %. Along the way I tracked down a 24 % error in my own setup.

CFD Heat transfer SolidWorks Verification

Hover over any underlined term (or tap it on a phone) for a plain-language definition.

Particle traces coloured by temperature: hot tube-side flow (left to right) and cold shell-side flow (right to left).
Heat moved528kWAverage of the hot and cold sides
Effectiveness0.65Share of the most heat it could possibly move
Energy balance2.6%Gap between the two sides (24 % on my first run)
Mesh1.96M cellsFine mesh, the published result

Overview

I designed a single-pass shell-and-tube heat exchanger in SolidWorks and simulated it in SolidWorks Flow Simulation to predict how much heat it moves from hot water to cold water.

Then I checked the answer with an energy balance, hand calculations, convergence checks and a mesh refinement study.

Single-pass shell-and-tube exchanger, 400 mm shell, 1,060 mm tubes.
Single-pass shell-and-tube exchanger, 400 mm shell, 1,060 mm tubes.

The design

Exploded assembly: shell, 124-tube bundle with 4 baffles, hemispherical heads and nozzles.
Exploded cut-away of the assembly.
Exploded cut-away of the assembly.
124 copper tubes, 25 mm OD, square pitch.
124 copper tubes, 25 mm OD, square pitch.
Section view: 4 segmental baffles force the shell-side flow back and forth across the tubes.
Section view: 4 segmental baffles force the shell-side flow back and forth across the tubes.
Geometry: 400 mm shell inner diameter, 124 copper tubes, 25 / 20 mm tube OD / ID, 2.5 mm wall, 1,060 mm long, 10.32 m² heat transfer area, 4 baffles at 160 mm, square pitch.
Geometry of the exchanger.

Setup

Hot water runs through the tubes from left to right. Cold water runs through the shell the other way, so the two streams run in opposite directions (counterflow).

Simulation setup: hot inlet 5.0 kg/s at 180 °C, hot outlet pressure 101.3 kPa, cold inlet total pressure 101.3 kPa at 20 °C, cold outlet 1.2 kg/s; 1,955,306 cells; converged to ±0.1 °C over 1,008 iterations.
Terms: tube side · shell side · total-pressure inlet · mass-flow outlet · conjugate heat transfer · single-phase · iterations

Results

Final results from the fine mesh (about 1.96 million cells). Every temperature plot on this page uses the same 20 to 180 °C colour scale.

Temperature and flow direction: cold water enters top right (blue) and heats to about 124 °C as it crosses the baffles; hot water cools from 180 °C to about 155 °C.
Temperature and flow direction: cold water enters top right (blue) and heats to about 124 °C as it crosses the baffles; hot water cools from 180 °C to about 155 °C.
Key results: 528 kW heat duty, ε 0.65, 2.6% energy balance gap; hot water 180.0 to 155.5 °C, cold water 20.0 to 123.6 °C; LMTD 90.2 K, UA 5.85 kW/K, U 567 W/m²·K.
Terms: energy balance · effectiveness, ε · LMTD · UA · U

The cold side has the lower heat capacity rate, so it sets the limit on how much heat can move. That's why the cold water warms by about 104 °C while the hot water only cools by about 25 °C.

Inside the tubes the water moves at about 0.14 m/s. That's a Reynolds number of about 15,800, so the tube flow is turbulent.

How I checked it

CheckWhat I found
Energy balanceThe hot side gave up 534.8 kW and the cold side took in 520.9 kW, 2.6 % apart. Some of that gap is heat lost through the outer walls.
Total Enthalpy RateChecked across all four openings to confirm energy is conserved directly.
ε-NTU and LMTD by handEffectiveness 0.65 (the cold side has the lower heat capacity rate), LMTD 90.2 K, UA 5.85 kW/K.
Is U believable?U comes out at 567 W/m²·K, below the usual 850–1,700 for water-to-water exchangers. That fits the slow shell-side flow.
ConvergenceOutlet temperatures held within ±0.1 °C. 1,008 iterations, 4.8 flow travels.
Mesh refinementAbout 13× more cells (0.15 to 1.96 million). Heat moved changed by 3 %. Cells touching a wall dropped from 98 % to 74 % of the fluid cells.

Convergence

I ran the solver to 1,008 iterations and tracked both outlet temperatures as goals. The run counts as converged when each goal stays within ±0.1 °C.

Outlet temperatures settle within about 200 iterations and stay flat to iteration 1,008 (converged to ±0.1 °C).
Outlet temperatures settle within about 200 iterations and stay flat to iteration 1,008 (converged to ±0.1 °C).

Mesh check

I ran the same case on a coarse mesh and a fine mesh with about 13× more cells.

The fine mesh is the result I'm publishing. Going from the coarse to the fine mesh changed the heat moved by 3 % and the cold outlet by 3.9 °C. With only two meshes this is a sensitivity check, not proof of mesh independence.

Mesh refinement from 0.15 M to 1.96 M cells. The coarse mesh had only 1–2 cells across the gaps between tubes and over-predicted heat duty by about 3% (544 vs 528 kW); the fine mesh is the published result.
Mesh refinement from 0.15 M to 1.96 M cells. The coarse mesh had only 1–2 cells across the gaps between tubes and over-predicted heat duty by about 3 % (544 vs 528 kW); the fine mesh is the published result.
Mesh sensitivity: 150,202 cells coarse vs 1,955,306 fine (13.0×); heat duty 544 vs 528 kW (−3.0%); ε 0.672 vs 0.648; cold outlet 127.5 vs 123.6 °C; energy balance gap 1.4% vs 2.6%.

Hand calculation

Hand-calculation check (ε-NTU): C_hot 21.81 kW/K, C_cold 5.03 kW/K, C_r 0.231, NTU 1.163; ε 0.653 by hand vs 0.648 from CFD, 0.7% apart.
Terms: ε-NTU · heat capacity rate (C) · UA · effectiveness, ε
Download full simulation report Download results spreadsheet The report is the 8-page Flow Simulation PDF for the fine-mesh run. The spreadsheet is the Excel file behind the tables on this page.

Fixing a 24 % energy imbalance

On my first run, the heat leaving the hot water didn't match the heat entering the cold water. I tracked it down to three problems in my setup.

Troubleshooting: energy balance gap 24.2% with backflow at the shell outlet (cold out 102.5 °C), 1.4% after fixing the boundaries on the coarse mesh, 2.6% on the fine mesh; three problems found and their fixes.
Terms: backflow · mass-weighted (bulk) · total-pressure inlet · mass-flow outlet
Before: water circulating back in through the pressure outlet at 20 °C pulled the cold outlet reading down by about 26 K.Before
Before: water circulating back in through the pressure outlet at 20 °C (the blue wedge) pulled the cold outlet reading down by about 26 K.
After: total-pressure inlet and mass-flow outlet. The backflow is gone, and the energy balance went from 24 % to 2.6 % (1.35 % on the coarse mesh).After
After: total-pressure inlet and mass-flow outlet. The backflow is gone, and the energy balance went from 24 % to 2.6 % (1.35 % on the coarse mesh).
  1. A goal was averaging the wrong openings.One temperature goal was taking in both the cold inlet and the hot outlet, so it read 56.7 °C instead of 20 °C.
  2. The wrong kind of average.My goals used area-weighted average temperature. An energy balance needs the mass-weighted (bulk) temperature.
  3. Water flowing back in at the outlet.The shell-side outlet was a pressure opening, and water was circulating back in through it at the 20 °C ambient temperature. That pulled the cold outlet reading down by about 26 K (102.5 °C instead of about 128 °C). The solver flagged it: “A vortex crosses the pressure opening.” I switched the shell side to a total-pressure inlet and a mass-flow outlet, which stopped the backflow and cleared the warning.

Energy imbalance

Before
24 %
After
2.6 %

Fixing all three brought the gap down to about 1–3 %: 1.35 % on the coarse mesh and 2.6 % on the final fine mesh.

Limitations

  • The mass-flow outlet forces an even velocity across the whole exit
  • Boiling isn't modelled. Water above 100 °C is treated as pressurized liquid
  • Gravity was set along the tube axis instead of straight down. At these flow rates buoyancy should have little effect
  • Two meshes, so this is a mesh sensitivity check, not a full mesh-independence study

Next steps

Use this CFD as the starting point for a physics-based digital twin of a heat exchanger, for condition monitoring such as spotting fouling.

Skills used

SolidWorks assembly modelling CFD setup Conjugate heat transfer Energy balance ε-NTU and LMTD Boundary conditions Mesh and convergence checks