Docsity

Fluid Dynamics Equations - Computational Fluid Dynamics - Lecture Slides, Slides of Fluid Dynamics

Toggle sidebar
bg1
Introduction and Equations January 20-25, 2010
ME 692 – Computational Fluid Dynamics 1
Course Introduction
Course Introduction
Fluid Dynamics Equations
Fluid Dynamics Equations
Larry Caretto
Mechanical Engineering 692
Computational Fluid Dynamics
Computational Fluid Dynamics
January 20-25, 2010
2
Overview
• Review course syllabus
– Goals, grading, assignments, schedule
• What is computational fluid dynamics?
– Partial differential equations of fluid
dynamics for “conservation” of mass,
momentum, energy, and chemical species
– Special models for turbulent flow
– Techniques used to develop algorithms for
numerical solution of equations
– Creation of grids for numerical solutions
– Other physical models for radiation heat
transfer, chemical reaction, etc.
3
Instructor and Course Data
• [email protected] 818.677.6448
• Office JD 3333, office hours MW 5–6
pm, TTh 2–3 pm, email, drop in, phone
call, or appointment
• Text: Versteeg and Malalasekera, An
Introduction to Computational Fluid
Dynamics The Finite Volume Method
• Grading based on homework (10%),
midterm (25%) project (25%) and final
(40%)
• See grading criteria in outline
• http://www.csun.edu/~lcaretto/me692 4
Basic Course Goals
• Understand equations, models, and
numerical methods used in
computational fluid dynamics
• Be able to use commercial codes with
good understanding of code inputs and
outputs and ultimate accuracy
• Course will be combination of learning
background material and code
applications using commercial code,
Fluent, available in classroom and other
ME Department computing labs
5
Course Learning Objectives
• Understand how the basic differential
equations of CFD are derived, and the
similar form of these equations
• Apply the knowledge gained in the
course in the operation of commercial
CFD codes.
• Understand the overall process by which
numerical solutions of differential
equations are obtained
6
Course Learning Objectives II
• Recognize the processes (finite
differences, finite volumes, and finite
elements) that transform differential
equations into algebraic equations.
• Be able to convert partial differential
equations into finite difference relations
and find the order of the truncation error.
• Be familiar with turbulence models and
be able to choose an appropriate model
for a specific problem.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Fluid Dynamics Equations - Computational Fluid Dynamics - Lecture Slides and more Slides Fluid Dynamics in PDF only on Docsity!

Course IntroductionCourse Introduction

Fluid Dynamics EquationsFluid Dynamics Equations

Larry Caretto Mechanical Engineering 692 Computational Fluid DynamicsComputational Fluid Dynamics January 20-25, 2010

2

Overview

  • Review course syllabus
    • Goals, grading, assignments, schedule
  • What is computational fluid dynamics?
    • Partial differential equations of fluid dynamics for “conservation” of mass, momentum, energy, and chemical species
    • Special models for turbulent flow
    • Techniques used to develop algorithms for numerical solution of equations
    • Creation of grids for numerical solutions
    • Other physical models for radiation heat transfer, chemical reaction, etc.

3

Instructor and Course Data

  • [email protected] 818.677.
  • Office JD 3333, office hours MW 5– pm, TTh 2–3 pm, email, drop in, phone call, or appointment
  • Text: Versteeg and Malalasekera, An Introduction to Computational Fluid Dynamics The Finite Volume Method
  • Grading based on homework (10%), midterm (25%) project (25%) and final (40%)
  • See grading criteria in outline
  • http://www.csun.edu/~lcaretto/me692 (^4)

Basic Course Goals

  • Understand equations, models, and numerical methods used in computational fluid dynamics
  • Be able to use commercial codes with good understanding of code inputs and outputs and ultimate accuracy
  • Course will be combination of learning background material and code applications using commercial code, Fluent, available in classroom and other ME Department computing labs

5

Course Learning Objectives

  • Understand how the basic differential equations of CFD are derived, and the similar form of these equations
  • Apply the knowledge gained in the course in the operation of commercial CFD codes.
  • Understand the overall process by which numerical solutions of differential equations are obtained

6

Course Learning Objectives II

  • Recognize the processes (finite differences, finite volumes, and finite elements) that transform differential equations into algebraic equations.
  • Be able to convert partial differential equations into finite difference relations and find the order of the truncation error.
  • Be familiar with turbulence models and be able to choose an appropriate model for a specific problem.

7

Course Learning Objectives III

  • Be able to use concepts of stability to determine appropriate relaxation factors and dimensionless parameters used as inputs to commercial codes.
  • Understand algorithms of computational fluid dynamics and be able to determine appropriate ones to obtain solutions from commercial codes.

8

Project

  • Several options to apply course material
    • Run commercial code at workplace
    • Run Fluent in ME lab (most common)
    • Run available free software
    • Write own CFD code for simple problem
    • Other project with approval of instructor
  • Requirements and dates
    • Proposal March 8
    • Presentation to class May 3 and 5
    • Written report May 12 (two days after final)

9

Course Materials

  • Web site: http://www.csun.edu/~lcaretto/me
  • Lecture presentations supplemented (in some cases) by course notes - Idea of presentations is to allow students to listen and think about lecture material without having to take detailed notes
  • Reading assignments in text should be done prior to class
  • Download presentations prior to class 10

What is CFD?

  • Numerical solution of basic partial differential equations of fluid dynamics
  • Applications to problems with heat and mass transfer including chemical reactions
  • Main research areas in 1960- developed into commercial codes used for current CFD practice

11

Equations of CFD

  • Conservation of mass
  • Rate of momentum change equals applied force
  • Rate of energy change equals heat added plus work done
  • Rate of chemical species change is due to chemical reactions
  • Source = Outflow – Inflow + Storage
  • One, two and three dimensions 12

Common Variable

  • The “Source = Outflow – Inflow + Storage” equation often called a conservation or balance equation - Variables are density, velocity components, thermodynamic energies, chemical species fractions
  • Similar form for all equations leads to use of common variable, φ, to in general equation for all variables - Leads to common algorithms

19

Grids

  • Set of finite volumes with grid nodes at intersections or center of volumes - Need to find grid to give desired accuracy - Variety of grids possible in current CFD codes to get complex geometries 20

Computing Derivatives

  • Usual (second-order) approach for more accurate derivatives leads to physically unrealistic solutions for larger grids
  • Alternative known as upwind differencing gives physically realistic results with large errors
  • Seek alternative differencing schemes to provide balance of accuracy and physical realism

21

Simultaneous Solutions

  • Have to solve momentum equations and continuity simultaneously - For incompressible flows with known density find velocity components and pressure - For compressible flows, use p = ρRT and solve for density and velocity components
  • Have different approaches for linking solution of momentum equations and continuity to give desired variables 22

Solving the Equations

  • Algebraic equations that result from finite volume approach form sparse matrix
  • Solved by iteration
    • Need criterion to halt iterations
  • Different solution processes available
  • Will examine simple approaches
  • Multigrid approach is currently considered best approach

23

Post Processing

  • CFD solutions result in value for each variable at each grid node
  • Often interest is in computed quantities such as wall shear and heat flux
  • CFD codes allow post-processing to compute desired quantities
  • Can also obtain plots of desired quantities and videos showing how flow evolves 24

Deriving Equations

  • Have simple physical principles
    • Mass is conserved
    • Newton’s second law: force is rate of change of momentum
    • Conservation of energy
    • Balance of chemical species
  • Derive differential equations for each of these simple principles
  • Equations have common form – an important idea for numerical algorithms

25

Differential Volume ΔV = ΔxΔyΔz

x, u

y, v

z, w (^) x x + Δ xz +^ Δ z

y + Δ y

y

z

z-direction face at z; area = Δ x Δ y

  • Differential volume has six faces for flow and surface terms

z-direction face at z+ Δ z; area = Δ x Δ y

26

Storage Term

  • Storage term: transient change in Φ

x y z t t

xyz t

m t

Storage ΔΔΔ ∂

=∂ ∂

=∂ ΔΔΔ ∂

=∂ ∂

= ∂Φ (^ ϕ) (^ ρ^ ϕ) (^ ρϕ)

  • Dimensions of this term are Φ dimensions over time
  • We will later divide the entire equation by ΔxΔyΔz so that the final equation will have dimensions of Φ divided by time and length cubed

27

x-Direction Inflow and Outflow

Δ x Δ z

Δ y x-direction inflow at x

x-direction outflow at x + Δx Cross-sectional area for x-direction flow is ΔyΔz x-direction mass flow rate is ρuΔyΔz x

  • x-direction Φ flow rate is ρuφΔyΔz
    • Dimensions for flows of mass and Φ: mass/time and (Φ units)/time - Will later divide by ΔxΔyΔz 28

Total Inflow and Outflow

Δ x Δ z

Δ y

Area for y- and z- direction flows are ΔxΔz and ΔxΔy

y- and z-direction Φ flow rates are ρvφΔxΔz and ρwφΔxΔy

Inflow =ρ u ϕ x Δ y Δ z +ρ v ϕ y Δ x Δ z +ρ w ϕ z Δ y Δ x Outflow = ρ u ϕ x +Δ x Δ y Δ z +ρ v ϕ y +Δ y Δ x Δ z +ρ w ϕ z +Δ z Δ y Δ x

x

y

z

29

Source Term

  • Conventionally the source term for Φ is the source of Φ per unit volume, - Source term has dimensions of Φ divided by length cubed divided by time - Example: for Φ as energy in SI units the source term will have units of Joules per second per cubic meter or watts per cubic meter - In the derivation, the dimensions of the source term, before division by ΔxΔyΔz, are Φ dimensions divided by time Source = SϕΔ x Δ y Δ z

S ϕ

30

Basic Balance Equation

  • Storage + Outflow – Inflow = Source

xy z t Storage ΔΔΔ ∂

∂ρϕ

( )

Inflow =ρ u ϕ x Δ y Δ z +ρ v ϕ y Δ x Δ z +ρ w ϕ z Δ y Δ x Outflow = ρ u ϕ x +Δ x Δ y Δ z +ρ v ϕ y +Δ y Δ x Δ z +ρ w ϕ z +Δ z Δ y Δ x

Source = SϕΔ x Δ y Δ z

  • Substitute terms into balance equation and divide by ΔxΔyΔz

37

Where are we?

  • We have two general transport equations for φ, a conservation form and a nonconservation from
  • We have a conservation equation for mass, the continuity equation
  • We now have to get other conservation equations (momentum, energy, species) with more complex source terms
  • Next is momentum where source terms are the forces on the fluid element (^38)

Handling Source Terms

  • Remember that our balance equation has modified source term that is source per unit volume (ΔxΔyΔz) in limit as volume shrinks to zero
  • Steps in getting source terms
    • Get equation for original source term, e.g. , force in momentum equation
    • Divide by ΔxΔyΔz
    • Take limit as volume shrinks to zero

S ϕ

S ϕ

39

Forces on a Fluid Element

  • Body forces such as gravity and electromagnetic forces act throughout the body of the fluid element - Represented as j-direction acceleration, B (^) j, (typically gravity) so that force is ρB (^) jΔxΔyΔz
  • Surface forces from action of fluid elements on each other act at surfaces - At each of the six faces on a volume element we have stresses acting in all three coordinate directions (18 terms!) 40

Body Force Terms

  • Start with body force as acceleration, B (^) j
    • Force is ρBjΔxΔyΔz
      • Dimensions are (mass/volume)(acceleration) (volume) = (mass)(acceleration) = force
    • Divide by unit volume ΔxΔyΔz to get force as ρBj
    • As volume shrinks to zero ρ and B (^) j become density and acceleration at a point - No other effect in equation from taking limit
  • Contribution to S^ * ϕfrom body force is ρB (^) j

41

Surface Stresses, σ(face)(direction)

y x z

Upper face in y direction x direction stress here is σ yx |y+ Δ y

Δ y

Δ x Δ z Lower face in y direction x direction stress here is - σ yx |y

  • Positive stress, σ(face)(direction) , exerted by element above on element below
  • Force is stress times area
  • σyx is stress on y face in x direction 42

Net Surface Force Example y x z

Upper face in y direction x direction force on this face is σ yx |y+ Δ y Δ x Δ z

Δ y

Δ x Δ z

Lower face in y direction x direction force on this face is - σ yx |y Δ x Δ z

y xz UnitVolume xyz

Net yFacexDirectionforce yxy y yxy yxy y yxy Δ

− ΔΔ = ΔΔΔ

− = +Δ +Δ , σ σ σ σ

43

Net Surface Force Source Term

  • Source term in transport equation requires limit as ΔV approaches zero
  • Expression becomes derivative

UnitVolume y

NetyFacexDirectionforce y

Limit (^) yx ∂

∂

Δ →

, σ 0

  • Also have x-direction forces on faces in x and z directions so total is

surfaceforcesource x y z

Net x direction xx yx zx

44

Surface Force Source Terms

  • Get terms for other directions by analogy with x-direction terms
  • Introduce numerical subscripts 1, 2, and 3 for x, y, and z
  • Use implied summation equation and substitute result into momentum equation
  • Show results with and without summation convention

45

Net Surface Force Source Term

i

xx yx zx i

surfaceforcesource x y z x

Netx direction

i

xy yy zy i

surfaceforcesource x y z x

Nety direction

i

xz yz zz i

surfaceforcesource x y z x

Netz direction

i

ij

surfaceforcesource x

Netj direction

46

Momentum Balance

  • Use general transport equation with φ = u (^) j and Sφ = j-direction force per unit volume
  • Have three equations like this for j = 1, 2, 3 (corresponding to x, y, z momentum)
  • Implied summation over i subscript
  • See notes and first homework problem for full equations with u, v, w, x, y, z

+ = 1 , K 3

B j

x x

uu

t

u

j i

ij i

j i j ρ

ρ ρ σ

47

What are Stress Terms?

  • How do we relate σij to fluid properties?
  • Most common relationship is for Newtonian fluid

ij i

j j

i ij ij x

u x

u

σ P δ μ +κ− μΔ δ

z

w y

v x

u x

u k

k ∂

⎩

⎨

⎧ ≠

=

i j

i j ij (^) 0

1 δ

  • Here μ and κ are dynamic and bulk viscosities and Δ is dilatation - (κ – 2μ/3) term important in high frequency acoustics only 48

Momentum Equation

  • Substitute Newtonian relations into momentum balance equation at bottom of slide 46

j i j

j j

i j i

i

j ij

B

x x

u x

u x x

P

j x

uu t

u

μ κ μ ρ

ρ ρ

1 , K 3

  • Three momentum balance equations known as Navier-stokes equations

55

More Energy Equations?

  • There are several variations of the energy equation used in practice - Separate kinetic energy from thermodynamic energy - Substitute enthalpy for internal energy - Use temperature instead of internal energy or enthalpy as dependent variable - With constant pressure heat capacity - With constant volume heat capacity
  • Derivation details in notes 56

Kinetic Energy Balance

  • Comes from momentum equations only
  • Problems in numerical methods when difference schemes for momentum do not conserve kinetic energy
  • Derivation done by multiplying each momentum equation by its velocity and summing results

j j i

ij j i

i (^) u B x

u x

u t

ρ ρ ρ σ

∂

∂

∂

+∂ ∂

∂ ( V^2 / 2 ) ( V^2 / 2 )

57

Thermodynamic Balances

  • Subtract kinetic energy balance from total energy balance
  • Use thermodynamics to introduce enthalpy (h = e + P/ρ) and temperature
  • Continuity equation for density is tool

Dt

PD Dt

DP Dt

Dh Dt

De ρ ρ ρ^2 = −^1 +

Dt

T PD Dt cDT Dt

De T v P^ ρ κ

β ρ ⎟ ⎟ ⎠

⎞ ⎜⎜⎝ = + ⎛^ − 2

1

Dt

TDP Dt

c DT Dt

Dh (^) P p ρ = +^1 −β

P (^) T (^) P T P T ⎟ ⎠ ⎜ ⎞ ⎝

⎛ ∂ ⎟ = ∂ ⎠ ⎜ ⎞ ⎝

⎛ ∂ =− ∂ ρ κ ρ ρ β (^) ρ 1 1

58

Thermodynamic Balances II

j

i ji i

i i

i x

u x

q x

ue t

e ∂

∂

∂

∂ =− ∂

∂

∂

∂ σ ρ ρ [1-41]

    • Δ ∂
  • ∂ ∂ =−∂ ∂ +∂ ∂

∂ (^) P Dt

DP x

u x

q x

uh t

h j ji i i

i i

ρ ρ i σ [1-57]

    • Δ ∂
  • ∂ ∂ =−∂ ⎥ ⎦

⎤ ⎢ ⎣

⎡ ∂ +∂ ∂

∂ (^) P Dt TDP x

u x

q x

uT t c T P j ji i i

i i p ρ^ ρ i σ^ β [1-58]

⎟⎟^ Δ ⎠

⎞ ⎜⎜⎝ +⎛^ − ∂

  • ∂ ∂ =−∂ ⎥ ⎦

⎤ ⎢ ⎣

⎡ ∂ +∂ ∂

∂ T P x

u x

q x

uT t c T T

P j ji i i

i i v i κ

ρ ρ σ β [1-59]

59

Stress and Heat Flux

  • Equations on previous chart valid for any heat transfer or stress relationship
  • Look at Newtonian fluid for stress
  • Heat transfer more complex
    • Fourier law heat conduction is simplest
    • Radiation heat transfer
    • Diffusion-thermo in mixtures

i

i x

T q k ∂

∂ =−

  • Consider only Fourier law conduction here 60

Dissipation

  • Stress work terms involve pressure and viscous stresses
  • Latter are only important in high Mach number flows
  • Define dissipation, ΦD, for these terms

∂ =− Δ+ Φ^ D

∂ ⎥

⎥ ⎦

⎤ ⎢

⎢ ⎣

⎡ ⎟⎟+ − Δ ⎠

⎞ ⎜⎜⎝

⎛ ∂ +∂ ∂ = − + ∂ ∂

∂ (^) P x

u x

u x P u x

u j ij i i

j j ij i j

σ (^) ji i δ μ κ μ) δ 3 (^2

)^2 3

+( −^2 Δ ∂

∂ ⎟ ⎟ ⎠

⎞ ⎜ ⎜ ⎝

⎛ ∂

∂

∂

=μ ∂ κ μ j

i i

j j

i x

u x

u x

u Φ D

P

x

u P

x

u P

i

i

j

i δ ij

61

One More Substitution

  • Replace temperature gradient in Fourier Law by gradient of internal energy or enthalpy using general thermodynamic equations for these variables - de = c (^) vdT – (TβP/κT – P)dρ/ρ^2 - dh = c (^) p dT + (1 – TβP)dP/ρ

T i

P i v i v x

P T x c

e x c

T ∂

∂ ⎥ ⎦

⎤ ⎢ ⎣

⎡

  • − ∂

∂

∂

∂ ρ κ ρ

β 2

1 1 1

p i

P i p i x

P c

T x

h x c

T ∂

− − ∂ ∂

= ∂ ∂

∂ ρ

1 1 β

P P (^) T ⎟⎠ ⎜ ⎞ ⎝

⎛ ∂

∂ρ ρ β =−^1

T

T (^) P ⎟ ⎠

⎜ ⎞ ⎝

⎛ ∂

∂ρ ρ κ =^1

62

Energy Balance Equations

T i

P i i v i i v

i P x T x P xc

e c

k x x

ue t

e ∂

∂ ⎥⎦

⎤ ⎢⎣

⎡ (^) − ∂ − Δ+ +∂ ∂

∂ ∂ =∂ ∂ +∂ ∂

∂ ρ κ ρ

ρ ρ β 2

1 1 Φ D [1-68]

Dt

DP x

P c

T x x

h c

k x x

uh t

h p i

P i i p i i

i (^) + ∂

∂ ⎥

⎥ ⎦

⎤ ⎢

⎢ ⎣

⎡ (^) − ∂

  • +∂ ∂

∂ ∂ =∂ ∂ +∂ ∂

∂ ρ

ρ ρ^1 β Φ D [1-69]

Dt

TDP x

k T x x

uT t

c T P i i i

p ρ^ ρ i + +^ β ∂

∂ ∂

= ∂ ⎥ ⎦

⎤ ⎢ ⎣

⎡ ∂

+∂ ∂

∂ ΦD [1-70]

    • Δ ∂

∂ ∂

∂ ⎥= ⎦

⎤ ⎢ ⎣

⎡ ∂

∂

∂

∂ T

P i i i

i v

T x

T k x x

uT t

T c κ

ρ ρ β ΦD [1-71]

63

Species Balance Equations

  • Species mass fractions W(K)^ can change by convection and diffusion that occurs with and without motion
  • Diffusion effect given by second derivative term - Derivation details in notes

Transient Convective Diffusive Source

r x

W

x x

W u t

W K

i

K KMix i i

i

K K ( ) ( ) ,

() ( )

∂

D

ρ ρ

64

General Equation

  • Look at general transport equation in same form as species transport equation

" "

() ()

Transient Convective Diffusive Source

S x x x

u t

c i i i

ρφ ρ i ϕ ϕ ϕ + ϕ ∂

∂ Γ ∂

∂ ⎥= ⎦

⎤ ⎢ ⎣

⎡ ∂

∂

∂

∂

  • c = 1 or c = heat capacity if φ = T
  • General transport coefficient, Γ(φ)^ ( e. g ., viscosity) has same dimensions as xi^2 cρ/t (for c = 1 this is mass/length/time) - For φ = T, Γ(φ)^ = thermal conductivity, k

65

General Equation II

  • This general equation adds a second order term to the equation we started with as general transport equation
  • Terms in “Source” are true source terms plus other terms that are not the pure second derivative terms
  • Examine each equation to determine the contents of the “Source” term - Separate pressure gradient in momentum
  • Source often zero for simple problems 66

Momentum Equations

  • General momentum equation shows pressure gradient explicitly

j i

j i j i

j i j S x

u x x

P x

uu t

u

∂

∂ μ ∂

∂

∂

∂ =− ∂

∂ρ

∂

∂ρ

j j j

i i

j B

x x

u

x

S ⎥+ρ

73

Another General Approach II

  • Equation without summation convention

x

xj yj zj j

j j j j

B

x x y z

p

z

wu y

vu x

uu t

u

ρ

τ τ τ

ρ ρ ρ ρ

( ) (^) ( ) x

yx zx

xx

B

z

wu y

vu

x

uu p t

u

ρ

ρ τ ρ τ

ρ ρ τ

  • General direction j equation
  • x-direction equation

74

Another General Approach III

  • Cast continuity, momentum, total energy, and species balance into form of vector equation

H

U E F G

t x y z

  • Each conservation equation is one component of the vector equation
  • Get components by reviewing equations

75

Another General Approach IV

H

U E F G

t x y z

⎥

⎥

⎥

⎥

⎥

⎥

⎥

⎦

⎤

⎢

⎢

⎢

⎢

⎢

⎢

⎢

⎣

⎡

=

⎥

⎥

⎥

⎥

⎥

⎥

⎥

⎦

⎤

⎢

⎢

⎢

⎢

⎢

⎢

⎢

⎣

⎡

=

⎥

⎥

⎥

⎥

⎥

⎥

⎥

⎦

⎤

⎢

⎢

⎢

⎢

⎢

⎢

⎢

⎣

⎡

=

⎥

⎥

⎥

⎥

⎥

⎥

⎥

⎦

⎤

⎢

⎢

⎢

⎢

⎢

⎢

⎢

⎣

⎡

=

6

5

4

3

2

1

() 6

5

4

3

2

1

()

(^2) ( )

0

( / 2 ) h

h

h

h

h

h

r

uB vB wB

B

B

B

U

U

U

U

U

U

W

e V

w

v

u

K

x y z

z

y

x

K

ρ

ρ

ρ

ρ

ρ

ρ

ρ

ρ

ρ

ρ

U H

76

Another General Approach V

H

U E F G

t x y z

⎥

⎥

⎥

⎥

⎥

⎥

⎥

⎦

⎤

⎢

⎢

⎢

⎢

⎢

⎢

⎢

⎣

⎡

=

⎥

⎥

⎥

⎥

⎥

⎥

⎥

⎦

⎤

⎢

⎢

⎢

⎢

⎢

⎢

⎢

⎣

⎡

    • − − − +

−

−

  • −

=

6

5

4

3

2

1

() ()

[ (^2 / 2 ) ] e

e

e

e

e

e

uW j

u e V p u v w q

wu

uv

uu p

u

K x

K

xx xy xz x

xz

xy

xx

ρ

ρ τ τ τ

ρ τ

ρ τ

ρ τ

ρ

E

77

Another General Approach VI

H

U E F G

t x y z

6

5

4

3

2

1

( ) ( )

[ (^2 / 2 ) ]

f

f

f

f

f

f

vW j

e V p u v w q

wv v

vv p

uv

v

K y

K

yx yy yz y

yz

yy

yx

ρ

ρ τ τ τ

ρ τ

ρ τ

ρ τ

ρ

F

78

Another General Approach VII

H

U E F G

t x y z

6

5

4

3

2

1

() ( )

[ (^2 / 2 ) ]

g

g

g

g

g

g

wW j

w e V p u v w q

ww p

vw

uw

w

K z

K

zx zy zz z

zz

zy

zx

ρ

ρ τ τ τ

ρ τ

ρ τ

ρ τ

ρ

G

79

Another General Approach VIII

H

U E F G

t x y z

  • Compute vectors E , F , G , and H from flow variables and use numerical integration over time step to get U
  • Update flow variables from components of U vector, Uk. - These are not velocity components - Details next chart 80

Another General Approach IX

1

() 6

2 4

2 3

2 2 2 1 1

5

1

4

1

3

1

2

1

U

U

W

U U U

U U

U

e

U

U

w

U

U

v

U

U

u

U

K =

ρ=

81

Finding the Pressure

  • Pressure gradient in momentum equations is part of “Source”
  • For compressible flows solve for density and find P from equation of state
  • For incompressible flows
    • density is given
    • have four equations (continuity and three momentum equations) to solve for pressure and velocity components

82

Finding the Pressure II

  • Define new momentum source term that treats pressure as a separate term
  • For compressible flows solve for density and find P from equation of state
  • For incompressible flows
    • density is given
    • have four equations (continuity and three momentum equations) to solve for pressure and velocity components

83

Summary

  • Equations of fluid dynamics express simple physical principles - Mass is conserved - Newton’s second law - First law of thermodynamics - Species mass balance
  • Result is a system of linked, nonlinear, partial-differential equations
  • All equations have similar form 84

Summary Continued

  • Similar form we can use only one general algorithm for all equations
  • Must also find way to include pressure for incompressible flows
  • General equation below modified for momentum to show pressure explicitly

" "

() ()

Transient Convective Diffusive Source

S x x x

u t

c i i i

ρφ ρ i ϕ ϕ ϕ + ϕ ∂

∂ Γ ∂

∂ ⎥= ⎦

⎤ ⎢ ⎣

⎡ ∂

∂

∂

∂