ZME654 1 Introduction
ZME654 1 Introduction
DYNAMICS
Çankaya University
Faculty of Engineering
Mechanical Engineering Department
Spring, 2025
INTRODUCTION
1 Introduction and
2
Mathematical Formulation
Methods Used in Research
1. Experimental Method: A physical model of the problem is set up in the
laboratory and important parameters characterizing the problem are measured.
u=?, v=?, w=?, P=?, T=?, C=? → t=?, FD=?, CL=?, f, CD=?, q=?, Nu=?, ….
Experimental Method Capable of producing the The cost is high and may
most realistic answers for take long time
many problems.
Theoretical (Analytical) Answers are obtained in Simplifying assumptions
Method the form of clear general are made.
expressions
Restricted to simple
geometries and physical
phenomenon
Numerical Method No restriction to the Results contain error
equations (equations
could be linear or For some cases may be
nonlinear). costly
1 Introduction and
Mathematical Formulation 3
Basic Feature of CFD
We seek a solution in terms of values of the dependent (primary) variables (u, v, w, p,
T, ….) at a finite number of grid points called discretization points.
5. Post processing: Evaluation of the results of the variables obtained at the grid
points and representing the results as graphs, tables, etc.
1 Introduction and Mathematical Formulation 4
MATHEMATICAL FORMULATION
Numerical solution of any problem starts with a mathematical formulation of the
problem.
Continuity Equation
Continuity equation is derived from law of conservation of mass.
𝜕𝜌 𝜕
+ 𝜌𝑢𝑘 = 0 u v w 0
𝜕𝑡 𝜕𝑥𝑘 t x y z
𝜕𝜌
+ 𝛻. 𝜌𝑢 = 0
𝜕𝑡
Non-conservative form:
𝛛𝒖𝒋 𝛛𝒖𝒋 𝛛𝒑 𝛛 𝛛𝒖𝒌 𝛛 𝛛𝒖𝒊 𝛛𝒖𝒋
𝝆 + 𝝆𝒖𝒌 =− + 𝝀 + 𝝁 + + 𝝆𝒇𝒋
𝛛𝒕 𝛛𝒙𝒌 𝛛𝒙𝒋 𝛛𝒙𝒊 𝛛𝒙𝒌 𝛛𝒙𝒊 𝛛𝒙𝒋 𝛛𝒙𝒊
Conservative form:
𝛛 𝛛 𝛛𝒑 𝛛 𝛛𝒖𝒌 𝛛 𝛛𝒖𝒊 𝛛𝒖𝒋
(𝝆𝒖𝒋 ) + (𝝆𝒖𝒋 𝒖𝒌 ) = − + 𝝀 + 𝝁 + + 𝝆𝒇𝒋
𝛛𝒕 𝛛𝒙𝒌 𝛛𝒙𝒋 𝛛𝒙𝒊 𝛛𝒙𝒌 𝛛𝒙𝒊 𝛛𝒙𝒋 𝛛𝒙𝒊
𝝏𝒆 𝝏𝒆 𝝏𝒖𝒌 𝝏 𝝏𝑻
Non-conservative form: 𝝆 + 𝝆𝒖𝒌 = −𝒑 + 𝒌 +𝜱
𝝏𝒕 𝝏𝒙𝒌 𝝏𝒙𝒌 𝝏𝒙𝒋 𝝏𝒙𝒋
𝝏 𝝏 𝝏𝒖𝒌 𝝏 𝝏𝑻
Conservative form: (𝝆𝒆) + (𝝆𝒖𝒌 𝒆) = −𝒑 + 𝒌 +𝜱
𝝏𝒕 𝝏𝒙𝒌 𝝏𝒙𝒌 𝝏𝒙𝒋 𝝏𝒙𝒋
From the generalized equation, all governing equations can be obtained by the
following settings.
𝛛𝒑 𝛛 𝛛𝒖𝒌
For momentum equation, 𝝋 →u, v, w, 𝜞→, S →− + 𝝀 + 𝝆𝒇𝒋
𝛛𝒙𝒋 𝛛𝒙𝒊 𝛛𝒙𝒌
𝝏𝒖𝒌
For energy equation, 𝝋 →T, 𝜞→k/Cp S → −𝒑 +𝜱
𝝏𝒙𝒌
The generalized equation show that all the governing equations consists of the
same type of terms, i.e., transient term, convective terms, diffusion terms and
source term.
Because of this, the discretization of each type of these terms are going to be
formulated for the general variable 𝝋 and then it will be adapted to all the
governing equations, i.e., continuity, momentum and energy equations.
ufluid = usolid
2. Interface of two different fluids: Velocity and shear stress are continuous.
𝜕𝑢 𝜕𝑢
ufluid 1 = ufluid 2 and )fluid 1 = )
𝜕𝑛 𝜕𝑛 fluid 2
𝜕𝑇 𝜕𝑇
Tfluid 1 = Tfluid 2 and k )fluid 1 = k )
𝜕𝑛 𝜕𝑛 fluid 2
u = Uinlet T=Tinlet
3. At Outlet: Generally, exit values of the variables are not known prior to the
solution. They are outcome of the solution. Depending on the physics of the
problem, variation of the variables in the flow direction may be considered
negligible.
1 Introduction and Mathematical Formulation 7
Mathematical Classification of Differential Equations
𝜕2𝜑 𝜕2𝜑
𝜕𝜑 𝜑𝑥𝑥 = 𝜑𝑥𝑦 =
𝜑𝑥 = 𝜕𝑥 2 𝜕𝑥𝜕𝑦
𝜕𝑥
Physical Implication
For steady laminar and turbulent flows, the velocity variation in time would be as
follows:
These equations are valid for both laminar and turbulent flows instantaneously. For
turbulent flows, because of fluctuations, velocity and pressure terms are rapidly
varying functions of time and space. At present, our mathematics can not handle such
instantaneous fluctuating variables.
' 0
ds ds
s s
𝜕𝑉 1 𝜕𝑃 𝜕𝑢′ 𝑣 ′ 𝜕𝑣 ′2 𝜕𝑣 ′ 𝑤 ′
+ 𝑑𝑖𝑣 𝑉𝑉 = − + 𝑣 𝑑𝑖𝑣 (𝑔𝑟𝑎𝑑 𝑉) + − − −
𝜕𝑡 𝜌 𝜕𝑦 𝜕𝑥 𝜕𝑦 𝜕𝑧
𝜕𝑊 1 𝜕𝑃 𝜕𝑢′ 𝑤 ′ 𝜕𝑣 ′ 𝑤 ′ 𝜕𝑤 ′2
+ 𝑑𝑖𝑣 𝑊𝑉 = − + 𝑣 𝑑𝑖𝑣 (𝑔𝑟𝑎𝑑 𝑊) + − − −
𝜕𝑡 𝜌 𝜕𝑧 𝜕𝑥 𝜕𝑦 𝜕𝑧
𝜕𝛷 𝜕𝑢′ 𝜑 ′ 𝜕𝑣 ′ 𝜑 ′ 𝜕𝑤 ′ 𝜑 ′
+ 𝑑𝑖𝑣 𝛷𝑉 = 𝑑𝑖𝑣 𝛤𝛷 𝑔𝑟𝑎𝑑𝛷 + − − − + 𝑠𝛷
𝜕𝑡 𝜕𝑥 𝜕𝑦 𝜕𝑧
For the direct solution of instantaneous equations for u, v, w, and p, very small space
and time intervals must be used. Hence, the direct solution of turbulent flows is very
expensive and requires powerful computational resources.
The Reynolds averaged N-S (RANS) equations are time averaged equations. By time
averaging, the small-scale fluctuations are eliminated. The resulting reformed set of
equations are computationally less expensive. As a result of time average, we end up
with six additional unknowns, Reynolds stresses, in momentum equations.
To solve the modified (RANS) equations, models are required to determine Reynolds
stress terms. There are many turbulence models which approximately expresses the
Reynolds stress terms in terms of the average variables.
Turbulence models:
- Mixed length model
- One-equation models
- Spalart-Allmaras model
- Two-equation models
- k-Ɛ model
- k-w model
- Reynolds stress model (RSM)
- Large Eddy Simulation (LES) model
𝝏𝑼
Total stress can be written as 𝝉=𝝁 − 𝝆𝒖′ 𝒗′
𝝏𝒚
𝜕𝑈 𝜕𝑃 𝜕 𝜕𝑈 𝜕 𝜕𝑈 𝜕 𝜕𝑈
𝜌 + 𝑑𝑖𝑣 𝜌𝑈𝑉 = − + 𝜇𝑒𝑓𝑓 + 𝜇𝑒𝑓𝑓 + 𝜇𝑒𝑓𝑓 + 𝜌𝑔𝑥
𝜕𝑡 𝜕𝑥 𝜕𝑥 𝜕𝑥 𝜕𝑦 𝜕𝑦 𝜕𝑧 𝜕𝑧
Where 𝑠𝑘 𝑎𝑛𝑑 𝑠Ɛ are kinetic energy and dissipation rate source terms.
𝑆𝑘 = 𝐺 − 𝜌𝜀
𝜀
𝑆𝜀 = 𝐶 𝐺 − 𝐶2 𝜌𝜀
𝑘 1
2 2 2
𝜕𝑈 𝜕𝑉 𝜕𝑈 𝜕𝑉
𝐺 = 𝜇𝑡 + + 2𝜇𝑡 +
𝜕𝑦 𝜕𝑥 𝜕𝑥 𝜕𝑦
Model constants: