Governing equations on differential form: Difference between revisions

From Flowpedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 48: Line 48:
{{NumEqn|<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.
Line 86: Line 86:
{{NumEqn|<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
Line 120: Line 120:
{{NumEqn|<math>
{{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>}}
</math>|label=eq-energy-pde}}


which is the energy equation on partial differential form
which is the energy equation on partial differential form
Line 148: Line 148:
{{NumEqn|<math>
{{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>}}
</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.
where the first term of the right hand side is the local derivative and the second term is the convective derivative.
Line 204: Line 204:
{{NumEqn|<math>
{{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>}}
</math>|label=eq-mom-pde-non-cons}}


==== Conservation of Energy ====
==== 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 (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


{{NumEqn|<math>
{{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>}}
</math>|nonumber=1}}


Total enthalpy, <math>h_o</math>, is replaced with total energy, <math>e_o</math>
Total enthalpy, <math>h_o</math>, is replaced with total energy, <math>e_o</math>
Line 229: Line 229:


{{NumEqn|<math>
{{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})= \rho\mathbf{f}\cdot\mathbf{v} + \dot{q}\rho
\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>}}
</math>}}


Line 242: Line 242:
{{NumEqn|<math>
{{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>}}
</math>|label=eq-energy-pde-non-cons}}


==== Summary ====
==== Summary ====
Line 274: Line 274:
</math>}}
</math>}}


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


{{NumEqn|<math>
{{NumEqn|<math>
Line 280: Line 280:
</math>}}
</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}).
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>
{{NumEqn|<math>
Line 289: Line 289:


{{NumEqn|<math>
{{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 \rho\frac{De}{Dt} + p(\nabla\cdot\mathbf{v}) = \dot{q}\rho
\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>}}
</math>}}


Line 296: Line 296:
{{NumEqn|<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>}}
</math>|label=eq-energy-pde-non-cons-b}}


Conservation of mass gives
Conservation of mass gives
Line 304: Line 304:
</math>}}
</math>}}


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


{{NumEqn|<math>
{{NumEqn|<math>
Line 322: Line 322:
</math>}}
</math>}}


with <math>De/Dt</math> from Eqn. \ref{eq:governing:energy:non:b}
with <math>De/Dt</math> from {{EquationNote|label=eq-energy-pde-non-cons-b|nopar=1}}


{{NumEqn|<math>
{{NumEqn|<math>
Line 330: Line 330:
{{NumEqn|<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>}}
</math>|label=eq-energy-pde-non-cons-c}}


==== Total Enthalpy Formulation ====
==== Total Enthalpy Formulation ====
Line 338: Line 338:
</math>}}
</math>}}


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


{{NumEqn|<math>
{{NumEqn|<math>
Line 350: Line 350:
</math>}}
</math>}}


Inserting <math>Dh/Dt</math> 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


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



Revision as of 19:13, 31 March 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.32)

Also, if Ω is a fixed control volume

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

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

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

Ω is an arbitrary control volume and thus

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

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.36)
Ωp𝐧dS=ΩpdV(Eq. 2.37)

Also, if Ω is a fixed control volume

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

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

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

Ω is an arbitrary control volume and thus

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

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.41)

Fixed control volume

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

The energy equation can now be written as

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

Ω is an arbitrary control volume and thus

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

which is the energy equation on partial differential form

Summary

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

ρt+(ρ𝐯)=0(Eq. 2.45)
t(ρ𝐯)+(ρ𝐯𝐯)+p=ρ𝐟(Eq. 2.46)
t(ρeo)+(ρho𝐯)=ρ𝐟𝐯+q˙ρ(Eq. 2.47)

The Differential Equations on Non-Conservation Form

The Substantial Derivative

The substantial derivative operator is defined as

DDt=t+𝐯(Eq. 2.48)

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.49)

From before we have the continuity equation on differential form as

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

which can be rewritten as

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

and thus

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

Eq. 2.52 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.53)

Expanding the first and the second terms gives

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

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.55)

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

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

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.44), repeated here for convenience

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

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

ho=eo+pρ(Eq. 2.57)

which gives

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

Expanding the two first terms as

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

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

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.60)

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

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

Summary

Continuity:

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

Momentum:

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

Energy:

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

Alternative Forms of the Energy Equation

Internal Energy Formulation

Total internal energy is defined as

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

Inserted in Eq. 2.61, this gives

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

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

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

Now, expand the term (p𝐯) gives

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

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

Divide by ρ

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

Conservation of mass gives

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

Insert in Eq. 2.69

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

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

Enthalpy Formulation

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

with De/Dt from Eq. 2.69

DhDt=q˙pDDt(1ρ)+1ρDpDt+pDDt(1ρ)(Eq. 2.74)
DhDt=q˙+1ρDpDt(Eq. 2.75)

Total Enthalpy Formulation

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

From the momentum equation (Eq. 2.56)

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

which gives

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

Inserting Dh/Dt from Eq. 2.75 gives

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

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

The substantial derivative operator applied to pressure

DpDt=pt+𝐯p(Eq. 2.80)

and thus

DpDt𝐯p=pt(Eq. 2.81)

which gives

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

If we assume adiabatic flow without body forces

DhoDt=1ρpt(Eq. 2.83)

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

DhoDt=0(Eq. 2.84)

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