Governing equations on differential form: Difference between revisions
From Flowpedia
| Line 238: | Line 238: | ||
==== Internal Energy Formulation ==== | ==== Internal Energy Formulation ==== | ||
Total internal energy is defined as | |||
<math display="block"> | |||
e_o=e+\frac{1}{2}\mathbf{v}\cdot\mathbf{v} | |||
</math> | |||
Inserted in Eqn. \ref{eq:governing:energy:non}, this gives | |||
<math display="block"> | |||
\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 (Eqn. \ref{eq:governing:mom:non}). | |||
<math display="block"> | |||
\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 | |||
<math display="block"> | |||
\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 | |||
</math> | |||
Divide by <math>\rho</math> | |||
<math display="block"> | |||
\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> | |||
Conservation of mass gives | |||
<math display="block"> | |||
\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 Eqn. \ref{eq:governing:energy:non:b} | |||
<math display="block"> | |||
\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> | |||
<math display="block"> | |||
\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 ==== | ==== Enthalpy Formulation ==== | ||
