Counterflow heat exchanger simulation
Table of Contents
Introduction
A counter flow heat exchanger is a common component in various industrial processes and thermal systems, designed to efficiently transfer thermal energy between two fluid streams flowing in the same direction (Fig. 1.).
Fig. 1. Scheme of a counter-flow heat exchanger
Mathematical model of Counter-flow heat exchanger
The mathematical model of counterflow heat exchanger (or counter-flow heat exchanger) is based on two heat balance equations, for cold and hot fluid. The model is generally very similar to co-current heat exhcanger, however the solution is much more complex, due to to opposite direction of flow. The co-current heat exchanger is discussed and simulated on our website: co-current heat exchanger simulation. In this model, a concentric geometry is assumed, but generally different shape can be adopted with small variations in the equations.
The hot fluid flows through the inner space of the heat exchanger from left to right (from x=0 to x=L), while the cold one in the external space from right to left (from x=L to x=0), as shown in Fig. 2. As there are distributions of fluid temperatures along the heat exchanger, we will consider a differential slice inside of it (Fig. 2).
Fig. 2. Differential slice in heat exchanger
First, let's formulate the heat balance equation for the hot fluid.
where:
- specific heat of hot fluid,
- volumetric flow rate of hot fluid,
- Heat transfer area,
- time, s
- temperature of hot fluid,
- temperature of cold fluid,
- Overall heat transfer coefficient,
- differencial slice volume,
- possition,
- density of hot fluid,
The interpretation of the equation (1) is following: Each term in the equation is expressed in units of [J/s]. Terms on the right sum together to the term on the left-hand-side, which is the accumulation rate of heat in differential the volume dV of the exchanger. The first term on the right-hand-side of the equation is the heat inflow rate. The second term is the heat outflow rate from the differential slice. The last term describes heat transfer rate from the hot fluid to the cold fluid.
Let's write the heat balance equation for the cold fluid.
Symbols in the above Equation (2) have the analogous meaning as in the (1), but 'c' denotes cold stream. Please note that the flow direction is opposite to the hot stream, so the signs are changed in the first two terms in the right-hand side of the equation corresponding to inflow and outflow from the differential slice.
Now, we will tranform the system of equations (1)-(2), knowing that:
After using the Eq. (3) we have:
After simplifying:
The volumes of differential slices are calculated as:
and the area of the heat exchange surface:
where:
- radius of inner tube,
- radius of outer tube,
The system (4) will now be simplified. We will assume steady-state conditions, so the dervatives with respect to time are equal zero.
After introducing definitions (5)-(6) and simplifying, we get:
Parameters of the system
We can see that there are several parameters describing the system. The heat transfer process depends on the mass flow rates of the hot and cold fluids and their specific heats, as these coefficients directly influence the amount of thermal energy they can store in amount of time. The heat transfer efficiency is also influenced by overall heat transfer coefficient, which in turn depends on the convective heat transfer coefficients and wall thermal conductivity (it can be calculated by proper equations, but this is out of the scope of this tutorial). The last factor is the heat transfer surface. In this case it depends on the inner radius and the heat exchanger length. Despite the length does not appear in the model (8), the differential equations are solved (integrated) in the range [0, L].
Solution of heat-exchanger model
To solve the the system of differential equations (8) we need to know boundary conditions. For a counterflow heat exchanger, they are the inlet temperatures of hot and cold streams. Assuming that the hot stream is flowing into the exchanger at x = 0 and the cold stream at x = L, we have and :
The problem (8)-(9) is called a boundary value problem. The solution is based on the appliation of adequate algorithm, for example shooting method, finite difference method or collocation methods. Here, the finite difference method is used. It is based on the discretization of the space into N+1 sections, as shown in Fig. 3 for N = 9. Each node is enumerated starting from 0 to N+1 at the right end. In other words, there are N internal nodes and 2 external nodes.
Fig. 3. Discretization of the space in counter-flow heat exchanger
The deriative of temperature with respect to x is approximated as follows:
where denotes temperature at .
The above formula is called a backward difference approximation. There are also approximations of higer orders, but here they will not be used. After applying finite difference approximations in the system of Eqs. (8) describing the heat exchanger, we will have:
The equation for cold stream was discretized using forward difference approximation. Because the flow direction is opposite it makes the implementation slightly easier. The equations (11) are written for each internal nodes . At the external points, that is at and we know the values of temperatures:
The heat exchanger is now described by a system of algebraic equations. Such problems are commonly presented in the form in which left-hand sides are equal zero, as below:
The solution of a system of algebraic equations is a common problem in many numerical libraries and languages. For example in Matlab, the fsolve function can be used for this purpose, which is discussed here: fsolve in Matlab. In Python, function with the same name (fsolve) from scipy library is used for such problems. It is discussed here: fsolve in SciPy.
Heat exchanger simulation
Simulation is a powerful tool for the design and optimization of equipment used in chemical and process engineering, including heat exchangers. It can be used for example to calculate the temperature values when the operating condition changes.
Solving the model of a heat exchanger results in the functions describing the distributions of temperatures along the heat exchanger: and . The shape of these profiles differs for co-current and counterflow flow heat exchangers. Exemplary results of thermal calculations for a counterflow heat exchanger are show in Fig. 4.
Fig. 4. Temperature distributions in counterflow flow heat exchanger
How to simulate heat exchanger with the application
The usage is rather straightforward. The table on the left is used to introduce the process parameters. The plot on the right is for visualization of the results, that is the temperature profiles in the heat exchanger. You can export the plot using the options in the top right of the plot (download as png).