Governing equations

From Flowpedia
Revision as of 10:44, 30 March 2026 by Nian (talk | contribs)

Governing equations on integral form

The governing equations stems from mass conservation, conservation of momentum and conservation of energy

The Continuity Equation

"Mass can be neither created nor destroyed, which implies that mass is conserved"

The net massflow into the control volume Ω in Fig. \ref{fig:generic:cv} is obtained by integrating mass flux over the control volume surface ∂Ω

−∬∂Ωρ𝐯⋅𝐧dS(Eq. 1)

Now, let's consider a small infinitesimal volume dV inside Ω. The mass of dV is ρdV. Thus, the mass enclosed within Ω can be calculated as

∭ΩρdV(Eq. 2)

The rate of change of mass within Ω is obtained as

ddt∭ΩρdV(Eq. 3)

Mass is conserved, which means that the rate of change of mass within Ω must equal the net flux over the control volume surface.

ddt∭ΩρdV=−∬∂Ωρ𝐯⋅𝐧dS(Eq. 4)

or

ddt∭ΩρdV+∬∂Ωρ𝐯⋅𝐧dS=0(Eq. 5)

which is the integral form of the continuity equation.

The Momentum Equation

"The time rate of change of momentum of a body equals the net force exerted on it"
ddt(m𝐯)=𝐅(Eq. 6)

What type of forces do we have?


  • Body forces acting on the fluid inside Ω
    • gravitation
    • electromagnetic forces
    • Coriolis forces
  • Surface forces: pressure forces and shear forces

Body forces inside Ω:

∭Ωρ𝐟dV(Eq. 7)

Surface force on ∂Ω:

−∬∂Ωp𝐧dS(Eq. 8)

Since we are considering inviscid flow, there are no shear forces and thus we have the net force as

𝐅=∭Ωρ𝐟dV−∬∂Ωp𝐧dS(Eq. 9)

The fluid flowing through Ω will carry momentum and the net flow of momentum out from Ω is calculated as

∬∂Ω(ρ𝐯⋅𝐧dS)𝐯=∬∂Ω(ρ𝐯⋅𝐧)𝐯dS(Eq. 10)

Integrated momentum inside Ω

∭Ωρ𝐯dV(Eq. 11)

Rate of change of momentum due to unsteady effects inside Ω

ddt∭Ωρ𝐯dV(Eq. 12)

Combining the rate of change of momentum, the net momentum flux and the net forces we get

ddt∭Ωρ𝐯dV+∬∂Ω(ρ𝐯⋅𝐧)𝐯dS=∭Ωρ𝐟dV−∬∂Ωp𝐧dS(Eq. 13)

combining the surface integrals, we get

ddt∭Ωρ𝐯dV+∬∂Ω[(ρ𝐯⋅𝐧)𝐯+p𝐧]dS=∭Ωρ𝐟dV(Eq. 14)

which is the momentum equation on integral form.

The Energy Equation

"Energy can be neither created nor destroyed; it can only change in form"

E1+E2=E3

E1 Rate of heat added to the fluid in Ω from the surroundings
heat transfer
radiation
E2 Rate of work done on the fluid in Ω
E3 Rate of change of energy of the fluid as it flows through Ω
E1=∭Ωq˙ρdV(Eq. 15)

where q˙ is the rate of heat added per unit mass

The rate of work done on the fluid in Ω due to pressure forces is obtained from the pressure force term in the momentum equation.

E2pressure=−∬∂Ω(p𝐧dS)⋅𝐯=−∬∂Ωp𝐯⋅𝐧dS(Eq. 16)

The rate of work done on the fluid in $\Omega$ due to body forces is

E2body forces=∭Ω(ρ𝐟dV)⋅𝐯=∭Ωρ𝐟⋅𝐯dV(Eq. 17)
E2=E2pressure+E2body forces=−∬∂Ωp𝐯⋅𝐧dS+∭Ωρ𝐟⋅𝐯dV(Eq. 18)

The energy of the fluid per unit mass is the sum of internal energy e (molecular energy) and the kinetic energy V2/2 and the net energy flux over the control volume surface is calculated by the following integral

∬∂Ω(ρ𝐯⋅𝐧dS)(e+V22)(Eq. 19)

Analogous to mass and momentum, the total amount of energy of the fluid in Ω is calculated as

∭Ωρ(e+V22)dV(Eq. 20)

The time rate of change of the energy of the fluid in Ω is obtained as

ddt∭Ωρ(e+V22)dV(Eq. 21)

Now, E3 is obtained as the sum of the time rate of change of energy of the fluid in Ω and the net flux of energy carried by fluid passing the control volume surface.

E3=ddt∭Ωρ(e+V22)dV+∬∂Ω(ρ𝐯⋅𝐧dS)(e+V22)(Eq. 22)

With all elements of the energy equation defined, we are now ready to finally compile the full equation

ddt∭Ωρ(e+V22)dV+∬∂Ω[ρ(e+V22)(𝐯⋅𝐧)+p𝐯⋅𝐧]dS=

∭Ωρ𝐟⋅𝐯dV+∭Ωq˙ρdV
(Eq. 23)

The surface integral in the energy equation may be rewritten as

∬∂Ω[ρ(e+V22)(𝐯⋅𝐧)+p𝐯⋅𝐧]dS=

∬∂Ωρ[e+pρ+V22](𝐯⋅𝐧)dS
(Eq. 24)

and with the definition of enthalpy h=e+p/ρ, we get

∬∂Ωρ[h+V22](𝐯⋅𝐧)dS(Eq. 25)

Furthermore, introducing total internal energy eo and total enthalpy ho defined as

eo=e+12V2(Eq. 26)

and

ho=h+12V2(Eq. 27)

the energy equation is written as

ddt∭ΩρeodV+∬∂Ωρho(𝐯⋅𝐧)dS=

∭Ωρ𝐟⋅𝐯dV+∭Ωq˙ρdV
(Eq. 28)

Summary

The integral form of the governing equations for inviscid compressible flow has been derived

Continuity:ddt∭ΩρdV+∬∂Ωρ𝐯⋅𝐧dS=0
Momentum:ddt∭Ωρ𝐯dV+∬∂Ω[(ρ𝐯⋅𝐧)𝐯+p𝐧]dS=∭Ωρ𝐟dV
Energy:ddt∭ΩρeodV+∬∂Ωρho(𝐯⋅𝐧)dS=

∭Ωρ𝐟⋅𝐯dV+∭Ωq˙ρdV

Governing equations on differential form

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

Also, if Ω is a fixed control volume

ddt∭ΩρdV=∭Ω∂ρ∂tdV(Eq. 30)

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

∭Ω[∂ρ∂t+∇⋅(ρ𝐯)]dV=0(Eq. 31)

Ω is an arbitrary control volume and thus

∂ρ∂t+∇⋅(ρ𝐯)=0(Eq. 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. 33)
∬∂Ωp𝐧dS=∭Ω∇pdV(Eq. 34)

Also, if Ω is a fixed control volume

ddt∭Ωρ𝐯dV=∭Ω∂∂t(ρ𝐯)dV(Eq. 35)

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

∭Ω[∂∂t(ρ𝐯)+∇⋅(ρ𝐯𝐯)+∇p−ρ𝐟]dV=0(Eq. 36)

Ω is an arbitrary control volume and thus

∂∂t(ρ𝐯)+∇⋅(ρ𝐯𝐯)+∇p=ρ𝐟(Eq. 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. 38)

Fixed control volume

ddt∭ΩρeodV=∭Ω∂∂t(ρeo)dV(Eq. 39)

The energy equation can now be written as

∭Ω[∂∂t(ρeo)+∇⋅(ρho𝐯)−ρ𝐟⋅𝐯−q˙ρ]dV=0(Eq. 40)

Ω is an arbitrary control volume and thus

∂∂t(ρeo)+∇⋅(ρho𝐯)=ρ𝐟⋅𝐯+q˙ρ(Eq. 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. 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. 43)

From before we have the continuity equation on differential form as

∂ρ∂t+∇⋅(ρ𝐯)=0(Eq. 44)

which can be rewritten as

∂ρ∂t+ρ(∇⋅𝐯)+𝐯⋅∇ρ=0(Eq. 45)

and thus

DρDt+ρ(∇⋅𝐯)=0(Eq. 46)

Eq. 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. 47)

Expanding the first and the second terms gives

ρ∂𝐯∂t+𝐯∂ρ∂t+ρ𝐯⋅∇𝐯+𝐯(∇⋅ρ𝐯)+∇p=ρ𝐟(Eq. 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. 49)

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

D𝐯Dt+1ρ∇p=𝐟(Eq. 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. 41), repeated here for convenience

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

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

ho=eo+pρ(Eq. 51)

which gives

∂∂t(ρeo)+∇⋅(ρeo𝐯)+∇⋅(p𝐯)=ρ𝐟⋅𝐯+q˙ρ(Eq. 52)

Expanding the two first terms as

ρ∂eo∂t+eo∂ρ∂t+ρ𝐯⋅∇eo+eo∇⋅(ρ𝐯)+∇⋅(p𝐯)=

=ρ𝐟⋅𝐯+q˙ρ
(Eq. 53)

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

ρ[∂eo∂t+𝐯⋅∇eo]⏟=DeoDt+eo[∂ρ∂t+∇⋅(ρ𝐯)]⏟=0+∇⋅(p𝐯)=ρ𝐟⋅𝐯+q˙ρ(Eq. 54)

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

ρDeoDt+∇⋅(p𝐯)=ρ𝐟⋅𝐯+q˙ρ(Eq. 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. 56)

Inserted in Eq. 55, this gives

ρDeDt+ρ𝐯⋅D𝐯Dt+∇⋅(p𝐯)=ρ𝐟⋅𝐯+q˙ρ(Eq. 57)

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

ρDeDt−𝐯⋅∇p+ρ𝐟⋅𝐯+∇⋅(p𝐯)=ρ𝐟⋅𝐯+q˙ρ(Eq. 58)

Now, expand the term ∇⋅(p𝐯) gives

ρDeDt−𝐯⋅∇p+𝐯⋅∇p+p(∇⋅𝐯)=q˙ρ⇒

⇒ρDeDt+p(∇⋅𝐯)=q˙ρ
(Eq. 59)

Divide by ρ

DeDt+pρ(∇⋅𝐯)=q˙(Eq. 60)

Conservation of mass gives

DρDt+ρ(∇⋅𝐯)=0⇒∇⋅𝐯=−1ρDρDt(Eq. 61)

Insert in Eq. 60

DeDt−pρ2DρDt=q˙⇒DeDt+pDDt(1ρ)=q˙(Eq. 62)
DeDt+pDνDt=q˙(Eq. 63)

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

Enthalpy Formulation

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

with De/Dt from Eq. 60

DhDt=q˙−pDDt(1ρ)+1ρDpDt+pDDt(1ρ)(Eq. 65)
DhDt=q˙+1ρDpDt(Eq. 66)

Total Enthalpy Formulation

ho=h+12𝐯𝐯⇒DhoDt=DhDt+𝐯⋅D𝐯Dt(Eq. 67)

From the momentum equation (Eq. 50)

D𝐯Dt=𝐟−1ρ∇p(Eq. 68)

which gives

DhoDt=DhDt+𝐯⋅𝐟−1ρ𝐯⋅∇p(Eq. 69)

Inserting Dh/Dt from Eq. 66 gives

DhoDt=q˙+1ρDpDt+𝐯⋅𝐟−1ρ𝐯⋅∇p=

=1ρ[DpDt−𝐯⋅∇p]+q˙+𝐯⋅𝐟
(Eq. 70)

The substantial derivative operator applied to pressure

DpDt=∂p∂t+𝐯⋅∇p(Eq. 71)

and thus

DpDt−𝐯⋅∇p=∂p∂t(Eq. 72)

which gives

DhoDt=1ρ∂p∂t+q˙+𝐯⋅𝐟(Eq. 73)

If we assume adiabatic flow without body forces

DhoDt=1ρ∂p∂t(Eq. 74)

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

DhoDt=0(Eq. 75)

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

The entropy equation

From the second law of thermodynamics

DeDt=TDsDt−pDDt(1ρ)(Eq. 76)

From the energy equation on differential non-conservation form internal energy formulation

DeDt=q˙−pρ(∇⋅𝐯)(Eq. 77)

The continuity equation on differential non-conservation form

DρDt+ρ(∇⋅𝐯)=0⇒∇⋅𝐯=−1ρDρDt(Eq. 78)

and thus

DeDt=q˙+pρ2DρDt(Eq. 79)
DρDt=−1ν2DνDt(Eq. 80)
ρDeDt=ρq˙−pρν2DνDt=ρq˙−ρpDνDt(Eq. 81)
ρ[DeDt+pDνDt−q˙]=0⇒DeDt=q˙−pDνDt(Eq. 82)

Insert De/Dt in Eqn. \ref{eq:second:law}

q˙−pDDt(1ρ)=TDsDt−pDDt(1ρ)⇒(Eq. 83)
TDsDt=−q˙(Eq. 84)

Adiabatic flow:

TDsDt=0(Eq. 85)

In an adiabatic, steady-state, inviscid flow, entropy is constant along a streamline.

Crocco's equation

The momentum equation without body forces

ρD𝐯Dt=−∇p(Eq. 86)

Expanding the substantial derivative

ρ∂𝐯∂t+ρ𝐯⋅∇𝐯=−∇p(Eq. 87)

The first and second law of thermodynamics gives

T∇s=∇h−∇pρ(Eq. 88)

Insert ∇p from the momentum equation

T∇s=∇h+∂𝐯∂t+𝐯⋅∇𝐯(Eq. 89)

Definition of total enthalpy (ho)

ho=h+12𝐯⋅𝐯⇒∇h=∇ho−∇(12𝐯⋅𝐯)(Eq. 90)

The last term can be rewritten as

∇(12𝐯⋅𝐯)=𝐯×(∇×𝐯)+𝐯⋅∇𝐯(Eq. 91)

which gives

∇h=∇ho−𝐯×(∇×𝐯)−𝐯⋅∇𝐯(Eq. 92)

Insert ∇h in the entropy equation gives

T∇s=∇ho−𝐯×(∇×𝐯)−𝐯⋅∇𝐯+∂𝐯∂t+𝐯⋅∇𝐯(Eq. 93)
T∇s=∇ho−𝐯×(∇×𝐯)+∂𝐯∂t(Eq. 94)