Next Article in Journal
Improvement of the Steel-Plate Temperature during Preheating by Using Guide Vanes to Focus the Flame at the Outlet of a Gas Torch
Next Article in Special Issue
The Effect of Wet Compression on a Centrifugal Compressor for a Compressed Air Energy Storage System
Previous Article in Journal
Flight Time Estimation for Continuous Surveillance Missions Using a Multirotor UAV
Previous Article in Special Issue
Influence of Disc Tip Geometry on the Aerodynamic Performance and Flow Characteristics of Multichannel Tesla Turbines
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Optimum Enthalpy Approach for Melting and Solidification with Volume Change

by
Moritz Faden
*,
Andreas König-Haagen
and
Dieter Brüggemann
Chair of Thermodynamics and Transport Processes (LTTT), Centre of Energy Technology (ZET), University of Bayreuth, Universitätsstraße 30, 95440 Bayreuth, Germany
*
Author to whom correspondence should be addressed.
Energies 2019, 12(5), 868; https://doi.org/10.3390/en12050868
Submission received: 4 February 2019 / Revised: 26 February 2019 / Accepted: 27 February 2019 / Published: 5 March 2019
(This article belongs to the Special Issue Computational Fluid Dynamics (CFD) 2018)

Abstract

:
Classical numerical methods for solving solid–liquid phase change assume a constant density upon melting or solidification and are not efficient when applied to phase change with volume expansion or shrinkage. However, solid–liquid phase change is accompanied by a volume change and an appropriate numerical method must take this into account. Therefore, an efficient algorithm for solid–liquid phase change with a density change is presented. Its performance for a one-dimensional solidification problem and for the quasi two-dimensional melting of octadecane in a cubic cavity was tested. The new algorithm requires less than 1/9 of the iterations compared to the source based method in one dimension and less than 1/7 in two dimensions. Moreover, the new method is validated against PIV measurements from the literature. A conjugate heat transfer simulation, which includes parts of the experimental setup, shows that parasitic heat fluxes can significantly alter the shape of the phase front near the bottom wall.

1. Introduction

Melting and solidification processes receive scientific interest as they are fundamental to many phenomena in nature and technical applications. Generally, solid–liquid phase change extends over multiple length and time scales, but for most engineering purposes a macroscopic continuum approach is adequate. Examples are latent energy thermal heat storage [1,2] and metal processing [3]. Multiple approaches exist to solve solid–liquid phase change in the framework of continuum theory numerically. Mostly, these approaches are classified by the way they treat the moving phase boundary into deforming and fixed grid schemes [4,5]. It has turned out that fixed grid schemes offer more flexibility and are easier to implement than deforming grid schemes. Nevertheless, numerical methods for melting and solidification on fixed grids are still challenging [6]. The energy equation is highly nonlinear and most problems are intertwined with fluid flow and some even with solid movement [7]. Furthermore, an additional variable, called phase fraction, is required in fixed grid schemes. At the time when the first fixed grid numerical methods emerged, only diffusive phase change was considered [8,9]. Later, multiple approaches were developed to describe convective phase change on fixed grids [10,11,12]. Great effort was put into the development of efficient algorithms, especially by Voller and his coauthors [13,14]. This resulted in a numerical scheme, based on Newton linearization, with a minimized number of iterations. The numerical scheme was named the optimum approach and the idea of linearizing phase change problems has triggered further research [15]. However, back then computers were not nearly as powerful as today. To keep the computational effort under control, the volume change upon melting or solidification was disregarded and the variable density in the liquid was described by the Boussinesq approximation. This is still the standard today, despite a drastic increase in computational power and the fact that solid–liquid phase change is always accompanied by a volume change. Moreover, the validity range of the Boussinseq approximation is unknown for solid–liquid phase change.
Nowadays, researchers start to include density change in their simulations [16,17,18], e.g., Hassab et al. [19] studied the effect of volume expansion for different heating boundary conditions and Dallaire and Gosselin [20] the solidification of water in an elastic capsule. However, they all lack a customized algorithm for solid–liquid phase change accompanied by density change and have to use slowly converging methods. To tackle this problem, we developed a new algorithm for melting and freezing of phase change material (PCM) with density change, which minimizes the number of iterations required and is based on the optimum approach.
This paper describes the new algorithm and compares its performance to the source based method. The source based method converges slowly but is quite stable and often used. It is implemented in most commercial codes and is used as a benchmark. Thereby, the original source based method was adjusted to be able to solve for a density change upon melting and solidification. Test cases were a one-dimensional solidification problem, where an analytical solution exists, and a two-dimensional melting problem with natural convection. Furthermore, we compared the numerical solution of the two-dimensional melting problem to experimental velocity fields obtained by Faden et al. [21].

2. Mathematical Model

Liquid and Solid phase are treated on the same grid and are tracked by the phase fraction α . With the aid of the phase fraction, the velocity inside the solid phase is set to zero using a Darcy source term:
A ( α ) = D ( 1 α ) 2 α 3 + ϵ u ,
where D is the Darcy constant and ϵ a small numerical constant to avoid dividing by zero. The flow in the liquid phase is assumed to be laminar and Newtonian. For a Newtonian fluid, the viscous stress tensor reads:
τ ̲ ̲ = η ( u + ( u ) T ) 2 3 ( · u ) E ̲ ̲ ,
where η is the dynamic viscosity.
Furthermore, the PCM is assumed to be incompressible, hence density is solely depending on the temperature, i.e., ρ = ρ ( T ) . Pressure and viscous terms in the energy equation are not taken into account. Considering these assumptions the resulting mass, momentum and energy equations are:
ρ t + · ( ρ u ) = 0 ,
ρ u t + · ( ρ u u ) = p + · τ ̲ ̲ + ρ g + A ,
ρ h t + · ( ρ u h ) = · ( λ T ) ,
where the mixture heat conductivity is defined as a linear blend between its solid and liquid value:
λ = α λ l + ( 1 α ) λ s .
This system of equations requires an equation of state to be closed. Mostly, this relation between the enthalpy and the temperature is not given directly but split up in a sensible and a latent part. To be able to use material properties from the literature, we follow this approach and define a piecewise enthalpy–temperature relation. Moreover, instead of a melting temperature, we define a melting range:
h = { c p , s T T < T S c ¯ p ( T T S ) + h S + α ρ l ρ L T S T T L c p , l ( T T L ) + h L T > T L ,
where T S is the solidus, T L the liquidus temperature and L the latent heat of fusion. The solidus and the liquidus enthalpy are defined as:
h S = c p , s T S h L = c ¯ p ( T L T S ) + h S + L .
Additionally, the melting range is thin, so we can assume a constant heat capacity in the mushy region:
c ¯ p = c p , l + c p , s 2 .
This simplifies the inversion of the enthalpy–temperature relation considerably, which is necessary for the numerical solution later on:
T = { h c p , s h < h S T S + h h S h L h S ( T L T S ) h S h h L T L + h h L c p , l h > h L .
The relation between the enthalpy and the phase fraction follows from the mixture approach [22]:
ρ h = α ρ l h L + ( 1 α ) ρ s h S
with
ρ = α ρ l + ( 1 α ) ρ s .
Combining these two equations, the phase fraction can be expressed as a function of the enthalpy:
α = ρ s ( h S h ) h ( ρ l ρ s ) ρ l h L + ρ s h S .
Alternatively, α can be expressed as a function of the temperature:
α = ρ ρ l T T S T L T S = T T S T L T S ρ s ρ l 1 + T T S T L T S ( ρ s ρ l 1 ) .
Apparently, the phase fraction is a non-linear function of the temperature. However, with this definition of the phase fraction, the enthalpy (Equation (7)) is still a linear function of the temperature in each interval.
It should be noted that the methods described in the next section work for arbitrary density and enthalpy temperature relations and not only for the specific cases presented here.

3. Numerical Solution

The mathematical model was implemented into the finite volume, CFD toolbox OpenFOAM (version 2.2.2) [23], whereby the solver was based on the standard OpenFOAM solver buoyantPimpleFoam. The system of partial differential equations was solved in a sequential manner, whereas strong couplings were treated through inner iterations and weak couplings through outer iterations (Figure 1). The focus here was on the T-h coupling, hence, it was assumed that the mass flux is known. A detailed description on the pressure velocity coupling is given in the Appendix A.

3.1. Optimum Approach

The original optimum approach was developed for phase change with sensible enthalpy transport and constant thermophysical properties. Its main idea is to update the enthalpy directly on the T-h curve. The starting point is the semi-discretized form of the energy equation:
ρ h k + 1 h o Δ t + c p ρ · ( u m T k + 1 , ) = λ k Δ T k + 1 , ,
where the index o refers to the old time step, m to the known mass flux, k to the old iteration step inside the T-h iteration and k + 1 to the new iteration step. The star ∗ indicates an intermediate value. The new iteration step of the enthalpy h k + 1 is approximated via a Taylor expansion:
h k + 1 = h k + h T | k ( T k + 1 , T k )
and inserted into the semi-discretized energy equation:
ρ k h k ρ o h o Δ t + ρ k h T | k T k + 1 , T k Δ t + · ( ρ m u m h k ) = · ( λ k Δ T k + 1 , ) .
Equation (17) is linear in T k + 1 , and can be solved by a linear matrix solver. It is important to note that the second term on the left hand side is zero when the solution converges, since in this case T k = T k + 1 , . The new iteration step of the enthalpy is calculated by inserting T k + 1 , into Equation (16). However, it is possible that cells skip the sharp enthalpy change with this procedure. To overcome this problem, the temperature is forced back onto the T-h curve by Equation (10) once the new enthalpy value is calculated:
T k + 1 = f ( h k + 1 ) .

3.2. Optimum Density Approach

If the density is constant, the optimum approach leads to a minimized number of iterations. However, for most PCM, the density is discontinuous at the solid–liquid phase change. Moreover, for the outflow boundary to work, the total enthalpy has to be convected. The optimum density approach addresses these two issues. Here, the starting point is the semi-discretized energy equation with variable physical properties and total enthalpy transport:
ρ k h k + 1 ρ o h o Δ t + · ( ρ m u m h k ) = · ( λ k T k + 1 , ) .
A Taylor expansion of the product consisting of density and enthalpy accounts for the discontinuous density:
( ρ h ) k + 1 = ( ρ h ) k + ρ k h T | k ( T k + 1 , T k ) + h k ρ T | k ( T k + 1 , T k ) + h T | k ρ T | k ( T k + 1 , T k ) 2   ( ρ h ) k + ρ k h T | k + h k ρ T | k ( T k + 1 , T k ) .
The term involving both derivatives approaches zero quadratically and is therefore not taken into account. With the enthalpy in the phase change region defined as
h = c ¯ p ( T T S ) + h S + α ρ l ρ L ,
the derivative of h with respect to T is
h T = c ¯ p + L T L T S ,
while the derivative of the density with respect to the temperature follows from Equations (11) and (14):
ρ T = ρ s ρ l ( 1 + T T S T L T S ( ρ s ρ l 1 ) ) 2 ρ l ρ s T L T S .
Second, we Taylor expand the convection term:
· ( ρ m u m h k + 1 ) = · ( ρ m u m h k ) + · ρ m u m h T | k T k + 1 , · ρ m u m h T | k T k .
Here, only the enthalpy is expanded to be consistent with the PISO algorithm, which gives the conservative mass fluxes, i.e., the product of the density and the velocity at the cell faces ρ m u m , at the iteration level m. Inserting Equations (20) and (24) into the semi-discretized energy Equation (19) yields:
ρ k h k ρ o h o Δ t + ρ k h T | k + h k ρ T | k T k + 1 , T k Δ t + · ( ρ m u m h k ) + · ρ m u m h T | k T k + 1 , · ρ m u m h T | k T k = · ( λ k T k + 1 , ) .
The second term and the summation of the fifth and sixth terms are zero at convergence. After Equation (25) is solved by a linear matrix solver, the temperature is forced back onto the T-h curve, the new phase fraction value is calculated by Equation (13) and the material properties are updated. The iteration process is ended if the residuum of α is reached, i.e., max ( | α k + 1 α k | ) < 10 6 .

3.3. Source Based Method

The source based method is based on the idea of splitting the enthalpy into a sensible and a latent part and treating the latent part as a known source term. This yields:
c p ρ k T k + 1 t + c p · ( ρ k u m T k + 1 ) · ( λ T k + 1 ) = L ρ l k α k t + · ( ρ l k u m α k ) source term .
This equation is linear in T k + 1 and can be solved readily. Next, the phase fraction α is updated under the assumption that the enthalpy inside a cell is the same before and after the update step
α k + 1 , = α k + ω c p L ( T k + 1 T ) ,
where ω is an under relaxation factor and T = ( T L T S ) ρ l ρ k α k + T S . To assure boundedness of the phase fraction, the calculated α k + 1 , has to be corrected:
α k + 1 = min [ max [ α k + 1 , , 0 ] , 1 ] .
In a final step, the material properties are updated, the residuum is calculated and a new iteration step is started if the residuum is not fulfilled.

3.4. Test Cases

3.4.1. One-Dimensional Solidification

The first test case was a one-dimensional solidification Stefan problem with a time dependent convective boundary condition and a density change. The particular nature of this problem is its analytical solution found by Tarzia [24]. For this test case, we did without explicit units, but assumed that they are consistent.
The one-dimensional simulation domain is depicted in Figure 2. The infinite analytical domain was cut off at a length of l = 10 , where a fixed pressure outlet boundary condition is applied. Initially, the PCM was liquid with a temperature of T i n i = 1 . The material properties did not differ between the two phases, except for the density: λ = c p = ρ l = 1 , ρ s = [ 0.9 , 0.8 , 0.7 ]. Both the Darcy constant and the viscosity were set to zero: D = η = 0 . The freezing temperature T f of the material was 0, which was approximated by solidus and liquidus temperatures of T S = 0.01 and T L = 0.01 , respectively. At t > 0 , a convective cooling condition with a time-dependent heat transfer coefficient was applied at the left boundary:
T x = γ λ t ( T T ) ,
with
γ = 5 λ π λ ρ c p T i n i T f T f T .
Subsequently, the material started to solidify and the increase in volume pushed the liquid through the outlet at the right. The domain was divided into 800 cells ( Δ x = 0.0125 ) and the time step was 0.001. The simulation ended at a time of 8.
The analytical solution of this problem is rather long and is not repeated here. It can be found in Tarzia [24].

3.4.2. Two-Dimensional Melting with Convection

The geometry of the second test case was a cubic cavity with an edge length of l = 40 mm and a velocity outlet at the top left corner (Figure 3). The outlet velocity was obtained by the incompressibility assumption, i.e., ρ = ρ ( T ) . After each solution of the nonlinear T-h-coupling, the mass inside the capsule was calculated via a sum over all cells m = ρ m V and subtracted from the mass at the beginning of the time step. This mass difference had to leave the capsule in this time step, as the density was not affected by the pressure:
m c a p s u l e o m c a p s u l e m Δ t = ( u m ρ m A ) o u t l e t .
Rearranged, this yielded a formula for the outlet velocity:
u o u t l e t m = m c a p s u l e o m c a p s u l e m Δ t ( ρ m A ) o u t l e t .
The correct outlet velocity was calculated iteratively with the outer iteration loop. The pressure at the outlet was allowed to find its own value:
p n = 0 .
This outflow boundary was necessary, because a zero gradient velocity boundary condition assumes a fully developed flow. This assumption does not hold if the outflow boundary is simply prescribed at the edge of the cavity. In that case, a recirculation area develops. Another solution would be a geometry extension at the outlet, e.g., a short pipe.
At the beginning, the PCM inside the cavity was completely solid at a temperature of T i n i = 298.15 K . With the start of the simulation, the temperature of the left cavity wall was raised to T h = 308.15 K . The temperature of the right cavity wall was kept at the initial temperature T c = T i n i . At the two remaining cavity walls and at the outlet boundary, the normal gradient of the temperature was set to zero:
T n = 0 .
The time was discretized by the implicit Euler method and the time step was chosen by a maximum CFL-number or a maximum time step, depending on which criterion was reached first. For each algorithm, four different maximum CFL/time step combinations were investigated: maximum CFL of 0.5, 1.0, 2.0 and 4.0 with a maximum time step of 0.5 s, 1.0 s, 2.0 s and 4.0 s, respectively. The thermophysical properties of the chosen PCM (octadecane) are summarized in Table 1; solid density and viscosity were measured in-house.
The spatial discretization of the convection term has to be chosen carefully, due to the steep gradient of most variables at the phase boundary. Generally, first-order schemes are far too diffusive, while second-order schemes cannot predict the phase boundary accurately enough. To overcome this problem, the convection term was discretized by a high resolution scheme. For the two Taylor expanded convection terms appearing in Equation (24), a simple upwind discretization sufficed, as they canceled each other out at convergence. The spatial discretization resulted in both symmetric and asymmetric matrix systems. The former were solved by a preconditioned conjugate gradient solver with a diagonal incomplete Cholesky preconditioner method, whereas the latter by a preconditioned biconjugate gradient solver with a diagonal incomplete lower upper preconditioner. The residual for the phase fraction was set to 10 6 in 1D and 10 7 in 2D.

3.5. Validation Case

For the validation of the numerical model, we used PIV and phase front measurements by Faden et al. [21]. Their experimental setup consists of a quadratic, transparent polycarbonate pipe, with a length of 40 mm and a wall thickness of l p o l y = 1 mm , which is clamped between a copper and an aluminum plate. The PCM is inside the pipe and initially at T i n i = 298.15 K . With the start of the experiment, the temperature of the copper plate is raised to T h = 308.15 K , whereas the aluminum plate is kept at the initial temperature. During the experiment, the setup is insulated by foamed polystyrene, whereby the insulation on top of the pipe stands out a bit. Excess material can leave the capsule through a passage way in the copper plate.
We mimicked the experimental setup and extended the simulation domain to include the top and bottom capsule walls and the insulation (Figure 4), but reduced the problem to two dimensions. The surrounding air and the cork plate on which the experimental setup was mounted were modeled as a thermal resistance. The extension of the simulation domain was necessary because the thermal conductivity of the polycarbonate capsule walls was higher than that of liquid octadecane. This led to a parasitic heat flux, which altered the shape of the phase front, especially at the bottom of the capsule, where the convective motion of the liquid PCM hampered melting. Moreover, the insulation was clamped between the copper and the aluminum plate, which led to an additional parasitic heat flux.
The solid capsule walls were treated computationally, similar to the solid PCM. A Darcy source term suppressed the velocity, and the thermal properties were implemented via two additional variables ζ an θ . The heat transfer coefficient between the experimental setup and the surrounding air was calculated by using the VDI Heat Atlas [27]. This yielded a heat transfer coefficient of k 1 7 W / m 2 K at the top and k 2 3 W / m 2 K at the bottom. The ambient temperature was set to T = 295.15 K . The time step was determined by a maximal Co-number of 1.0 with a maximum time step of 1.0 s. The solver settings and the other boundary conditions were the same as in the previous section. The thermophysical properties of polycarbonate and the polystyrene insulation are summarized in Table 2.

3.6. Mesh Influence for the Convection Test Case

Three meshes with 10,000, 40,000 and 90,000 cells were created and compared. The relative differences in the global liquid fraction with respect to the fine mesh were highest at the beginning of the simulation with 60 % for the coarse and 20 % for the medium mesh. This huge difference can be explained easily: With an increasing number of cells, the cell size decreased and therefore the point in time where the first cell was liquid was earlier. Throughout the rest of the simulation, the maximum relative difference between the coarse and the fine mesh was approximately 6 % and 1 % for the medium mesh (Figure 5). A relative difference of 1 % was acceptable, thus we chose the medium mesh for all further computations, including the validation case. Here, the total number of cells was higher (58,000), because of the extended simulation domain, which included the insulation and the polycarbonate pipe walls.

4. Results and Discussion

4.1. One-Dimensional Solidification

For the one-dimensional solidification test case, both approaches yielded almost the exact same results, i.e., they did not differ up to the sixth decimal place in the global liquid fraction at the end of the simulation. For that reason, the figures displaying the liquid fraction or the temperature only show one solution method. The temperature distribution obtained by the numerical solution closely matches the analytical solution and it is hard to distinguish the two lines by eye (Figure 6). Hence, both methods give correct results and can be employed for solving solid–liquid phase change accompanied by a density change. However, both methods differed by the required number of nonlinear iterations (Figure 7). The source base method needed approximately nine times as many iterations compared to the optimum density approach, slightly depending on the density ratio. For both approaches, the number of nonlinear iterations increased with decreasing density ratio, but the increase was moderate.
The density ratio not only has a computational influence but also a physical one. The liquid fraction at the end of the simulation rose with the density ratio, since the volume expansion upon solidification pushed the liquid through the outlet and therefore reduced the amount of liquid inside the simulation domain. However, the volume change also resulted in a higher thermal resistance. Therefore, the functional relation between the density ratio and the liquid fraction was somewhat less than linear (Figure 8).
A phenomenon inherent to all enthalpy methods during diffusive dominated phase change is a stepwise progression of the phase boundary. This results in an oscillating velocity for density varying phase change (Figure 9). These oscillations have been observed before, but it seems that they were stronger here than those found by Alexiades and Drake [22]. This can be explained by the effect that segregated pressure velocity algorithms generally tend to produce oscillations at discontinuous surfaces. However, the influence of these oscillations on the temperature and phase fraction is small, as in the finite volume method they are convected by the mass flux on the cell faces and these mass fluxes do not oscillate. If two- or three-dimensional problems are studied and natural convection is taken into account, the progression of the phase front is no longer stepwise and the velocity oscillations vanish.

4.2. Two-Dimensional Melting of Octadecane with Natural Convection

As previously, the optimum density approach required less computational effort than the source based method, but the source based method did not perform as poorly as in the one-dimensional case. This was also found by Voller and Swaminathan for a comparison without density change in the original optimum approach paper [14]. Depending on the Courant number, the source based method required 4–7 times as many iterations compared to the optimum density approach (Figure 10).
It was obvious that the maximum Courant number and thus the time step greatly influenced the iterations required. A small time step meant more time steps and therefore the T-h coupling had to be solved more often, but fewer iterations per time step were necessary. However, two difficulties arise, if the time step is increased: First, the solution methods for the T-h coupling can become unstable. This happened here for a Courant number greater than 2 for the source based method. This may be resolved by applying underrelaxation. Second, the number of outer iterations per time step has to be increased, because the coupling between the momentum and the energy equations is not solved accurately enough. This happened here for the optimum density approach at max Co > 4. Here, the solution would be an increased number of outer iterations. However, in both cases, the computational effort was increased despite a higher time step. That is why we did not increase the time step any further.
The difference in the iteration number affected the required computational time strongly. For a maximum Courant number of 2, the source based method needed four times as long as the optimum density approach with the same maximum Courant number. When the stability of the solver was also taken into account, the source based method with a Courant number of 2 needed approximately 5.5 times as long as the optimum density approach with a Courant number of 4. This comparison seemed reasonable, since the influence of the time step on the liquid fraction after 4 h was small, e.g., for the optimum density approach, the difference in the global liquid fraction between the largest and the smallest time step/maximum Co-number combination was below 0.02 %.
Figure 11 depicts the nonlinear and linear iterations over time. The diffusive dominated melting regime right at the beginning is recognizable by a lower slope.
At the end of the simulation, the source based method required over five times as many nonlinear T-h iterations compared to the optimum density approach and six times as many calls to the linear matrix solver. The convergence history inside a time step emphasizes this behavior (Figure 12). Clearly, the residual of the optimum density approach decreased more quickly.
The position of the phase front is shown in Figure 13 (left) for the optimum density approach. Showing only the solution obtained by the optimum density approach suffices, because the liquid fraction and the position of the phase front did not differ much compared to the source based method. The optimum density approach gave a global liquid fraction at the end of the simulation of α = 0.643 , and α = 0.641 with the source based approach. The reason for this small difference was the different discretization of the convection term. This is an issue the authors plan to investigate further in a following paper.

4.3. Validation

All simulations presented in this section were performed with the optimum density solver on the extended simulation domain. The measured [21] and the numerically obtained phase front positions agree well (Figure 13).
After 60 min, the influence of natural convection was clearly visible as the phase front was tilted to the right and melting at the top of the capsule was clearly faster than at the bottom. With increasing time, the influence of convection became even more dominant. After 4 h, only a small streak of solid PCM separated the right capsule wall and the liquid PCM at the top of the capsule, while at the bottom of the capsule the liquid PCM progressed to about a quarter of the capsule length for the experimental results and a bit less than a quarter for the numerical ones. The kink in the phase front shape at the bottom of the capsule, resulting from the parasitic heat flux through the capsule walls, was also present in the numerical solution on the extended simulation domain. The greatest deviations arose at the top of the capsule, where the numerical solution predicted a larger already melted area. Possible reasons for this deviation are: increased natural convection due to the two-dimensionality assumption, uncertainties in thermo-physical properties, heat loss while the top insulation was removed for taking pictures required for PIV and the presence of an air bubble in the experiment, which hampered melting at the top of the capsule. This air bubble was visible in the experimental velocity field in the top left corner, as an area with zero velocity (Figure 14). Similar to the phase front positions, the velocity fields matched well. Of course, the measured velocity field was not as smooth as the numerically obtained one. Basically, the flow was a large vortex driven by buoyancy forces, whereas the highest velocities were at the left cavity wall and at the phase boundary. The fluid inside this vortex was at rest. In both cases, the boundary layer thickness towards the solid boundaries was considerably thinner than towards the fluid at rest.
The temperature distribution of the extended simulation domain (Figure 15), including the PCM, the walls and the insulation, confirmed the above-mentioned parasitic heat fluxes. At the bottom of the capsule, the wall and the complete insulation were clamped between the hot copper and the cold aluminum plate. For this reason, the temperature inside the insulation and the wall was higher than that of the PCM at the same horizontal position and a parasitic heat flux flowed in the PCM. Thereby, the influence of the wall was higher, as the thermal conductivity was higher. Nevertheless, the kink in the phase boundary could not be explained by including only the wall and applying an adiabatic boundary condition. Although the insulation at the top stood out slightly, its general influence on the wall and the insulation was the same.
Transparent materials with a distinctly lower thermal conductivity than polycarbonate are hard to find. Thus, the only way of decreasing the parasitic heat flux through the wall is to make them thinner. The influence of the insulation, however, could be removed if the experiments were conducted in an environment with controlled temperature. This would also simplify the necessary boundary condition for a validation simulation.

5. Conclusions

Taylor expanding the density and the enthalpy around the melting temperature can significantly reduce the computational effort needed to solve the non-linear energy equation in solid–liquid phase change with volume expansion or shrinkage. The algorithm obtained by following this approach needs a minimized number of iterations and gives the same results as the slowly converging source based method. Moreover, the number of iterations increases only slightly with an increasing density ratio.
The new algorithm was validated against experiments and our numerical results show that parasitic heat fluxes can alter the shape of the phase front near the bottom wall significantly. It is therefore necessary to include certain parts of the experimental setup, e.g. the capsule walls in the simulation domain.
We anticipate that volume expansion upon melting or solidification will be included in more and more simulations regarding latent thermal heat storage, since density changes of 10% or more, which are typical for PCM, cannot simply be ignored in many applications, e.g. macro-capsules in which the volume expansion leads to stress in the capsule walls. Even more importantly the energy conservation is violated.
Interestingly, the influence of this violation and of the validity of the Boussinesq approximation for melting process is not known, although it is widespread. This is an issue we will address with this new algorithm in a forthcoming paper.

Author Contributions

Conceptualization, M.F. and A.K.-H.; Funding acquisition, A.K.-H. and D.B.; Investigation, M.F.; Methodology, M.F.; Software, M.F. and A.K.-H.; Supervision, D.B.; Visualization, M.F. Writing—original draft, M.F.; and Writing—review and editing, M.F., A.K.-H. and D.B.

Funding

The authors are grateful for the financial support of the German Research Foundation (DFG) under grant No. BR 1713/20-1 and for the financial support by the German Research Foundation (DFG) and the University of Bayreuth in the funding program Open Access Publishing.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

c p heat capacity
ffunction
henthalpy
g , g gravitational acceleration
kheat transfer coefficient
llength
mmass
n normalized gradient
ppressure
ttime
u velocity vector
xcoordinate
ycoordinate
A Darcy term
Aarea
DDarcy constant
Eidentity matrix
Llatent heat of fusion
Ttemperature
Vvolume
α phase fraction
β volumetric coefficient of thermal expansion
γ abbreviation
ϵ small numerical constant
λ thermal conductivity
η viscosity
ρ density
τ stress tensor
ω underrelaxation factor
ccold
gglobal
hhot
iindex
i n i initial
kindex
lliquid
mindex
oold
r e f reference
r e s residuum
ssolid
yy component
Lliquidus
Ssolidus
Ttranspose

Appendix A

Appendix A.1. Derivation of the Pressure Equation

A pressure equation is necessary for the sequential solution of the velocity–pressure coupling. Such an equation can be derived by combining the momentum and the continuity equation. We start by linearizing the momentum equation with the mass flux from the last time step ϕ and discretize the velocity and source terms, but delay the discretization of the pressure and the buoyancy term in the spirit of Rhie and Chow [28]. Furthermore, we write the equation in solution vector notation:
C u r = p ˜ g · x ρ .
The coefficients of the matrix C contain the spatial and the time discretization of the momentum equation. This matrix is split up into a matrix A, containing the diagonal elements of C and a matrix H with the non-diagonal elements:
A u + H u r = p ˜ g · x ρ .
Conveniently, H u r is written as H ( u ) :
A u = H ( u ) p ˜ g · x ρ .
Since A is a diagonal matrix, it is easily invertible and an equation for the velocity is obtained by rearranging the terms:
u = A 1 H ( u ) A 1 p ˜ A 1 g · x ρ .
Interpolating this velocity onto the cell faces and inserting it into the discretized continuity equation,
ρ t + · ( ρ u ) = ρ t + f S f · ( ρ u ) f = 0 ,
yields a semi-discretized equation for the pressure:
ρ t + f ( ρ ( A 1 H ( u ) A 1 p ˜ A 1 g · x ρ ) ) f = 0 .
To avoid a checkerboard pressure and velocity field, the pressure and density terms are calculated with a compact computational molecule:
f ( ρ A 1 p ˜ ) f · S f f ( ρ A 1 ) f ( p ˜ f ) · S f ,
f ( ρ A 1 g · x ρ ) f · S f f ( ρ A 1 ) f ( g · x ) f ( ρ ) f · S f ,
with
( θ ) f · S f = θ N θ P | d | S f ,
where θ represents either the pressure or the density. Hence, the semi-discretized pressure equation reads as follows:
f ( ρ A ) f 1 ( p ˜ ) f · S f = ρ t + f S f · ρ f ( A 1 H ( u ) ) f ( ρ A 1 ) f ( g · x ) f ( ρ ) f .
By solving this equation, the pressure field is adjusted in a way that the mass fluxes at the cell faces obey continuity. This is not equivalent to a divergence free velocity field at the cell centers.

Appendix A.2. PISO-Algorithm

The pressure equation derived above is fundamental for the PISO-Algorithm [29]. Hereafter, the index m corresponds to either the old time step or the previous outer iteration and the index l to the PISO-loop itself. The PISO-algorithm contains the following steps (at first iteration l = m ):
1. Momentum predictor:
C m u m , = r m p ˜ m ( g · x ρ ) m
2. Update the matrix coefficients:
( A 1 ) m = f ( ϕ m )
( H ) m = f ( ϕ m )
3. Solve the pressure equation:
Δ ( ( ρ A 1 ) f m p ˜ l + 1 ) = ρ t m + · ρ f m ( ( A 1 ) m H ( u l ) ) f ( ρ A 1 ) f ( g · x ) f ( ρ ) f m
H ( u l ) ) = r m ( H ) m u l
4. Calculate the conservative mass fluxes:
ϕ f l + 1 = ρ f m ( ( A 1 ) m H ( u l ) ) f · S f ( ( ρ A 1 ) f ( g · x ) f ( ρ ) f ) m · S f ( ρ A 1 ) f m p ˜ ( l + 1 ) .
5. Velocity corrector:
u l + 1 = ( A 1 ) m H ( u l ) ( A 1 ) m p ˜ ( l + 1 ) ( A 1 g · x ρ ) m .
6. Go back to Step 3, if the residuum or the maximum number of iterations has not yet been reached.
The velocity corrector does not involve the solution of a system of linear equations, because the left and right side are evaluated at different iteration steps (operator splitting). This means that the velocity is only corrected by the pressure term ( A 1 ) m p ˜ ( l + 1 ) . To take the influence of the velocity term ( A 1 ) m H ( u l ) into account, the PISO-loop has to be repeated twice [30]. The buoyancy term ( A 1 g · x ρ ) m is updated through outer iterations. Moreover, the coefficients of H and A 1 are not updated inside the correction loop, although they depend on the mass flux of the last time step ϕ . This is done, because it is believed that the pressure–velocity coupling is more important then the nonlinearity of the convection term [31]. However, the coefficients are of course updated within the outer iterations.

References

  1. Kuboth, S.; König-Haagen, A.; Brüggemann, D. Numerical analysis of shell-and-tube type latent thermal energy storage performance with different arrangements of circular fins. Energies 2017, 10, 274. [Google Scholar] [CrossRef]
  2. Kozak, Y.; Rozenfeld, T.; Ziskind, G. Close-contact melting in vertical annular enclosures with a non-isothermal base: Theoretical modeling and application to thermal storage. Int. J. Heat Mass Transf. 2014, 72, 114–127. [Google Scholar] [CrossRef]
  3. Brent, A.D.; Voller, V.R.; Reid, K.J. Enthalpy-Porosity Technique for Modeling Convection-Diffusion Phase Change: Application To the Melting of a Pure Metal. Numer. Heat Transf. 1988, 13, 297–318. [Google Scholar] [CrossRef]
  4. Voller, V.R. An overview of numerical methods for solving phase change problems. Adv. Numer. Heat Transf. 1996, 1, 341–380. [Google Scholar]
  5. Crank, J. Free and Moving Boundary Problems; Oxford Science Publications: New York, NY, USA, 1984. [Google Scholar]
  6. König-Haagen, A.; Franquet, E.; Pernot, E.; Brüggemann, D. A comprehensive benchmark of fixed-grid methods for the modeling of melting. Int. J. Therm. Sci. 2017, 118, 69–103. [Google Scholar] [CrossRef]
  7. Faden, M.; König-Haagen, A.; Höhlein, S.; Brüggemann, D. An implicit algorithm for melting and settling of phase change material inside macrocapsules. Int. J. Heat Mass Transf. 2018, 117, 757–767. [Google Scholar] [CrossRef]
  8. Rose, M.E. A Method for Calculating Solutions of Parabolic Equations with a Free Boundary. Math. Comput. 1960, 14, 249–256. [Google Scholar] [CrossRef]
  9. Solomon, A.D. Some Remarks on the Stefan Problem. Math. Comput. 1966, 20, 347–360. [Google Scholar] [CrossRef]
  10. Morgan, K. A numerical analysis of freezing and melting with convection. Comput. Methods Appl. Mech. Eng. 1981, 28, 275–284. [Google Scholar] [CrossRef]
  11. Gartling, D.K. Finite element analysis of convective heat transfer problems with change of phase. Comput. Methods Fluids 1980, 257–284. [Google Scholar]
  12. Voller, V.R.; Prakash, C. A fixed grid numerical modelling methodology for convection-diffusion mushy region phase-change problems. Int. J. Heat Mass Transf. 1987, 30, 1709–1719. [Google Scholar] [CrossRef]
  13. Swaminathan, C.R.; Voller, V.R. A general enthalpy method for modeling solidification processes. Metall. Trans. B 1992, 23, 651–664. [Google Scholar] [CrossRef]
  14. Swaminathan, C.R.; Voller, V.R. On the enthalpy method. Int. J. Numer. Methods Heat Fluid Flow 1993, 3, 233–244. [Google Scholar] [CrossRef]
  15. Danaila, I.; Moglan, R.; Hecht, F.; Le Masson, S. A Newton method with adaptive finite elements for solving phase-change problems with natural convection. J. Comput. Phys. 2014, 274, 826–840. [Google Scholar] [CrossRef]
  16. Assis, E.; Katsman, L.; Ziskind, G.; Letan, R. Numerical and experimental study of melting in a spherical shell. Int. J. Heat Mass Transf. 2007, 50, 1790–1804. [Google Scholar] [CrossRef]
  17. Assis, E.; Ziskind, G.; Letan, R. Numerical and Experimental Study of Solidification in a Spherical Shell. J. Heat Transf. 2009, 131, 24502–24506. [Google Scholar] [CrossRef]
  18. Galione, P.A.; Lehmkuhl, O.; Rigola, J.; Oliva, A. Fixed-grid numerical modeling of melting and solidification using variable thermo-physical properties - Application to the melting of n-Octadecane inside a spherical capsule. Int. J. Heat Mass Transf. 2015, 86, 721–743. [Google Scholar] [CrossRef]
  19. Hassab, M.A.; Sorour, M.M.; Khamis Mansour, M.; Zaytoun, M.M. Effect of volume expansion on the melting process’s thermal behavior. Appl. Therm. Eng. 2017, 115, 350–362. [Google Scholar] [CrossRef]
  20. Dallaire, J.; Gosselin, L. Numerical modeling of solid-liquid phase change in a closed 2D cavity with density change, elastic wall and natural convection. Int. J. Heat Mass Transf. 2017, 114, 903–914. [Google Scholar] [CrossRef]
  21. Faden, M.; Linhardt, C.; Höhlein, S.; König-Haagen, A.; Brüggemann, D. Velocity field and phase boundary measurements during melting of n-octadecane in a cubical test cell. Int. J. Heat Mass Transf. 2019, 135, 104–114. [Google Scholar] [CrossRef]
  22. Alexiades, V.; Drake, J.B. A weak formulation for phase-change problems with bulk movement due to unequal densities. In Free Boundary Problems Involving Solids; Longman: Harlow, UK, 1993; pp. 82–87. [Google Scholar]
  23. OpenFOAM Ltd. OpenFOAM 2.2.2, The OpenFOAM Foundation Ltd.: London, UK, 2013.
  24. Tarzia, D.A. Exact Solution for a Stefan Problem with Convective Boundary Condition and Density Jump; PAMM Wiley: Hoboken, NJ, USA, 2007; Volume 7, pp. 1040307–1040308. [Google Scholar]
  25. Zhang, P.; Ma, Z.W.; Wang, R.Z. An overview of phase change material slurries: MPCS and CHS. Renew. Sustain. Energy Rev. 2010, 14, 598–614. [Google Scholar] [CrossRef]
  26. Vélez, C.; Khayet, M.; Ortiz De Zárate, J.M. Temperature-dependent thermal properties of solid/liquid phase change even-numbered n-alkanes: N-Hexadecane, n-octadecane and n-eicosane. Appl. Energy 2015, 143, 383–394. [Google Scholar] [CrossRef]
  27. Klan, H.; Thess, A. F2 Wärmeübertragung durch freie Konvektion: Außenströmung. In VDI-Wärmeatlas; Springer Vieweg: Berlin/Heidelberg, Germany, 2013. [Google Scholar] [CrossRef]
  28. Rhie, C.M.; Chow, W.L. Numerical study of the turbulent flow past an airfoil with trailing edge separation. AIAA J. 1983, 21, 1525–1532. [Google Scholar] [CrossRef]
  29. Issa, R.I. Solution of the implicitly discretised fluid flow equations by operator-splitting. J. Comput. Phys. 1986, 62, 40–65. [Google Scholar] [CrossRef]
  30. Jasak, H. Error Analysis and Estimation for the Finite Volume Method with Applications to Fluid Flows. Ph.D. Thesis, Imperial College of Science, Technology and Medicine, London, UK, 1996. [Google Scholar]
  31. Damián, S.M. An Extended Mixture Model for the Simultaneous Treatment of Short and Long Scale Interfaces. Ph.D. Thesis, Universidad Nacional Del Litoral, Santa Fe, Argentina, 2013. [Google Scholar]
Figure 1. Flow chart of the numerical solution process inside a time step. In the following, iterations needed to solve the linearized energy equation are called linear iterations and iterations for the nonlinear energy equation are called nonlinear T-h iterations.
Figure 1. Flow chart of the numerical solution process inside a time step. In the following, iterations needed to solve the linearized energy equation are called linear iterations and iterations for the nonlinear energy equation are called nonlinear T-h iterations.
Energies 12 00868 g001
Figure 2. One-dimensional solidification with density change.
Figure 2. One-dimensional solidification with density change.
Energies 12 00868 g002
Figure 3. State of the simulation domain at t > 0 s . The left side is heated to T h , while the right side is kept at T c , which is the same as the initial temperature T i n i . The PCM is partially molten and the influence of convection is visible.
Figure 3. State of the simulation domain at t > 0 s . The left side is heated to T h , while the right side is kept at T c , which is the same as the initial temperature T i n i . The PCM is partially molten and the influence of convection is visible.
Energies 12 00868 g003
Figure 4. State of the extended simulation domain at t > 0 s . The copper and the aluminum plate are not simulated, instead a constant temperature is prescribed.
Figure 4. State of the extended simulation domain at t > 0 s . The copper and the aluminum plate are not simulated, instead a constant temperature is prescribed.
Energies 12 00868 g004
Figure 5. Relative difference in the global liquid fraction between the coarse/medium and the fine mesh over time.
Figure 5. Relative difference in the global liquid fraction between the coarse/medium and the fine mesh over time.
Energies 12 00868 g005
Figure 6. Temperature profile of the one dimensional test case after four time units. The kink corresponds to the position of the phase boundary.
Figure 6. Temperature profile of the one dimensional test case after four time units. The kink corresponds to the position of the phase boundary.
Energies 12 00868 g006
Figure 7. Number of nonlinear iterations for different density ratios.
Figure 7. Number of nonlinear iterations for different density ratios.
Energies 12 00868 g007
Figure 8. Global liquid fraction at the end of the simulation for different density ratios.
Figure 8. Global liquid fraction at the end of the simulation for different density ratios.
Energies 12 00868 g008
Figure 9. Velocity at x = 2.5. At the beginning, u is greater than 0.1. The maximum velocity is 0.51.
Figure 9. Velocity at x = 2.5. At the beginning, u is greater than 0.1. The maximum velocity is 0.51.
Energies 12 00868 g009
Figure 10. Number of nonlinear T-h iterations for the two different approaches and four different time steps [0.5,1.0,2.0,4.0]. The missing bar indicates a solver crash.
Figure 10. Number of nonlinear T-h iterations for the two different approaches and four different time steps [0.5,1.0,2.0,4.0]. The missing bar indicates a solver crash.
Energies 12 00868 g010
Figure 11. (Left) nonlinear T-h iterations over time; and (Right) linear iterations over time (max Co = 1.0/dt = 1.0 s ) .
Figure 11. (Left) nonlinear T-h iterations over time; and (Right) linear iterations over time (max Co = 1.0/dt = 1.0 s ) .
Energies 12 00868 g011
Figure 12. Convergence history for the two different approaches. The graph shown here refers to t = 20 min (max Co = 1.0/dt = 1.0 s ) .
Figure 12. Convergence history for the two different approaches. The graph shown here refers to t = 20 min (max Co = 1.0/dt = 1.0 s ) .
Energies 12 00868 g012
Figure 13. (Left) Numerical phase fronts with adiabatic top and bottom boundary; and (Right) experimental phase and numerical phase fronts with the extended simulation domain. In both figures, the lines refer to 1, 2, 3 and 4 h (left to right).
Figure 13. (Left) Numerical phase fronts with adiabatic top and bottom boundary; and (Right) experimental phase and numerical phase fronts with the extended simulation domain. In both figures, the lines refer to 1, 2, 3 and 4 h (left to right).
Energies 12 00868 g013
Figure 14. Experimentally (left); and numerically (right) obtained velocity field inside the PCM after 4 h.
Figure 14. Experimentally (left); and numerically (right) obtained velocity field inside the PCM after 4 h.
Energies 12 00868 g014
Figure 15. Temperature profile in the PCM, the pipe walls and the insulation after: 1 h (left); and 3 h (right). The black lines were inserted to guide to eye and mark the pipe walls. The melting temperature is white.
Figure 15. Temperature profile in the PCM, the pipe walls and the insulation after: 1 h (left); and 3 h (right). The black lines were inserted to guide to eye and mark the pipe walls. The melting temperature is white.
Energies 12 00868 g015
Table 1. Thermophysical properties of octadecane.
Table 1. Thermophysical properties of octadecane.
PropertyUnitValue
Melting temperatureK301.15 [25]
Melting Range ( T L - T S )K0.05
Latent heat of fusionkJ/kg243.68 [26]
Density (solid)kg/m3867.00
Density (liquid)kg/m3775.60 [26]
Volumetric thermal expansion coefficient1/K8.36 × 10 4 [26]
Specific heat capacity (solid)kJ/(kg K)1.90 [26]
Specific heat capacity (liquid)kJ/(kg K)2.24 [26]
Thermal conductivity (solid)W/(m K)0.32 [26]
Thermal conductivity (liquid)W/(m K)0.15 [26]
Dynamic viscosity ( T = 309.15 K )mPas3.75
Darcy constantkg/(m3s) 10 10
Table 2. Thermophysical properties of polycarbonate (PC) and foamed polystyrene (PS).
Table 2. Thermophysical properties of polycarbonate (PC) and foamed polystyrene (PS).
PropertyUnitValue
Density PCkg/m31200.0
Density PSkg/m340.0
Specific heat capacity PCkJ/(kg K)1170.0
Specific heat capacity PSkJ/(kg K)1500.0
Thermal conductivity PCW/(m K)0.21
Thermal conductivity PSW/(m K)0.04

Share and Cite

MDPI and ACS Style

Faden, M.; König-Haagen, A.; Brüggemann, D. An Optimum Enthalpy Approach for Melting and Solidification with Volume Change. Energies 2019, 12, 868. https://doi.org/10.3390/en12050868

AMA Style

Faden M, König-Haagen A, Brüggemann D. An Optimum Enthalpy Approach for Melting and Solidification with Volume Change. Energies. 2019; 12(5):868. https://doi.org/10.3390/en12050868

Chicago/Turabian Style

Faden, Moritz, Andreas König-Haagen, and Dieter Brüggemann. 2019. "An Optimum Enthalpy Approach for Melting and Solidification with Volume Change" Energies 12, no. 5: 868. https://doi.org/10.3390/en12050868

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop