Concentric Heat Exchanger#

This example simulates a heat exchanger which is made of two concentric pipes in which a hot and a cold fluid circulate in counterflow. We simulate the fluid flow within two fluid regions as well as the heat transfer within the entire domain (solid and fluid). This example illustrates the conjugate heat transfer capabilities of Lethe.

Features#

  • Solver: lethe-fluid

  • Heat transfer physics

  • Conjugated heat transfer

Files Used in This Example#

All files mentioned below are located in the example’s folder (examples/multiphysics/concentric-heat-exchanger).

  • Correlation calculation: correlation_calculation.py

  • Geometry file: concentric-cylinders.geo

  • Mesh file: concentric-cylinders.msh

  • Parameter file: concentric-heat-exchanger.prm

  • Postprocessing Python script: plot_temperature_over_line.py.

Description of the Case#

Heat exchangers are common unit operations used in many types of industries to transfer energy from one fluid to another. In this case, we simulate the most simple heat exchanger geometry, which is a concentric tube in which the hot fluid circulates within the inner tube, and a cold fluid circulates within the outer tube. We model the full heat transfer by simulating the motion of the fluid in both regions and the heat transfer within the entire domain.

problem_illustration

We consider copper concentric tubes with radii of \(R_0=1\text{mm} ,R_1=2\text{mm},R_2=3\text{mm}\) in which water circulates. We consider a counter-current flow with an inner tube velocity of \(u_i=10\text{mm/s}\) and an outer tube velocity of \(u_o=-4\text{mm/s}\). The inlet temperature within the inner tube is \(100^\circ C\) and it is \(0^\circ C\) in the outer tube. We do not formulate the problem in SI units, but instead we express the fundamental length in mm. This ensures that most variables of interest are close to unit value and this leads to a system matrix with an improved condition number.

We will compare the results we obtain with the CFD simulations with results obtained using the Number of Transfer Unit (NTU) approach [1]. Since the flow within both pipes is not developed, the Nusselt number in the inner pipe can be estimated as:

\[\overline{Nu}_D = 1.86 + \left(\frac{Re_D Pr D}{L}\right)^{1/3}\]

Using the NTU approach, the thermal effectiveness can be calculated and, from it, the outlet temperature is estimated to be \(25.3^\circ C\). A python file (correlation_calculation.py) is added to the example and contains all calculation procedures.

Parameter File#

Multiphysics#

We first enable the heat transfer multiphysics component:

subsection multiphysics
   set heat transfer = true
end

Mesh#

Conjugated heat transfer simulations require meshes in which the fluid and the solid regions are identified using a material_id. In the case of meshes generated by GMSH, this corresponds to the Physical Volume. Lethe assumes that the region occupied by the fluid has material_id=0 and the region occupied by the solid has material_id=1. The mesh used in this problem is a mesh generated using GMSH with the concentric-cylinders.geo file.

Note

Assuming that the gmsh executable is within your path, you can generate the mesh with:

gmsh -3 concentric-cylinders.geo -o concentric-cylinders.msh
subsection mesh
    set type                 = gmsh
    set file name            = concentric-cylinders.msh
end

Boundary Conditions#

The next step is establishing the boundary conditions for the fluid flow. We specify a no-slip boundary condition on the outer walls of the cylinder and specify an inlet velocity for both boundaries id 0 and 3 and an outlet on id 1 and 2. Note that the faces at the interfaces between the solid region and the fluid regions automatically have a noslip boundary condition applied to them. They should not be identified by a Physical Surface in the mesh.

subsection boundary conditions
set number = 5

subsection bc 0
    set type = function
    set id   = 0
    subsection u
    set Function expression = 0
    end
    subsection v
    set Function expression = 0
    end
    subsection w
    set Function expression = 10
    end
end
subsection bc 1
    set type = outlet
    set id   = 1
end
subsection bc 2
    set type = outlet
    set id   = 2
end
subsection bc 3
    set type = function
    set id   = 3
    subsection u
    set Function expression = 0
    end
    subsection v
    set Function expression = 0
    end
    subsection w
    set Function expression = -4
    end
end
subsection bc 4
    set type = noslip
    set id   = 4
end
end

Boundary Conditions Heat Transfer#

On the heat transfer side, we apply temperature boundary conditions at both inlets to impose the cold and the hot temperatures of the fluid. We explicitly specify noflux boundary conditions on both outlets to ensure that the heat flux through them will be calculated within the post-processing section of the code.

subsection boundary conditions heat transfer
  set number                  = 5
    subsection bc 0
        set id = 0
        set type              = temperature
        subsection value
          set Function expression = 100
        end
    end

    subsection bc 1
        set id = 1
        set type              = noflux
    end

    subsection bc 2
        set id = 2
        set type              = noflux
    end

    subsection bc 3
        set id = 3
        set type              = temperature
        subsection value
          set Function expression = 0
        end
    end

    subsection bc 4
        set id = 4
        set type              = noflux
    end
end

Physical Properties#

Next, we define the physical properties for both the solid and the fluid. It is important to explicitly indicate the number of solids, otherwise, the solid region will not be detected by Lethe. We consider the physical properties of copper for the solid and water for the fluid. The exponent that arises results from the change of units for length from meter to millimeter.

subsection physical properties
  set number of solids = 1
  subsection fluid 0
    set kinematic viscosity            = 1
    set specific heat                  = 4180e6
    set density                        = 1000e-9
    set thermal conductivity           = 0.60e3
  end

    subsection solid 0
    set thermal conductivity           = 398e3
    set specific heat                  = 385e6
    set density                        = 8960e-9
  end
end

Post-processing#

To enable a more complete analysis of the case, we enable the heat flux post-processing. This will calculate the total heat flux on every boundary of the domain and enable us to characterize the energy coming in and out of every inlet and outlet.

subsection post-processing
    set verbosity = verbose
    set calculate heat flux = true
end

Simulation Control#

Finally, we are interested in steady-state results and we thus specify a steady-state simulation.

subsection simulation control
  set method                  = steady
  set output frequency        = 1
  set output name             = out
  set output path             = ./output/
end

Running the Simulation#

Call the lethe-fluid by invoking:

mpirun -np 8 lethe-fluid concentric-heat-exchanger.prm

to run the simulation using eight CPU cores. Feel free to use more.

Warning

Make sure to compile lethe in Release mode and run in parallel using mpirun.

Results#

The following image shows the temperature profile along the length of the inner tube for three radial positions: center(\(r=0mm\)), half radius (\(r=0.5mm\)) and inner wall (\(r=1mm\)). We see that the temperature at the center of the tube takes a certain length before it starts decreasing. This is due to the poor heat transfer within the liquid. The black circle indicates the outlet temperature calculated from the NTU approach using the correlation. We see that this temperature is well within the envelope of the temperature profile obtained at the outlet.

problem_illustration

Using Paraview, the velocity and temperature profiles can be explored in depth.

Possibilities for Extension#

  • Investigate co-current flow: By inverting the inlet and the outlet on the outer pipe, this case can be changed from a counter-current to a co-current heat exchanger.

References#