Professional Documents
Culture Documents
Chapter 6 PDF
Chapter 6 PDF
Chapter 6 PDF
Ch 12)
𝑑𝒱 = 𝑆𝑑𝑥
The continuity equation can be derived based on the above two
equations.
𝜕 𝜕
(𝜌𝑆) + (𝜌𝑢𝑆) = 0
𝜕𝑡 𝜕𝑥
We can derive the momentum and energy equation similarly.
Fig. A6.1: the quasi-one-dimensional flow (A. Ch7).
not here.
𝑘𝐹⃑ (𝑈
⃑⃑) = 𝐹⃑ (𝑘𝑈
⃑⃑)
𝐹⃑ (𝑈
⃑⃑) = 𝐴𝑈
⃑⃑ (A6.6)
The proof is complete.
and 3D NS equations.
From which
𝑝 1
𝑒𝑡 = 𝜌(𝛾−1) + 2 𝑢2 (12.16)
After substitution of Eq. (12.17) into Eq. (12.16) the total energy is
obtained as follows.
𝑐2 1
𝑒𝑡 = 𝛾(𝛾−1) + 2 𝑢2 (12.18)
Substitution of Eq. (12.18) into the Eq. (12.14), the Jacobian matrix 𝐴
is written as follow.
0 1 0
𝛾−3
( 2 ) 𝑢2 −(𝛾 − 3)𝑢 𝛾−1
𝐴=𝑆 (12.19)
−𝑢𝑐 2 𝛾 3 𝑐2 3 2
[ 𝛾−1 + ( − 1) 𝑢 + ( − 𝛾) 𝑢 𝛾𝑢 ]
2 𝛾−1 2
Apply forward time difference to Eq. (12.8). The space derivative can
𝐴 = 𝑋𝐷𝑋 −1 (A6.14)
, in which 𝐷 is a diagonal matrix, and matrix 𝑋 is the eigenvector
matrix. The elements in 𝐷 and 𝑋 are all real number. After some
algebra calculation, the eigenvalues of 𝐴 are exactly equal to
discussed previously.
treats the flux and its Jacobian matrix in a physical way to avoid
from. We will decompose the flux vector into two vector components.
Then
⃑⃑⃑ ′
𝜕𝑤 ⃑⃑⃑ ′ )𝑖 −(𝑤
(𝑤 ⃑⃑⃑ ′ )𝑖−1 ⃑⃑⃑ ′ )𝑖+1 −(𝑤
(𝑤 ⃑⃑⃑ ′ )𝑖
+ −
𝛬 =𝛬 +𝛬 QED
𝜕𝑥 ∆𝑥 ∆𝑥
⃑⃑𝒏
𝝏𝑭
Approximation of for quasi-1D Flow:
𝝏𝒙
We return to the approximation of the flux and source terms in Eq.
Observations:
(b) We then split the flux vector 𝐹⃑ into its positive 𝐹⃑ + and negative
𝐷 = 𝐷+ + 𝐷− (A6.15)
Example of eigenvalues:
Based on Eq. (A6.6) (F=AU) and Eq. (A6.16), the flux term is
expressed as
𝑈 = 𝑋𝐷𝑋−1 ⃑⃑⃑⃑
𝐹⃑ = 𝐴⃑⃑⃑⃑ 𝑈
The flux vector 𝐹⃑ can be split as follows.
𝐹⃑ = 𝐹⃑ + + 𝐹⃑ − (A6.21a)
Apply 1st order upwind scheme to the above two terms, we have
𝜕 𝐹⃑𝑖+ − 𝐹⃑𝑖−1
+
(𝐹⃑𝑖 ) =
+
+ 𝑂(∆𝑥)
𝜕𝑥 ∆𝑥
𝜕 𝐹⃑𝑖− − 𝐹⃑𝑖+1
−
(𝐹⃑𝑖− ) = + 𝑂(∆𝑥)
𝜕𝑥 ∆𝑥
Then
⃑ + −𝐹⃑𝑖−1
+
𝐹⃑𝑖− −𝐹⃑𝑖+1
−
𝜕
⃑⃑⃑𝑖 ) = 𝐹𝑖
(𝐹 + (A6.22)
𝜕𝑥 ∆𝑥 ∆𝑥
Approximation of ⃑𝑯
⃑⃑⃑𝒏 :
(A.624)
next to the boundary nodes. For instance, for index 𝑖 = 1, Eq. (A6.24)
⃑⃑0 and 𝐴+
requires 𝑈 0 , which lies on the boundary. Their values will be
later.
Note: Eq. (A6.25) can be applied to solve unsteady and steady problem
as well.
Sec. Boundary Conditions:
⃑⃑𝑖 , 𝑖 = 2: 𝑛 − 1 , but we
Eq. (A6.24) is applied to interior points 𝑈
⃑⃑𝑖 for 𝑖 = 1 and i = 𝑛 , which lie on the
need to determine 𝑈
boundaries. In other words, we still need to specify the boundary
quasi-one-dimensional problem.
(a) subsonic inflow. There are two positive and one negative
from the right of the inflow (from interior points). Thus, we must allow
Summary:
Notes: we can specify any of the 2 variables 𝜌, 𝑝, and 𝑇, and use, say,
all the information comes from the reservoir (left of the outlet).
(Courtesy. A. Ch 7)
(c) subsonic outflow. There are two positive and one negative
it.
Specify 𝑝𝑖=𝐼
(d) supersonic outflow. All the eigenvalues are positive, which means
Obviously, the solution will converge faster for the better initial
conditions.
conditions
constrained by Eq. (A6.25). The allowed time step the very small, and
If only steady state solution is required, the space derivative can are
⃑⃑ 𝑛+1 −𝑈
𝑆(𝑈 ⃑⃑ 𝑛 ) 𝜕𝐹⃑ 𝑛+1
+ ⃑⃑𝑛+1
=𝐻 (A6.31)
∆𝑡 𝜕𝑥
The next step to Eq. (A6.31) is to apply finite difference to the space
⃑⃑ 𝑛 at time step 𝑛 as known variable. Because
derivative. Treat 𝑈
𝐹⃑ 𝑛+1 = 𝐹⃑ (𝑈
⃑⃑ 𝑛+1 ) , the discretized equations are nonlinear system of
of Eq. (A6.31).
Euler scheme.
⃑⃑)
𝜕(𝑆𝑈 ⃑⃑ 𝑛 )
𝛿(𝑆𝑈
= + 𝑂(∆𝑡) (A6.32)
𝜕𝑡 ∆𝑡
𝜕𝐹⃑
The flux term ⃑⃑ is evaluated implicitly at time
and source vector 𝐻
𝜕𝑥
step 𝑛 + 1 to enhance the numerical stability.
𝜕𝐹⃑ 𝜕𝐹⃑ 𝑛+1
≅
𝜕𝑥 𝜕𝑥
The term 𝐹⃑ 𝑛+1 is linearized as follows.
𝜕𝐹⃑ 𝑛
𝐹⃑ 𝑛+1 = 𝐹⃑ 𝑛 + ∆𝑡 + 𝑂(∆𝑡 2 ) (A6.33)
𝜕𝑡
𝜕𝐹⃑ 𝑛
The term in (A6.16) can be written as
𝜕𝑡
𝑛 ⃑⃑
𝜕𝐹⃑ 𝑛 𝜕𝐹⃑ 𝜕𝑈 ⃑⃑ 𝑛
𝛿𝑈
= (𝜕𝑈⃑⃑) 𝜕𝑡 ≅ 𝐴𝑛 (A6.34)
𝜕𝑡 ∆𝑡
𝐹⃑ 𝑛+1 = 𝐹⃑ 𝑛 + 𝐴𝑛 𝛿𝑈
⃑⃑ 𝑛 (12.12)
Likewise,
⃑⃑𝑛+1 = 𝐻
𝐻 ⃑⃑𝑛 + 𝐵𝑛 𝛿𝑈
⃑⃑ 𝑛 (12.13)
Combine (A6.13), (A6.18), (12.15), and (A6.1), the approximation
The LHS is the implicit term (unknowns). The RHS is the explicit
(12.31). The key for stability is to apply the Flux and Jacobian matrix
influence the accuracy of the solution at all. The reason for the
After combining all the terms, we obtain the following block tri-
𝐶̂𝑖 𝛿𝑈
⃑⃑𝑖−1
𝑛
+ 𝐴̂𝑖 𝛿𝑈
⃑⃑𝑖𝑛 + 𝐵̂𝑖 𝛿𝑈
⃑⃑𝑖+1
𝑛 ⃑⃑𝑖𝑛
= ∆𝑈 (A6.35a)
with
∆𝑡
𝐶̂𝑖 = − ∆𝑥 𝐴+
𝑖−1 (A6.35b)
∆𝑡
𝐴̂𝑖 = [𝑆𝐼 + ∆𝑥 (𝐴+ −
𝑖 − 𝐴𝑖 ) − 𝐵𝑖 ∆𝑡] (A6.35c)
∆𝑡
𝐵̂𝑖 = ∆𝑥 𝐴−
𝑖+1 (A6.35d)
⃑⃑𝑖𝑛 = − ∆𝑡 (𝐹⃑𝑖+ − 𝐹⃑𝑖−1
∆𝑈 +
+ ⃑𝑖+1
𝐹 −
− ⃑𝑖− ) + ∆𝑡𝐻
𝐹 ⃑⃑𝑖 (A6.35d)
∆𝑥
𝑥𝑖+1/2 .
𝑖+1/2
𝜕(𝑆𝑈⃑⃑) 𝑖+1/2 ⃑
𝜕𝐹 𝑖+1/2
∫ 𝑑𝑥 + ∫ 𝑑𝑥 = ∫ ⃑⃑𝑑𝑥
𝐻
𝑖−1/2 𝜕𝑡 𝑖−1/2 𝜕𝑥 𝑖−1/2
𝐹⃑ 𝑛+1 = 𝐹⃑ 𝑛 + 𝐴𝑛 𝛿𝑈
⃑⃑ 𝑛 (12.12)
Likewise,
⃑⃑𝑛+1 = 𝐻
𝐻 ⃑⃑𝑛 + 𝐵𝑛 𝛿𝑈
⃑⃑ 𝑛 (12.13)
Approximation of the flux vector at 𝑖 − 1/2 and 𝑖 + 1/2:
⃑⃑ 𝑛 ]
[(𝐴− )𝑛 𝛿𝑈 = ⃑⃑𝑖𝑛 + 𝐵𝛿𝑈
𝐻 ⃑⃑𝑖𝑛 } (B.9)
𝑖−1/2
𝐶̂𝑖 𝛿𝑈
⃑⃑𝑖−1
𝑛
+ 𝐴̂𝑖 𝛿𝑈
⃑⃑𝑖𝑛 + 𝐵̂𝑖 𝛿𝑈
⃑⃑𝑖+1
𝑛 ⃑⃑𝑖𝑛
= ∆𝑈 (B.11)
with
∆𝑡
𝐶̂𝑖 = − ∆𝑥 𝐴+
𝑖−1/2 (B.12a)
∆𝑡
𝐵̂𝑖 = ∆𝑥 𝐴−
𝑖+1/2 (B.12b)
∆𝑡
𝐴̂𝑖 = [𝑆𝐼 + ∆𝑥 (𝐴+ −
𝑖+1/2 − 𝐴𝑖−1/2 ) − 𝐵𝑖 ∆𝑡] (B.12c)
𝑛
⃑⃑𝑖𝑛 = − ∆𝑡 {𝐹⃑𝑖+1/2
∆𝑈 +
+ ⃑𝑖+1/2
𝐹 −
− ⃑𝑖−1/2
𝐹 +
− ⃑𝑖−1/2
𝐹 − ⃑⃑𝑖 } (B.12d)
+ ∆𝑡𝐻
∆𝑥
Define
⃑⃑𝑖+1/2 = 1 (𝑈
𝑈 ⃑⃑𝑖 + 𝑈
⃑⃑𝑖+1 ),
2
then
𝐴+ + ⃑⃑
𝑖+1/2 ≅ 𝐴𝑖+1/2 (𝑈𝑖+1/2 )
Term Project:
Fluid parameters:
The subscript "𝑜" (letter not zero!) represents the reservoir condition.
Initial Conditions:
𝑝𝑖 = 𝑝01 , 𝑖 = 1: 𝐼 − 1; 𝑝𝑖 = 𝑃𝑒
𝑇𝑖 = 𝑇01 𝑖 = 1: 𝐼
𝑢 = 0; 𝑖 = 1: 𝐼
Controlling Parameters:
subscript "𝑜1 " and "𝑜2 " are the reservoir conditions ahead and after
the shock respectively. If The flow is isentropic (no shock), then
𝑃01 = 𝑃0 2 , 𝑇01 = 𝑇0 2 , etc. However, when normal shock (normal to
𝑇 𝛾−1 −1
2
= [1 + 𝑀 ] (P.4)
𝑇0 2
−1
𝜌 𝛾−1 𝛾−1
= [1 + 𝑀2] (P.5)
𝜌0 2