Background:
I notice that there is quite a bit of similarity between the standard heat equation and the energy equation (from the navier stokes equations). The heat equation is given as
$$\frac{\partial\left(\rho h\right)}{\partial t} + \nabla\cdot\left(u\rho h \right) - \nabla\cdot\left(k\nabla T \right)=0$$
with $\rho,h,u,k,T,$ are the density, total specific enthalpy, fluid velocity, thermal conductivity, and temperature, respectively. Note that for many applications, it suffices to write the total specific enthalpy as $h=c_pT$, where $c_p$ is the constant pressure specific heat capacity.
On the other hand, the energy equation (from the navier stokes system) is given as
$$\frac{\partial\left(\rho E\right)}{\partial t}+\nabla\cdot\left(u\rho E\right)-\nabla\cdot(k\nabla T)+\nabla\cdot(\sigma u)=0$$
where $E,\sigma$ are the total energy and stress tensor, respectively. Here, the total energy E is the sum of internal and kinetic energy $E=e+K$, with $=e=c_vT$ and $K\frac{1}{2}|u|^2$.
Since both equations are derived from the conservation of energy, it is no surprise that both equations share the following terms:
- Rate of change in Enthalpy (time derivative term)
- Advection of internal heat (divergence term)
- Heat diffusion (laplacian term)
The energy equation has additional terms which are not found in the heat equation. These additional terms are specific to compressible fluid flow and account for
- Rate of change in & advection of kinetic energy (K)
- Stress contributions to energy ($\sigma$)
In many situations, the kinetic energy and stress contributions are very small when the fluid flow is incompressible, and thus can be neglected. This results in the energy equation and heat equation being almost identical except for one subtle difference:
A subtle difference
The heat equation is formulated with the constant pressure specific heat capacity $c_p$ while the energy equation uses the constant volume heat capacity $c_v$. Yet, I assume that they are derived from the same principle of conservation of energy. If so, I would expect the two expressions to use the same specific heat capacity.
This becomes more important when dealing with different types of fluid flows. I have seen models for incompressible flow where the energy equation is simply formulated in terms of the standard heat equation (as above) with the constant pressure heat capacity $c_p$. Since the temperature does not affect incompressible fluid flow, one can think of this as a "scalar transport" which depends on the resolved fluid velocity $u$.
Application: Solidification & Melting
In my particular case, I want to model phase change (solidification and melting). For incompressible flow, it suffices to rewrite the total specific enthalpy as the sum of internal and latent heat ($h=c_pT+h_L$) and substitute h in the equation. For compressible flows, the equation is written in terms of internal energy $c_vT$, not enthalpy. So, I'm not 100% sure that it would suffice to simply add the latent heat term as if it were a part of the total internal energy.
The only way to know for sure is if I understand why the incompressible energy equation is written in terms of $c_p$ while the compressible energy equation is written in terms of $c_v$.
My Question
If the energy equation for incompressible flow is formulated in terms of constant pressure heat capacity $c_p$, why isn't the energy equation compressible flow also formulated in terms of constant pressure heat capacity $c_p$. Why is the heat capacity different for incompressible and compressible flow? What accounts for the difference?
Furthermore, for my specific application, how do these differences affect how to add latent heat effects for solidification and melting of a compressible fluid? Can I simply add the latent heat to internal energy term $e$? Or do I need to completely reformulate the compressible energy equation in terms of enthalpy in order to add latent heat effects?