Governing equations on differential form: Difference between revisions
From Flowpedia
No edit summary |
No edit summary |
||
| (24 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><!-- | |||
--><noinclude><!-- | |||
-->{{#vardefine:secno|2}}<!-- | |||
-->{{#vardefine:eqno|28}}<!-- | |||
--></noinclude><!-- | |||
--> | |||
=== The Differential Equations on Conservation Form === | |||
<math | ==== Conservation of Mass ==== | ||
The continuity equation on integral form reads | |||
{{InfoBox|<math> | |||
\frac{d}{dt}\iiint_{\Omega} \rho dV+\iint_{\partial \Omega}\rho \mathbf{v}\cdot \mathbf{n} dS=0 | |||
</math>}} | |||
Apply Gauss's divergence theorem on the surface integral gives | |||
{{NumEqn|<math> | |||
\iint_{\partial \Omega}\rho \mathbf{v}\cdot \mathbf{n} dS=\iiint_{\Omega}\nabla\cdot(\rho\mathbf{v})dV | \iint_{\partial \Omega}\rho \mathbf{v}\cdot \mathbf{n} dS=\iiint_{\Omega}\nabla\cdot(\rho\mathbf{v})dV | ||
</math> | </math>}} | ||
Also, if <math>\Omega</math> is a fixed control volume | Also, if <math>\Omega</math> is a fixed control volume | ||
<math | {{NumEqn|<math> | ||
\frac{d}{dt}\iiint_{\Omega} \rho dV=\iiint_{\Omega} \frac{\partial \rho}{\partial t} dV | \frac{d}{dt}\iiint_{\Omega} \rho dV=\iiint_{\Omega} \frac{\partial \rho}{\partial t} dV | ||
</math> | </math>}} | ||
The continuity equation can now be written as a single volume integral. | The continuity equation can now be written as a single volume integral. | ||
<math | {{NumEqn|<math> | ||
\iiint_{\Omega} \left[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})\right]dV=0 | \iiint_{\Omega} \left[\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})\right]dV=0 | ||
</math> | </math>}} | ||
<math>\Omega</math> is an arbitrary control volume and thus | <math>\Omega</math> is an arbitrary control volume and thus | ||
<math | {{NumEqn|<math> | ||
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0 | \frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0 | ||
</math> | </math>|label=eq-cont-pde}} | ||
which is the continuity equation on partial differential form. | which is the continuity equation on partial differential form. | ||
=== Conservation of Momentum === | ==== Conservation of Momentum ==== | ||
The momentum equation on integral form reads | |||
{{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. | ||
<math | {{NumEqn|<math> | ||
\iint_{\partial \Omega} (\rho\mathbf{v}\cdot\mathbf{n})\mathbf{v}dS=\iiint_{\Omega} \nabla\cdot(\rho \mathbf{v}\mathbf{v})dV | \iint_{\partial \Omega} (\rho\mathbf{v}\cdot\mathbf{n})\mathbf{v}dS=\iiint_{\Omega} \nabla\cdot(\rho \mathbf{v}\mathbf{v})dV | ||
</math> | </math>}} | ||
<math | {{NumEqn|<math> | ||
\iint_{\partial \Omega} p\mathbf{n}dS=\iiint_{\Omega} \nabla pdV | \iint_{\partial \Omega} p\mathbf{n}dS=\iiint_{\Omega} \nabla pdV | ||
</math> | </math>}} | ||
Also, if <math>\Omega</math> is a fixed control volume | Also, if <math>\Omega</math> is a fixed control volume | ||
<math | {{NumEqn|<math> | ||
\frac{d}{dt}\iiint_{\Omega} \rho \mathbf{v} dV=\iiint_{\Omega} \frac{\partial}{\partial t}(\rho \mathbf{v}) dV | \frac{d}{dt}\iiint_{\Omega} \rho \mathbf{v} dV=\iiint_{\Omega} \frac{\partial}{\partial t}(\rho \mathbf{v}) dV | ||
</math> | </math>}} | ||
The momentum equation can now be written as one single volume integral | The momentum equation can now be written as one single volume integral | ||
<math | {{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 | \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> | </math>}} | ||
<math>\Omega</math> is an arbitrary control volume and thus | <math>\Omega</math> is an arbitrary control volume and thus | ||
<math | {{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} | ||
</math> | </math>|label=eq-mom-pde}} | ||
which is the momentum equation on partial differential form | which is the momentum equation on partial differential form | ||
=== Conservation of Energy === | ==== Conservation of Energy ==== | ||
The energy equation on integral form reads | |||
\ | {{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>}} | |||
Gauss's divergence theorem applied to the surface integral term in the energy equation gives | |||
{{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>}} | |||
Fixed control volume | |||
\ | {{NumEqn|<math> | ||
\frac{d}{dt}\iiint_{\Omega}\rho e_o dV=\iiint_{\Omega}\frac{\partial}{\partial t}(\rho e_o) dV | |||
</math>}} | |||
The energy equation can now be written as | |||
\ | {{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>}} | |||
<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 | ||
</math>|label=eq-energy-pde}} | |||
which is the energy equation on partial differential form | |||
==== Summary ==== | |||
The governing equations for compressible inviscid flow on partial differential form: | |||
<div style="border: solid 1px;"> | |||
{{OpenInfoBox|<math> | |||
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0 | |||
</math>|description=Continuity:}} | |||
{{OpenInfoBox|<math> | |||
\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f} | |||
</math>|description=Momentum:}} | |||
{{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> | |||
=== The Differential Equations on Non-Conservation Form === | |||
==== The Substantial Derivative ==== | |||
The substantial derivative operator is defined as | |||
{{NumEqn|<math> | |||
\frac{D}{Dt}=\frac{\partial}{\partial t}+\mathbf{v}\cdot\nabla | \frac{D}{Dt}=\frac{\partial}{\partial t}+\mathbf{v}\cdot\nabla | ||
</math>|label=eq-cont-pde-non-cons}} | |||
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 | |||
{{NumEqn|<math> | |||
\frac{D\rho}{Dt}=\frac{\partial \rho}{\partial t}+\mathbf{v}\cdot\nabla\rho | |||
</math>}} | |||
From before we have the continuity equation on differential form as | |||
{{NumEqn|<math> | |||
\frac{\partial \rho}{\partial t} + \nabla\cdot(\rho\mathbf{v})=0 | |||
</math>}} | |||
which can be rewritten as | |||
{{NumEqn|<math> | |||
\frac{\partial \rho}{\partial t} + \rho(\nabla\cdot\mathbf{v}) + \mathbf{v}\cdot\nabla\rho=0 | |||
</math>}} | |||
and thus | |||
{{NumEqn|<math> | |||
\frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0 | \frac{D\rho}{Dt}+\rho(\nabla\cdot\mathbf{v})=0 | ||
</math>|label=eq-pde-noncons-cont}} | |||
{{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. | |||
==== Conservation of Momentum ==== | |||
We start from the momentum equation on differential form derived above | |||
{{NumEqn|<math> | |||
\frac{\partial}{\partial t}(\rho \mathbf{v}) + \nabla\cdot(\rho \mathbf{v}\mathbf{v}) + \nabla p = \rho \mathbf{f} | |||
</math>}} | |||
Expanding the first and the second terms gives | |||
{{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>}} | |||
Collecting terms, we can identify the substantial derivative operator applied to the velocity vector and the continuity equation. | |||
{{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>}} | |||
which gives us the non-conservation form of the momentum 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} | ||
</math>|label=eq-mom-pde-non-cons}} | |||
==== 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 {{EquationNote|label=eq-energy-pde}}, repeated here for convenience | |||
{{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}} | |||
Total enthalpy, <math>h_o</math>, is replaced with total energy, <math>e_o</math> | |||
{{NumEqn|<math> | |||
h_o=e_o+\frac{p}{\rho} | |||
</math>}} | |||
which gives | |||
{{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>}} | |||
Expanding the two first terms as | |||
{{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>}} | |||
Collecting terms, we can identify the substantial derivative operator applied on total energy, <math>De_o/Dt</math> and the continuity equation | |||
{{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>}} | |||
and thus we end up with the energy equation on non-conservation differential form | |||
{{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 | ||
</math>|label=eq-energy-pde-non-cons}} | |||
==== 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:}} | |||
\ | {{OpenInfoBox|<math> | ||
\rho\frac{De_o}{Dt} + \nabla\cdot(p\mathbf{v}) = \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho | |||
</math>|description=Energy:}} | |||
</div> | |||
=== Alternative Forms of the Energy Equation === | |||
==== Internal Energy Formulation ==== | |||
Total internal energy is defined as | |||
{{NumEqn|<math> | |||
e_o=e+\frac{1}{2}\mathbf{v}\cdot\mathbf{v} | |||
</math>}} | |||
Inserted in {{EquationNote|label=eq-energy-pde-non-cons|nopar=1}}, this gives | |||
{{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>}} | |||
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}}. | |||
{{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>}} | |||
\ | Now, expand the term <math>\nabla\cdot(p\mathbf{v})</math> gives | ||
\ | {{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>}} | |||
Divide by <math>\rho</math> | |||
{{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} | ||
</math>|label=eq-energy-pde-non-cons-b}} | |||
Conservation of mass gives | |||
{{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>}} | |||
Insert in {{EquationNote|label=eq-energy-pde-non-cons-b|nopar=1}} | |||
{{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>}} | |||
{{NumEqn|<math> | |||
\frac{De}{Dt} + p\frac{D\nu}{Dt} = \dot{q} | \frac{De}{Dt} + p\frac{D\nu}{Dt} = \dot{q} | ||
</math>}} | |||
Compare with the first law of thermodynamics: <math>de=\delta q-\delta w</math> | |||
==== 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>}} | |||
with <math>De/Dt</math> from {{EquationNote|label=eq-energy-pde-non-cons-b|nopar=1}} | |||
{{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>}} | |||
{{NumEqn|<math> | |||
\frac{Dh}{Dt}=\dot{q} + \frac{1}{\rho}\frac{Dp}{Dt} | \frac{Dh}{Dt}=\dot{q} + \frac{1}{\rho}\frac{Dp}{Dt} | ||
</math>|label=eq-energy-pde-non-cons-c}} | |||
==== Total Enthalpy Formulation ==== | |||
{{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>}} | |||
From the momentum equation {{EquationNote|label=eq-mom-pde-non-cons}} | |||
{{NumEqn|<math> | |||
\frac{D\mathbf{v}}{Dt}=\mathbf{f}-\frac{1}{\rho}\nabla p | |||
</math>}} | |||
which gives | |||
{{NumEqn|<math> | |||
\frac{Dh_o}{Dt}=\frac{Dh}{Dt}+\mathbf{v}\cdot\mathbf{f} -\frac{1}{\rho}\mathbf{v}\cdot\nabla p | |||
</math>}} | |||
Inserting <math>Dh/Dt</math> from {{EquationNote|label=eq-energy-pde-non-cons-c|nopar=1}} gives | |||
{{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>}} | |||
The substantial derivative operator applied to pressure | |||
{{NumEqn|<math> | |||
\frac{Dp}{Dt}=\frac{\partial p}{\partial t}+\mathbf{v}\cdot\nabla p | |||
</math>}} | |||
and thus | |||
{{NumEqn|<math> | |||
\frac{Dp}{Dt}-\mathbf{v}\cdot\nabla p=\frac{\partial p}{\partial t} | |||
</math>}} | |||
which gives | |||
{{NumEqn|<math> | |||
\frac{Dh_o}{Dt}=\frac{1}{\rho}\frac{\partial p}{\partial t} + \dot{q} + \mathbf{v}\cdot\mathbf{f} | |||
</math>}} | |||
If we assume adiabatic flow without body forces | |||
{{NumEqn|<math> | |||
\frac{Dh_o}{Dt}=\frac{1}{\rho}\frac{\partial p}{\partial t} | |||
</math>}} | |||
If we further assume the flow to be steady state we get | |||
{{NumEqn|<math> | |||
\frac{Dh_o}{Dt}=0 | |||
</math>}} | |||
This means that in a steady-state adiabatic flow without body forces, total enthalpy is constant along a streamline. | |||
