Governing equations on differential form: Difference between revisions

From Flowpedia
Jump to navigation Jump to search
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Compressible flow]]
<!--
[[Category:Governing equations]]
-->[[Category:Compressible flow]]<!--
-->[[Category:Governing equations]]<!--
--><noinclude><!--
-->[[Category:Compressible flow:Topic]]<!--
--></noinclude><!--


__TOC__
--><nomobile><!--
-->__TOC__<!--
--></nomobile><!--


\section{Governing Equations on Differential Form}
--><noinclude><!--
-->{{#vardefine:secno|2}}<!--
-->{{#vardefine:eqno|28}}<!--
--></noinclude><!--


\subsection{Conservation of Mass}
-->
=== The Differential Equations on Conservation Form ===


\noindent Apply Gauss's divergence theorem on the surface integral in Eqn. \ref{eq:governing:cont:int} gives\\
==== Conservation of Mass ====


\[\oiint_{\partial \Omega}\rho \mathbf{v}\cdot \mathbf{n} dS=\iiint_{\Omega}\nabla\cdot(\rho\mathbf{v})d\mathscr{V}\]\\
The continuity equation on integral form reads


\noindent Also, if $\Omega$ is a fixed control volume\\
{{InfoBox|<math>
\frac{d}{dt}\iiint_{\Omega} \rho dV+\iint_{\partial \Omega}\rho \mathbf{v}\cdot \mathbf{n} dS=0
</math>}}


\[\frac{d}{dt}\iiint_{\Omega} \rho d\mathscr{V}=\iiint_{\Omega} \frac{\partial \rho}{\partial t} d\mathscr{V}\]\\
Apply Gauss's divergence theorem on the surface integral gives


\noindent The continuity equation can now be written as a single volume integral.\\
{{NumEqn|<math>
\iint_{\partial \Omega}\rho \mathbf{v}\cdot \mathbf{n} dS=\iiint_{\Omega}\nabla\cdot(\rho\mathbf{v})dV
</math>}}


\[\iiint_{\Omega} \left[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})\right]d\mathscr{V}=0\]\\
Also, if <math>\Omega</math> is a fixed control volume


\noindent $\Omega$ is an arbitrary control volume and thus\\
{{NumEqn|<math>
\frac{d}{dt}\iiint_{\Omega} \rho dV=\iiint_{\Omega} \frac{\partial \rho}{\partial t} dV
</math>}}


\begin{equation}
The continuity equation can now be written as a single volume integral.
 
{{NumEqn|<math>
\iiint_{\Omega} \left[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})\right]dV=0
</math>}}
 
<math>\Omega</math> is an arbitrary control volume and thus
 
{{NumEqn|<math>
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0
\label{eq:governing:cont:pde}
</math>|label=eq-cont-pde}}
\end{equation}\\
 
which is the continuity equation on partial differential form.
 
==== Conservation of Momentum ====


\noindent which is the continuity equation on partial differential form.\\
The momentum equation on integral form reads


\subsection*{Conservation of Momentum}
{{InfoBox|<math>
\frac{d}{dt}\iiint_{\Omega} \rho \mathbf{v} dV+\iint_{\partial \Omega} \left[(\rho\mathbf{v}\cdot\mathbf{n})\mathbf{v}+p\mathbf{n}\right]dS=\iiint_{\Omega}\rho \mathbf{f}dV
</math>}}


As for the continuity equation, the surface integral terms are rewritten as volume integrals using Gauss's divergence theorem.\\
As for the continuity equation, the surface integral terms are rewritten as volume integrals using Gauss's divergence theorem.


\[\oiint_{\partial \Omega} (\rho\mathbf{v}\cdot\mathbf{n})\mathbf{v}dS=\iiint_{\Omega} \nabla\cdot(\rho \mathbf{v}\mathbf{v})d\mathscr{V}\]\\
{{NumEqn|<math>
\iint_{\partial \Omega} (\rho\mathbf{v}\cdot\mathbf{n})\mathbf{v}dS=\iiint_{\Omega} \nabla\cdot(\rho \mathbf{v}\mathbf{v})dV
</math>}}


\[\oiint_{\partial \Omega} p\mathbf{n}dS=\iiint_{\Omega} \nabla pd\mathscr{V}\]\\
{{NumEqn|<math>
\iint_{\partial \Omega} p\mathbf{n}dS=\iiint_{\Omega} \nabla pdV
</math>}}


Also, if $\Omega$ is a fixed control volume\\
Also, if <math>\Omega</math> is a fixed control volume


\[\frac{d}{dt}\iiint_{\Omega} \rho \mathbf{v} d\mathscr{V}=\iiint_{\Omega}  \frac{\partial}{\partial t}(\rho \mathbf{v}) d\mathscr{V}\]\\
{{NumEqn|<math>
\frac{d}{dt}\iiint_{\Omega} \rho \mathbf{v} dV=\iiint_{\Omega}  \frac{\partial}{\partial t}(\rho \mathbf{v}) dV
</math>}}


\noindent The momentum equation can now be written as one single volume integral\\
The momentum equation can now be written as one single volume integral


\[\iiint_{\Omega}\left[\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p - \rho \mathbf{f}\right]d\mathscr{V}=0\]\\
{{NumEqn|<math>
\iiint_{\Omega}\left[\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p - \rho \mathbf{f}\right]dV=0
</math>}}


\noindent $\Omega$ is an arbitrary control volume and thus\\
<math>\Omega</math> is an arbitrary control volume and thus


\begin{equation}
{{NumEqn|<math>
\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f}  
\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f}  
\label{eq:governing:mom:pde}
</math>|label=eq-mom-pde}}
\end{equation}\\
 
which is the momentum equation on partial differential form


\noindent which is the momentum equation on partial differential form
==== Conservation of Energy ====


\subsection{Conservation of Energy}
The energy equation on integral form reads


\noindent Gauss's divergence theorem applied to the surface integral term in the energy equation (Eqn. \ref{eq:governing:energy:int}) gives\\
{{InfoBox|<math>
\frac{d}{dt}\iiint_{\Omega}\rho e_o dV+\iint_{\partial \Omega}\rho h_o(\mathbf{v}\cdot\mathbf{n})dS=</math><br><br><math>\iiint_{\Omega}\rho\mathbf{f}\cdot\mathbf{v}dV+\iiint_{\Omega} \dot{q}\rho dV
</math>}}


\[\oiint_{\partial \Omega}\rho h_o(\mathbf{v}\cdot\mathbf{n})dS=\iiint_{\Omega}\nabla\cdot(\rho h_o\mathbf{v})d\mathscr{V}\]\\
Gauss's divergence theorem applied to the surface integral term in the energy equation gives


\noindent Fixed control volume \\
{{NumEqn|<math>
\iint_{\partial \Omega}\rho h_o(\mathbf{v}\cdot\mathbf{n})dS=\iiint_{\Omega}\nabla\cdot(\rho h_o\mathbf{v})dV
</math>}}


\[\frac{d}{dt}\iiint_{\Omega}\rho e_o d\mathscr{V}=\iiint_{\Omega}\frac{\partial}{\partial t}(\rho e_o) d\mathscr{V}\]\\
Fixed control volume


\noindent The energy equation can now be written as\\
{{NumEqn|<math>
\frac{d}{dt}\iiint_{\Omega}\rho e_o dV=\iiint_{\Omega}\frac{\partial}{\partial t}(\rho e_o) dV
</math>}}


\[\iiint_{\Omega}\left[\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) - \rho\mathbf{f}\cdot\mathbf{v} - \dot{q}\rho \right]d\mathscr{V}=0\]\\
The energy equation can now be written as


\noindent $\Omega$ is an arbitrary control volume and thus\\
{{NumEqn|<math>
\iiint_{\Omega}\left[\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) - \rho\mathbf{f}\cdot\mathbf{v} - \dot{q}\rho \right]dV=0
</math>}}


\begin{equation}
<math>\Omega</math> is an arbitrary control volume and thus
 
{{NumEqn|<math>
\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
\label{eq:governing:energy:pde}
</math>|label=eq-energy-pde}}
\end{equation}\\


\noindent which is the energy equation on partial differential form\\
which is the energy equation on partial differential form


\subsection{Summary}
==== Summary ====


\noindent The governing equations for compressible inviscid flow on partial differential form:\\
The governing equations for compressible inviscid flow on partial differential form:


\[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0\]
<div style="border: solid 1px;">
{{OpenInfoBox|<math>
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0
</math>|description=Continuity:}}


\[\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f}\]
{{OpenInfoBox|<math>
\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f}
</math>|description=Momentum:}}


\[\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho\]
{{OpenInfoBox|<math>
\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
</math>|description=Energy:}}
</div>


\section{The Differential Equations on Non-Conservation Form}
=== The Differential Equations on Non-Conservation Form ===


\subsection{The Substantial Derivative}
==== The Substantial Derivative ====


\noindent The substantial derivative operator is defined as\\
The substantial derivative operator is defined as


\begin{equation}
{{NumEqn|<math>
\frac{D}{Dt}=\frac{\partial}{\partial t}+\mathbf{v}\cdot\nabla
\frac{D}{Dt}=\frac{\partial}{\partial t}+\mathbf{v}\cdot\nabla
\label{eq:substantial:derivative}
</math>|label=eq-cont-pde-non-cons}}
\end{equation}\\


\noindent where the first term of the right hand side is the local derivative and the second term is the convective derivative.\\
where the first term of the right hand side is the local derivative and the second term is the convective derivative.


\subsection{Conservation of Mass}
==== Conservation of Mass ====


\noindent If we apply the substantial derivative operator to density we get\\
If we apply the substantial derivative operator to density we get


\[\frac{D\rho}{Dt}=\frac{\partial \rho}{\partial t}+\mathbf{v}\cdot\nabla\rho\]\\
{{NumEqn|<math>
\frac{D\rho}{Dt}=\frac{\partial \rho}{\partial t}+\mathbf{v}\cdot\nabla\rho
</math>}}


\noindent From before we have the continuity equation on differential form as\\
From before we have the continuity equation on differential form as


\[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0\]\\
{{NumEqn|<math>
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0
</math>}}


\noindent which can be rewritten as\\
which can be rewritten as


\[\frac{\partial \rho}{\partial t} + \rho(\nabla\cdot\mathbf{v}) + \mathbf{v}\cdot\nabla\rho=0\]\\
{{NumEqn|<math>
\frac{\partial \rho}{\partial t} + \rho(\nabla\cdot\mathbf{v}) + \mathbf{v}\cdot\nabla\rho=0
</math>}}


\noindent and thus\\
and thus


\begin{equation}
{{NumEqn|<math>
\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0
\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0
\label{eq:governing:cont:non}
</math>|label=eq-pde-noncons-cont}}
\end{equation}\\


\noindent Eqn. \ref{eq:governing:cont:non} says that the mass of a fluid element with a fixed set of fluid particles is constant as the element moves in space.\\
{{EquationNote|label=eq-pde-noncons-cont|nopar=1}} says that the mass of a fluid element with a fixed set of fluid particles is constant as the element moves in space.


\subsection{Conservation of Momentum}
==== Conservation of Momentum ====


\noindent We start from the momentum equation on differential form derived above\\
We start from the momentum equation on differential form derived above


\[\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f}\]\\
{{NumEqn|<math>
\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f}
</math>}}


\noindent Expanding the first and the second terms gives\\
Expanding the first and the second terms gives


\[\rho\frac{\partial \mathbf{v}}{\partial t} + \mathbf{v}\frac{\partial \rho}{\partial t} + \rho\mathbf{v}\cdot\nabla\mathbf{v} + \mathbf{v}(\nabla\cdot\rho\mathbf{v}) + \nabla p = \rho \mathbf{f}\]\\
{{NumEqn|<math>
\rho\frac{\partial \mathbf{v}}{\partial t} + \mathbf{v}\frac{\partial \rho}{\partial t} + \rho\mathbf{v}\cdot\nabla\mathbf{v} + \mathbf{v}(\nabla\cdot\rho\mathbf{v}) + \nabla p = \rho \mathbf{f}
</math>}}


\noindent Collecting terms, we can identify the substantial derivative operator applied to the velocity vector and the continuity equation.\\
Collecting terms, we can identify the substantial derivative operator applied to the velocity vector and the continuity equation.


\[\rho\underbrace{\left[\frac{\partial \mathbf{v}}{\partial t}+\mathbf{v}\cdot\nabla\mathbf{v}\right]}_{=\frac{D\mathbf{v}}{Dt}}+\mathbf{v}\underbrace{\left[\frac{\partial \rho}{\partial t}+\nabla\cdot\rho\mathbf{v}\right]}_{=0}+ \nabla p = \rho \mathbf{f}\]\\
{{NumEqn|<math>
\rho\underbrace{\left[\frac{\partial \mathbf{v}}{\partial t}+\mathbf{v}\cdot\nabla\mathbf{v}\right]}_{=\frac{D\mathbf{v}}{Dt}}+\mathbf{v}\underbrace{\left[\frac{\partial \rho}{\partial t}+\nabla\cdot\rho\mathbf{v}\right]}_{=0}+ \nabla p = \rho \mathbf{f}
</math>}}


\noindent which gives us the non-conservation form of the momentum equation\\
which gives us the non-conservation form of the momentum equation


\begin{equation}
{{NumEqn|<math>
\frac{D\mathbf{v}}{Dt}+\frac{1}{\rho}\nabla p = \mathbf{f}
\frac{D\mathbf{v}}{Dt}+\frac{1}{\rho}\nabla p = \mathbf{f}
\label{eq:governing:mom:non}
</math>|label=eq-mom-pde-non-cons}}
\end{equation}\\


\subsection{Conservation of Energy}
==== Conservation of Energy ====


\noindent The last equation on non-conservation differential form is the energy equation. We start by rewriting the energy equation on differential form (Eqn. \ref{eq:governing:energy:pde}), repeated here for convenience\\
The last equation on non-conservation differential form is the energy equation. We start by rewriting the energy equation on differential form {{EquationNote|label=eq-energy-pde}}, repeated here for convenience


\[\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho\]\\
{{NumEqn|<math>
\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho h_o\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
</math>|nonumber=1}}


\noindent Total enthalpy, $h_o$, is replaced with total energy, $e_o$\\
Total enthalpy, <math>h_o</math>, is replaced with total energy, <math>e_o</math>


\[h_o=e_o+\frac{p}{\rho}\]\\
{{NumEqn|<math>
h_o=e_o+\frac{p}{\rho}
</math>}}


\noindent which gives\\
which gives


\[\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho e_o\mathbf{v}) + \nabla\cdot(p\mathbf{v})= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho\]\\
{{NumEqn|<math>
\frac{\partial}{\partial t}(\rho e_o) + \nabla\cdot(\rho e_o\mathbf{v}) + \nabla\cdot(p\mathbf{v})= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
</math>}}


\noindent Expanding the two first terms as\\
Expanding the two first terms as


\[\rho\frac{\partial e_o}{\partial t} + e_o\frac{\partial \rho}{\partial t} + \rho\mathbf{v}\cdot\nabla e_o + e_o\nabla\cdot(\rho \mathbf{v}) + \nabla\cdot(p\mathbf{v})= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho\]\\
{{NumEqn|<math>
\rho\frac{\partial e_o}{\partial t} + e_o\frac{\partial \rho}{\partial t} + \rho\mathbf{v}\cdot\nabla e_o + e_o\nabla\cdot(\rho \mathbf{v}) + \nabla\cdot(p\mathbf{v})=</math><br><br><math>= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
</math>}}


\noindent Collecting terms, we can identify the substantial derivative operator applied on total energy, $De_o/Dt$ and the continuity equation\\
Collecting terms, we can identify the substantial derivative operator applied on total energy, <math>De_o/Dt</math> and the continuity equation


\[\rho\underbrace{\left[ \frac{\partial e_o}{\partial t} + \mathbf{v}\cdot\nabla e_o \right]}_{=\frac{De_o}{Dt}}  + e_o\underbrace{\left[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho \mathbf{v}) \right]}_{=0} + \nabla\cdot(p\mathbf{v})= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho\]\\
{{NumEqn|<math>
\rho\underbrace{\left[ \frac{\partial e_o}{\partial t} + \mathbf{v}\cdot\nabla e_o \right]}_{=\frac{De_o}{Dt}}  + e_o\underbrace{\left[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho \mathbf{v}) \right]}_{=0} + \nabla\cdot(p\mathbf{v})= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
</math>}}


\noindent and thus we end up with the energy equation on non-conservation differential form\\
and thus we end up with the energy equation on non-conservation differential form


\begin{equation}
{{NumEqn|<math>
\rho\frac{De_o}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
\rho\frac{De_o}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
\label{eq:governing:energy:non}
</math>|label=eq-energy-pde-non-cons}}
\end{equation}\\
 
==== Summary ====
 
<div style="border: solid 1px;">
{{OpenInfoBox|<math>
\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0
</math>|description=Continuity:}}
 
{{OpenInfoBox|<math>
\frac{D\mathbf{v}}{Dt}+\frac{1}{\rho}\nabla p = \mathbf{f}
</math>|description=Momentum:}}


%\section*{The Governing Equations on Differential Non-Conservation Form}
{{OpenInfoBox|<math>
%
\rho\frac{De_o}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
%\vspace*{1cm}
</math>|description=Energy:}}
%
</div>
%\noindent Continuity:
%
%\begin{equation}
%\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0
%\label{eq:governing:cont:non}
%\end{equation}\\
%
%\noindent Momentum:
%
%\begin{equation}
%\frac{D\mathbf{v}}{Dt}+\frac{1}{\rho}\nabla p = \mathbf{f}
%\label{eq:governing:mom:non}
%\end{equation}\\
%
%\noindent Energy:
%
%\begin{equation}
%\rho\frac{De_o}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
%\label{eq:governing:energy:non}
%\end{equation}\\


\section{Alternative Forms of the Energy Equation}
=== Alternative Forms of the Energy Equation ===


\subsection{Internal Energy Formulation}
==== Internal Energy Formulation ====


\noindent Total internal energy is defined as\\
Total internal energy is defined as


\[e_o=e+\frac{1}{2}\mathbf{v}\cdot\mathbf{v}\]\\
{{NumEqn|<math>
e_o=e+\frac{1}{2}\mathbf{v}\cdot\mathbf{v}
</math>}}


\noindent Inserted in Eqn. \ref{eq:governing:energy:non}, this gives
Inserted in {{EquationNote|label=eq-energy-pde-non-cons|nopar=1}}, this gives


\[\rho\frac{De}{Dt} + \rho\mathbf{v}\cdot\frac{D \mathbf{v}}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho\]\\
{{NumEqn|<math>
\rho\frac{De}{Dt} + \rho\mathbf{v}\cdot\frac{D \mathbf{v}}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
</math>}}


\noindent Now, let's replace the substantial derivative $D\mathbf{v}/Dt$ using the momentum equation on non-conservation form (Eqn. \ref{eq:governing:mom:non}).\\
Now, let's replace the substantial derivative <math>D\mathbf{v}/Dt</math> using the momentum equation on non-conservation form {{EquationNote|label=eq-mom-pde-non-cons}}.


\[\rho\frac{De}{Dt} -\mathbf{v}\cdot\nabla p + \cancel{\rho\mathbf{f}\cdot\mathbf{v}} + \nabla\cdot(p\mathbf{v}) = \cancel{\rho\mathbf{f}\cdot\mathbf{v}} + \dot{q}\rho\]\\
{{NumEqn|<math>
\rho\frac{De}{Dt} -\mathbf{v}\cdot\nabla p + \cancel{\rho\mathbf{f}\cdot\mathbf{v}} + \nabla\cdot(p\mathbf{v}) = \cancel{\rho\mathbf{f}\cdot\mathbf{v}} + \dot{q}\rho
</math>}}


\noindent Now, expand the term $\nabla\cdot(p\mathbf{v})$ gives\\
Now, expand the term <math>\nabla\cdot(p\mathbf{v})</math> gives


\[\rho\frac{De}{Dt} \cancel{-\mathbf{v}\cdot\nabla p} + \cancel{\mathbf{v}\cdot\nabla p} +  p(\nabla\cdot\mathbf{v}) = \dot{q}\rho\Rightarrow \rho\frac{De}{Dt} + p(\nabla\cdot\mathbf{v}) = \dot{q}\rho\]\\
{{NumEqn|<math>
\rho\frac{De}{Dt} \cancel{-\mathbf{v}\cdot\nabla p} + \cancel{\mathbf{v}\cdot\nabla p} +  p(\nabla\cdot\mathbf{v}) = \dot{q}\rho\Rightarrow</math><br><br><math>\Rightarrow\rho\frac{De}{Dt} + p(\nabla\cdot\mathbf{v}) = \dot{q}\rho
</math>}}


\noindent Divide by $\rho$\\
Divide by <math>\rho</math>


\begin{equation}
{{NumEqn|<math>
\frac{De}{Dt} + \frac{p}{\rho}(\nabla\cdot\mathbf{v}) = \dot{q}
\frac{De}{Dt} + \frac{p}{\rho}(\nabla\cdot\mathbf{v}) = \dot{q}
\label{eq:governing:energy:non:b}
</math>|label=eq-energy-pde-non-cons-b}}
\end{equation}\\


\noindent Conservation of mass gives\\
Conservation of mass gives


\[\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0\Rightarrow \nabla\cdot\mathbf{v} = -\frac{1}{\rho}\frac{D\rho}{Dt}\]
{{NumEqn|<math>
\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0\Rightarrow \nabla\cdot\mathbf{v} = -\frac{1}{\rho}\frac{D\rho}{Dt}
</math>}}


\noindent Insert in Eqn. \ref{eq:governing:energy:non:b}\\
Insert in {{EquationNote|label=eq-energy-pde-non-cons-b|nopar=1}}


\[\frac{De}{Dt} - \frac{p}{\rho^2}\frac{D\rho}{Dt} = \dot{q}\Rightarrow \frac{De}{Dt} + p\frac{D}{Dt} \left(\frac{1}{\rho}\right)= \dot{q}\]\\
{{NumEqn|<math>
\frac{De}{Dt} - \frac{p}{\rho^2}\frac{D\rho}{Dt} = \dot{q}\Rightarrow \frac{De}{Dt} + p\frac{D}{Dt} \left(\frac{1}{\rho}\right)= \dot{q}
</math>}}


\begin{equation}
{{NumEqn|<math>
\frac{De}{Dt} + p\frac{D\nu}{Dt} = \dot{q}
\frac{De}{Dt} + p\frac{D\nu}{Dt} = \dot{q}
\label{eq:governing:energy:non:b}
</math>}}
\end{equation}\\


\noindent Compare with the first law of thermodynamics: $de=\delta q-\delta w$\\
Compare with the first law of thermodynamics: <math>de=\delta q-\delta w</math>


%\newpage
==== Enthalpy Formulation ====


\subsection{Enthalpy Formulation}
{{NumEqn|<math>
h=e+\frac{p}{\rho}\Rightarrow \frac{Dh}{Dt}=\frac{De}{Dt}+\frac{1}{\rho}\frac{Dp}{Dt}+p\frac{D}{Dt}\left(\frac{1}{\rho}\right)
</math>}}


\vspace*{1cm}
with <math>De/Dt</math> from {{EquationNote|label=eq-energy-pde-non-cons-b|nopar=1}}


\[h=e+\frac{p}{\rho}\Rightarrow \frac{Dh}{Dt}=\frac{De}{Dt}+\frac{1}{\rho}\frac{Dp}{Dt}+p\frac{D}{Dt}\left(\frac{1}{\rho}\right)\]\\
{{NumEqn|<math>
\frac{Dh}{Dt}=\dot{q} - \cancel{p\frac{D}{Dt}\left(\frac{1}{\rho}\right)} +\frac{1}{\rho}\frac{Dp}{Dt}+\cancel{p\frac{D}{Dt}\left(\frac{1}{\rho}\right)}
</math>}}


\noindent with $De/Dt$ from Eqn. \ref{eq:governing:energy:non:b}\\
{{NumEqn|<math>
 
\[\frac{Dh}{Dt}=\dot{q} - \cancel{p\frac{D}{Dt}\left(\frac{1}{\rho}\right)} +\frac{1}{\rho}\frac{Dp}{Dt}+\cancel{p\frac{D}{Dt}\left(\frac{1}{\rho}\right)}\]\\
 
\begin{equation}
\frac{Dh}{Dt}=\dot{q} + \frac{1}{\rho}\frac{Dp}{Dt}
\frac{Dh}{Dt}=\dot{q} + \frac{1}{\rho}\frac{Dp}{Dt}
\label{eq:governing:energy:non:c}
</math>|label=eq-energy-pde-non-cons-c}}
\end{equation}\\
 
\subsection{Total Enthalpy Formulation}


\vspace*{1cm}
==== Total Enthalpy Formulation ====


\[h_o=h+\frac{1}{2}\mathbf{v}\mathbf{v}\Rightarrow\frac{Dh_o}{Dt}=\frac{Dh}{Dt}+\mathbf{v}\cdot\frac{D\mathbf{v}}{Dt}\]\\
{{NumEqn|<math>
h_o=h+\frac{1}{2}\mathbf{v}\mathbf{v}\Rightarrow\frac{Dh_o}{Dt}=\frac{Dh}{Dt}+\mathbf{v}\cdot\frac{D\mathbf{v}}{Dt}
</math>}}


\noindent From the momentum equation (Eqn. \ref{eq:governing:mom:non})\\
From the momentum equation {{EquationNote|label=eq-mom-pde-non-cons}}


\[\frac{D\mathbf{v}}{Dt}=\mathbf{f}-\frac{1}{\rho}\nabla p\]\\
{{NumEqn|<math>
\frac{D\mathbf{v}}{Dt}=\mathbf{f}-\frac{1}{\rho}\nabla p
</math>}}


\noindent which gives\\
which gives


\[\frac{Dh_o}{Dt}=\frac{Dh}{Dt}+\mathbf{v}\cdot\mathbf{f} -\frac{1}{\rho}\mathbf{v}\cdot\nabla p \]\\
{{NumEqn|<math>
\frac{Dh_o}{Dt}=\frac{Dh}{Dt}+\mathbf{v}\cdot\mathbf{f} -\frac{1}{\rho}\mathbf{v}\cdot\nabla p
</math>}}


\noindent Inserting $Dh/Dt$ from Eqn. \ref{eq:governing:energy:non:c} gives\\
Inserting <math>Dh/Dt</math> from {{EquationNote|label=eq-energy-pde-non-cons-c|nopar=1}} gives


\[\frac{Dh_o}{Dt}=\dot{q} + \frac{1}{\rho}\frac{Dp}{Dt}+\mathbf{v}\cdot\mathbf{f} -\frac{1}{\rho}\mathbf{v}\cdot\nabla p = \frac{1}{\rho}\left[\frac{Dp}{Dt}-\mathbf{v}\cdot\nabla p\right] + \dot{q} + \mathbf{v}\cdot\mathbf{f}\]\\
{{NumEqn|<math>
\frac{Dh_o}{Dt}=\dot{q} + \frac{1}{\rho}\frac{Dp}{Dt}+\mathbf{v}\cdot\mathbf{f} -\frac{1}{\rho}\mathbf{v}\cdot\nabla p =</math><br><br><math>=\frac{1}{\rho}\left[\frac{Dp}{Dt}-\mathbf{v}\cdot\nabla p\right] + \dot{q} + \mathbf{v}\cdot\mathbf{f}
</math>}}


\noindent The substantial derivative operator applied to pressure\\
The substantial derivative operator applied to pressure


\[\frac{Dp}{Dt}=\frac{\partial p}{\partial t}+\mathbf{v}\cdot\nabla p\]\\
{{NumEqn|<math>
\frac{Dp}{Dt}=\frac{\partial p}{\partial t}+\mathbf{v}\cdot\nabla p
</math>}}


\noindent and thus\\
and thus


\[\frac{Dp}{Dt}-\mathbf{v}\cdot\nabla p=\frac{\partial p}{\partial t}\]\\
{{NumEqn|<math>
\frac{Dp}{Dt}-\mathbf{v}\cdot\nabla p=\frac{\partial p}{\partial t}
</math>}}


\noindent which gives\\
which gives


\[\frac{Dh_o}{Dt}=\frac{1}{\rho}\frac{\partial p}{\partial t} + \dot{q} + \mathbf{v}\cdot\mathbf{f}\]\\
{{NumEqn|<math>
\frac{Dh_o}{Dt}=\frac{1}{\rho}\frac{\partial p}{\partial t} + \dot{q} + \mathbf{v}\cdot\mathbf{f}
</math>}}


\noindent If we assume adiabatic flow without body forces\\
If we assume adiabatic flow without body forces


\[\frac{Dh_o}{Dt}=\frac{1}{\rho}\frac{\partial p}{\partial t}\]\\
{{NumEqn|<math>
\frac{Dh_o}{Dt}=\frac{1}{\rho}\frac{\partial p}{\partial t}
</math>}}


\noindent If we further assume the flow to be steady state we get\\
If we further assume the flow to be steady state we get


\[\frac{Dh_o}{Dt}=0\]\\
{{NumEqn|<math>
\frac{Dh_o}{Dt}=0
</math>}}


\noindent This means that in a steady-state adiabatic flow without body forces, total enthalpy is constant along a streamline.\\
This means that in a steady-state adiabatic flow without body forces, total enthalpy is constant along a streamline.

Latest revision as of 18:23, 1 April 2026

The Differential Equations on Conservation Form

Conservation of Mass

The continuity equation on integral form reads

ddtΩρdV+Ωρ𝐯𝐧dS=0

Apply Gauss's divergence theorem on the surface integral gives

Ωρ𝐯𝐧dS=Ω(ρ𝐯)dV(Eq. 2.29)

Also, if Ω is a fixed control volume

ddtΩρdV=ΩρtdV(Eq. 2.30)

The continuity equation can now be written as a single volume integral.

Ω[ρt+(ρ𝐯)]dV=0(Eq. 2.31)

Ω is an arbitrary control volume and thus

ρt+(ρ𝐯)=0(Eq. 2.32)

which is the continuity equation on partial differential form.

Conservation of Momentum

The momentum equation on integral form reads

ddtΩρ𝐯dV+Ω[(ρ𝐯𝐧)𝐯+p𝐧]dS=Ωρ𝐟dV

As for the continuity equation, the surface integral terms are rewritten as volume integrals using Gauss's divergence theorem.

Ω(ρ𝐯𝐧)𝐯dS=Ω(ρ𝐯𝐯)dV(Eq. 2.33)
Ωp𝐧dS=ΩpdV(Eq. 2.34)

Also, if Ω is a fixed control volume

ddtΩρ𝐯dV=Ωt(ρ𝐯)dV(Eq. 2.35)

The momentum equation can now be written as one single volume integral

Ω[t(ρ𝐯)+(ρ𝐯𝐯)+pρ𝐟]dV=0(Eq. 2.36)

Ω is an arbitrary control volume and thus

t(ρ𝐯)+(ρ𝐯𝐯)+p=ρ𝐟(Eq. 2.37)

which is the momentum equation on partial differential form

Conservation of Energy

The energy equation on integral form reads

ddtΩρeodV+Ωρho(𝐯𝐧)dS=

Ωρ𝐟𝐯dV+Ωq˙ρdV

Gauss's divergence theorem applied to the surface integral term in the energy equation gives

Ωρho(𝐯𝐧)dS=Ω(ρho𝐯)dV(Eq. 2.38)

Fixed control volume

ddtΩρeodV=Ωt(ρeo)dV(Eq. 2.39)

The energy equation can now be written as

Ω[t(ρeo)+(ρho𝐯)ρ𝐟𝐯q˙ρ]dV=0(Eq. 2.40)

Ω is an arbitrary control volume and thus

t(ρeo)+(ρho𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.41)

which is the energy equation on partial differential form

Summary

The governing equations for compressible inviscid flow on partial differential form:

Continuity:ρt+(ρ𝐯)=0
Momentum:t(ρ𝐯)+(ρ𝐯𝐯)+p=ρ𝐟
Energy:t(ρeo)+(ρho𝐯)=ρ𝐟𝐯+q˙ρ

The Differential Equations on Non-Conservation Form

The Substantial Derivative

The substantial derivative operator is defined as

DDt=t+𝐯(Eq. 2.42)

where the first term of the right hand side is the local derivative and the second term is the convective derivative.

Conservation of Mass

If we apply the substantial derivative operator to density we get

DρDt=ρt+𝐯ρ(Eq. 2.43)

From before we have the continuity equation on differential form as

ρt+(ρ𝐯)=0(Eq. 2.44)

which can be rewritten as

ρt+ρ(𝐯)+𝐯ρ=0(Eq. 2.45)

and thus

DρDt+ρ(𝐯)=0(Eq. 2.46)

Eq. 2.46 says that the mass of a fluid element with a fixed set of fluid particles is constant as the element moves in space.

Conservation of Momentum

We start from the momentum equation on differential form derived above

t(ρ𝐯)+(ρ𝐯𝐯)+p=ρ𝐟(Eq. 2.47)

Expanding the first and the second terms gives

ρ𝐯t+𝐯ρt+ρ𝐯𝐯+𝐯(ρ𝐯)+p=ρ𝐟(Eq. 2.48)

Collecting terms, we can identify the substantial derivative operator applied to the velocity vector and the continuity equation.

ρ[𝐯t+𝐯𝐯]=D𝐯Dt+𝐯[ρt+ρ𝐯]=0+p=ρ𝐟(Eq. 2.49)

which gives us the non-conservation form of the momentum equation

D𝐯Dt+1ρp=𝐟(Eq. 2.50)

Conservation of Energy

The last equation on non-conservation differential form is the energy equation. We start by rewriting the energy equation on differential form (Eq. 2.41), repeated here for convenience

t(ρeo)+(ρho𝐯)=ρ𝐟𝐯+q˙ρ

Total enthalpy, ho, is replaced with total energy, eo

ho=eo+pρ(Eq. 2.51)

which gives

t(ρeo)+(ρeo𝐯)+(p𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.52)

Expanding the two first terms as

ρeot+eoρt+ρ𝐯eo+eo(ρ𝐯)+(p𝐯)=

=ρ𝐟𝐯+q˙ρ
(Eq. 2.53)

Collecting terms, we can identify the substantial derivative operator applied on total energy, Deo/Dt and the continuity equation

ρ[eot+𝐯eo]=DeoDt+eo[ρt+(ρ𝐯)]=0+(p𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.54)

and thus we end up with the energy equation on non-conservation differential form

ρDeoDt+(p𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.55)

Summary

Continuity:DρDt+ρ(𝐯)=0
Momentum:D𝐯Dt+1ρp=𝐟
Energy:ρDeoDt+(p𝐯)=ρ𝐟𝐯+q˙ρ

Alternative Forms of the Energy Equation

Internal Energy Formulation

Total internal energy is defined as

eo=e+12𝐯𝐯(Eq. 2.56)

Inserted in Eq. 2.55, this gives

ρDeDt+ρ𝐯D𝐯Dt+(p𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.57)

Now, let's replace the substantial derivative D𝐯/Dt using the momentum equation on non-conservation form (Eq. 2.50).

ρDeDt𝐯p+ρ𝐟𝐯+(p𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.58)

Now, expand the term (p𝐯) gives

ρDeDt𝐯p+𝐯p+p(𝐯)=q˙ρ

ρDeDt+p(𝐯)=q˙ρ
(Eq. 2.59)

Divide by ρ

DeDt+pρ(𝐯)=q˙(Eq. 2.60)

Conservation of mass gives

DρDt+ρ(𝐯)=0𝐯=1ρDρDt(Eq. 2.61)

Insert in Eq. 2.60

DeDtpρ2DρDt=q˙DeDt+pDDt(1ρ)=q˙(Eq. 2.62)
DeDt+pDνDt=q˙(Eq. 2.63)

Compare with the first law of thermodynamics: de=δqδw

Enthalpy Formulation

h=e+pρDhDt=DeDt+1ρDpDt+pDDt(1ρ)(Eq. 2.64)

with De/Dt from Eq. 2.60

DhDt=q˙pDDt(1ρ)+1ρDpDt+pDDt(1ρ)(Eq. 2.65)
DhDt=q˙+1ρDpDt(Eq. 2.66)

Total Enthalpy Formulation

ho=h+12𝐯𝐯DhoDt=DhDt+𝐯D𝐯Dt(Eq. 2.67)

From the momentum equation (Eq. 2.50)

D𝐯Dt=𝐟1ρp(Eq. 2.68)

which gives

DhoDt=DhDt+𝐯𝐟1ρ𝐯p(Eq. 2.69)

Inserting Dh/Dt from Eq. 2.66 gives

DhoDt=q˙+1ρDpDt+𝐯𝐟1ρ𝐯p=

=1ρ[DpDt𝐯p]+q˙+𝐯𝐟
(Eq. 2.70)

The substantial derivative operator applied to pressure

DpDt=pt+𝐯p(Eq. 2.71)

and thus

DpDt𝐯p=pt(Eq. 2.72)

which gives

DhoDt=1ρpt+q˙+𝐯𝐟(Eq. 2.73)

If we assume adiabatic flow without body forces

DhoDt=1ρpt(Eq. 2.74)

If we further assume the flow to be steady state we get

DhoDt=0(Eq. 2.75)

This means that in a steady-state adiabatic flow without body forces, total enthalpy is constant along a streamline.