<<

2. -FLOW EQUATIONS SPRING 2021

2.1 Introduction 2.2 Conservative differential equations 2.3 Non-conservative differential equations 2.4 Non-dimensionalisation Summary Examples

2.1 Introduction

Fluid dynamics is governed by conservation equations for: • mass; • momentum; • energy; • (for a non-homogenous fluid, any other constituents).

Equations for these can be expressed mathematically as: • (control-) equations; • differential equations.

This course focuses on the control-volume approach (the basis of the finite-volume method) because it relates naturally to physical quantities, is intrinsically conservative and is easier to apply in modern, unstructured-mesh CFD with complex geometries. However, the equivalent differential equations are easier to write down, manipulate and, in a few cases, solve analytically.

The aims of this section are: (i) to derive differential equations for fluid flow; (ii) to demonstrate equivalence of integral and differential forms; (iii) to show that, although there are many different physical V quantities, all satisfy a single generic equation: the scalar- transport or -diffusion equation:

TIME ADVECTIVE + DIFFUSIVE SOURCE ( ) + ( ) = ( ) (1) of amount in 푉 through boundary of 푉 in 푉

The finite-volume method is a natural discretisation of this.

CFD 2 – 1 David Apsley

2.2 Conservative Differential Equations

2.2.1 Mass Conservation (Continuity)

Mass is neither created nor destroyed, so: rate of change of mass in cell = net inward mass flux

With the more conventional flux direction (positive outward): time derivative of mass in cell + net outward mass flux = 0 d (2) (mass) + ∑ (mass flux) = 0 d푡 faces

For a cell volume 푉 and a typical face area 퐴: u mass of fluid in the cell: ρ푉 V un mass flux through one face: 퐶 = ρu • A A

t

z n A for mass conservation can be derived by w considering the small cartesian control volume shown left b y s e

x

If density and are averages over cell volume or cell face, respectively: d(ρ푉) + ⏟(ρ 푢퐴 ) − ( ρ 푢퐴 ) + ( ρ 푣퐴 ) − ( ρ푣퐴 ) + ( ρ푤퐴 ) − (ρ 푤퐴 ) = 0 ⏟d 푡 푒 푤 푛 푠 푡 푏 net outward mass flux time derivative of mass

Writing volume 푉 = Δ푥Δ푦Δ푧 and areas 퐴푤 = 퐴푒 = Δ푦Δ푧 etc: d(ρΔ푥Δ푦Δ푧) + [(ρ푢) − (ρ푢) ]Δ푦Δ푧 + [(ρ푣) − (ρ푣) ]Δ푧Δ푥 + [(ρ푤) − (ρ푤) ]Δ푥Δ푦 = 0 d푡 푒 푤 푛 푠 푡 푏 Dividing by the volume, 푥푦푧: dρ (ρ푢) − (ρ푢) (ρ푣) − (ρ푣) (ρ푤) − (ρ푤) + 푒 푤 + 푛 푠 + 푡 푏 = 0 d푡 Δ푥 Δ푦 Δ푧

dρ Δ(ρ푢) Δ(ρ푣) Δ(ρ푤) i.e. + + + = 0 d푡 Δ푥 Δ푦 Δ푧

Taking the as Δ푥, Δ푦, Δ푧 → 0: ∂ρ ∂(ρ푢) ∂(ρ푣) ∂(ρ푤) + + + = 0 (3) ∂푡 ∂푥 ∂푦 ∂푧

This analysis is analogous to the finite-volume procedure, but there the control volume does not shrink to a point (finite-volume, not -volume) and cells can be any shape.

CFD 2 – 2 David Apsley

(*** Advanced / optional ***) For an arbitrary volume 푉 with closed 휕푉:

d ∫ρ d푉 + ∮ ρu • dA = 0 (4) d푡 ⏟푉 ⏟∂ 푉 mass in cell net mass flux

For a fixed control volume, take d/d푡 under the integral sign and apply the theorem to turn the into a :

∂ρ ∫ { + ∇ • (ρu)} d푉 = 0 푉 ∂푡

Since 푉 is arbitrary, the integrand must be identically zero. Hence,

∂ρ + ∇ • (ρu) = 0 (5) ∂푡

Incompressible Flow

For , volume as well as mass is conserved, so that:

⏟(푢퐴 ) 푒 − ( 푢퐴 ) 푤 + ( 푣퐴 )푛 − ( 푣퐴 ) 푠 + (푤퐴 ) 푡 − (푤퐴 ) 푏 = 0 net outward VOLUME flux

Substituting for face areas, dividing by volume and proceeding to the limit as above produces ∂푢 ∂푣 ∂푤 + + = 0 (6) ∂푥 ∂푦 ∂푧 This is usually taken as the in incompressible flow.

2.2.2 Momentum

Newton’s Second Law: rate of change of momentum = force

time derivative of momentum in cell + net outward momentum flux = force

d (mass × u) + ∑ (mass flux × u) = F d푡 (7) faces For a cell volume 푉 and a typical face area 퐴: u momentum of fluid in the cell = mass  u = (ρ푉)u momentum flux through a face = mass flux × u = (ρu • A)u V un A Momentum and force are vectors, giving (in principle) 3 equations.

CFD 2 – 3 David Apsley

Fluid Forces

There are two main types: • surface forces (proportional to area; act on control-volume faces) • body forces (proportional to volume)

(i) Surface forces are usually expressed in terms of stress: force stress = or force = stress × area area The main surface forces are: • pressure 푝: acts to a surface; • viscous stresses τ: frictional forces arising from relative motion; y • reaction forces from boundaries.   For a simple shear flow there is only one non-zero stress component: ∂푢 τ ≡ τ = μ U 12 ∂푦 but, in general, τ푖푗 is a symmetric tensor with a more complex expression for its components. 1 In incompressible flow , 22 12 ∂푢푖 ∂푢푗 τ푖푗 = μ( + ) y 21 ∂푥푗 ∂푥푖 11 x 11  21 (ii) Body forces are often expressed as forces per unit volume, or force densities. 12 22 The main body forces are: z ● gravity: the force per unit volume is  g ρg = −ρ푔e푧

(For constant-density , pressure and weight can be combined as a piezometric pressure 푝∗ = 푝 + ρ푔푧; gravity then no longer appears explicitly in the flow equations.)

• centrifugal and Coriolis forces (apparent forces in a rotating reference frame): axis 2 R   R centrifugal force: 2  ρΩ R r

u Coriolis force: 2 −2ρΩ ∧ u 

In inertial frame In rotating frame

1 There is a slightly extended expression in compressible flow; see the recommended textbooks. 2 The symbol ˄ here means vector product; Ω is the angular velocity vector, its direction that of the rotation axis.

CFD 2 – 4 David Apsley

Because the centrifugal force can be written as the of some quantity (in this case, 1 ρΩ2푅2) it can, like gravity, be absorbed into a modified pressure; see the Examples. 2

t Differential Equation For Momentum z Consider a fixed cartesian control volume with sides Δ푥, Δ푦, Δ푧. w n Follow the same process as for mass conservation. y b s e For the 푥-component of momentum: x d (ρ푉푢) + ⏟(ρ 푢퐴 ) 푢 − (ρ 푢퐴 ) 푢 + ( ρ푣퐴 ) 푢 − ( ρ 푣퐴 ) 푢 + (ρ 푤퐴 ) 푢 − ( ρ 푤퐴 ) 푢 d⏟푡 푒 푒 푤 푤 푛 푛 푠 푠 푡 푡 푏 푏 net outward momentum flux time derivative of momentum = ⏟(푝 푤 퐴 푤 − 푝 푒퐴 푒 ) + viscous and other forces pressure force in 푥 direction

Substituting cell dimensions: d (ρΔ푥Δ푦Δ푧 푢) + [(ρ푢푢) − (ρ푢푢) ]Δ푦Δ푧 + [(ρ푣푢) − (ρ푣푢) ]Δ푧Δ푥 + [(ρ푤푢) − (ρ푤푢) ]Δ푥Δ푦 d푡 푒 푤 푛 푠 푡 푏 = (푝푤 − 푝푒)Δ푦Δ푧 + viscous and other forces

Dividing by volume Δ푥Δ푦Δ푧 (and changing the order of 푝푒 and 푝푤): d(ρ푢) (ρ푢푢) − (ρ푢푢) (ρ푣푢) − (ρ푣푢) (ρ푤푢) − (ρ푤푢) + 푒 푤 + 푛 푠 + 푡 푏 d푡 Δ푥 Δ푦 Δ푧

(푝 − 푝 ) = − 푒 푤 + viscous and other forces Δ푥 In the limit as Δ푥, Δ푦, Δ푧 → 0: ∂(ρ푢) ∂(ρ푢푢) ∂(ρ푣푢) ∂(ρ푤푢) ∂푝 + + + = − + μ∇2푢 + other forces (8) ∂푡 ∂푥 ∂푦 ∂푧 ∂푥

Notes. (1) The viscous term is given without proof (but see the optional notes below). ∂2 ∂2 ∂2 ∇2 is the Laplacian operator + + . ∂푥2 ∂푦2 ∂푧2 (2) The pressure force per unit volume in any direction is minus the pressure gradient in that direction. (3) The 푦 and 푧-momentum equations can be obtained by inspection / pattern-matching.

CFD 2 – 5 David Apsley

(*** Advanced / optional ***) With surface forces determined by stress tensor σ푖푗 and body forces determined by force density 푓푖, the control-volume equation for the 𝑖 component of momentum may be written d ∫ρ푢푖 d푉 + ∮ ρ푢푖푢푗 d퐴푗 = ∮ σ푖푗 d퐴푗 + ∫푓푖 d푉 d푡 ⏟푉 ⏟∂ 푉 ⏟∂ 푉 ⏟푉 (9) momentum in cell net momentum flux surface forces body forces For fixed 푉, take d/d푡 inside and apply the divergence theorem to surface integrals:

∂(ρ푢푖) ∂(ρ푢푖푢푗) ∂σ푖푗 ∫ { + − − 푓푖} d푉 = 0 푉 ∂푡 ∂푥푗 ∂푥푗 As 푉 is arbitrary, the integrand vanishes identically. Hence, for arbitrary forces:

∂(ρ푢푖) ∂(ρ푢푖푢푗) ∂σ푖푗 + = + 푓푖 (10) ∂푡 ∂푥푗 ∂푥푗 The stress tensor has pressure and viscous parts:

σ푖푗 = −푝δ푖푗 + τ푖푗 (11)

 ∂(ρ푢푖) ∂(ρ푢푖푢푗) ∂푝 ∂τ푖푗 + = − + + 푓푖 (12) ∂푡 ∂푥푗 ∂푥푖 ∂푥푗 For a Newtonian fluid, the viscous stress tensor (including compressible part) is given by

∂푢푖 ∂푢푗 2 ∂푢푘 τ푖푗 = μ( + − δ푖푗 ) ∂푥푗 ∂푥푖 3 ∂푥푘 If the fluid is incompressible and viscosity is uniform then the viscous term simplifies: ∂(ρ푢 푢 ) ∂(ρ푢푖) 푖 푗 ∂푝 2 + = − + μ∇ 푢푖 + 푓푖 ∂푡 ∂푥푗 ∂푥푖

CFD 2 – 6 David Apsley

2.2.3 General Scalar

A similar equation may be derived for any physical quantity that is advected and diffused in a fluid flow. Examples include salt, sediment and chemical pollutants. For each such quantity an equation is solved for the concentration (amount per unit mass of fluid) ϕ.

Diffusion causes net transport from regions of high concentration to regions of low concentration. For many scalars this rate of transport is proportional to area and concentration gradient and may be quantified by Fick’s diffusion law: rate of diffusion = −diffusivity × gradient × area ∂ϕ = −Γ 퐴 ∂푛 This is often referred to as gradient diffusion. An example is heat conduction. u For an arbitrary control volume: V un amount in cell: ρ푉ϕ (mass  concentration) A

advective flux: (ρu • A)ϕ (mass flux  concentration)

diffusive flux: ∂ϕ (– diffusivity  gradient  area) −Γ 퐴 ∂푛

source: 푆 = 푠푉 (source density  volume)

Balancing the time derivative of the amount in the cell, the net flux through the boundary and rate of production yields the general scalar-transport (or advection-diffusion) equation: time derivative + net outward flux = source

d ∂ϕ (mass × ϕ) + ∑ (mass flux × ϕ − Γ 퐴) = 푆 d푡 ∂푛 (13) faces

(Conservative) differential equation: ∂(ρϕ) ∂ ∂ϕ ∂ ∂ϕ ∂ ∂ϕ + (ρ푢ϕ − Γ ) + (ρ푣ϕ − Γ ) + (ρ푤ϕ − Γ ) = 푠 (14) ∂푡 ∂푥 ∂푥 ∂푦 ∂푦 ∂푧 ∂푧

(*** Advanced / optional ***) The integral equation may be expressed more mathematically as: d ∫ρϕ d푉 + ∮ (ρuϕ − Γ∇ϕ) • dA = ∫푠 d푉 (15) d푡 푉 ∂푉 푉 For a fixed control volume, taking the time derivative under the integral sign and using the divergence theorem gives a corresponding conservative differential equation: ∂(ρϕ) + ∇ • (ρuϕ − Γ∇ϕ) = 푠 (16) ∂푡

CFD 2 – 7 David Apsley

2.2.4 Momentum Components as Transported Scalars

In the momentum equation, if the viscous force τ퐴 = μ(∂푢/ ∂푛)퐴 is transferred to the LHS it looks like a diffusive flux. For example, for the 푥-component: d ∂푢 (mass × 푢) + ∑ (mass flux × 푢 − μ 퐴) = other forces d푡 ∂푛 faces Compare this with the generic scalar-transport equation: d ∂ϕ (mass × ϕ) + ∑ (mass flux × ϕ − Γ 퐴) = 푆 d푡 ∂푛 faces Each component of momentum satisfies its own scalar-transport equation, with concentration, ϕ  velocity component (푢, 푣 or 푤) diffusivity, Γ  viscosity μ source, 푆  other forces

Consequently, only one generic scalar-transport equation need be considered.

In Section 5 we shall see, however, that the momentum components differ from passive scalars (those not affecting the flow), because: • equations are nonlinear (mass flux involves the velocity component being solved for); • equations are coupled (mass flux involves the other velocity components as well); • the velocity field must also be mass-consistent.

2.2.5 Non-Gradient Diffusion

The analysis above assumes that all non-advective flux is simple gradient diffusion: ∂ϕ −Γ 퐴 ∂푛 Actually, the real situation is more complex. For example, in the 푢-momentum equation the full expression for the 1-component of viscous stress through the 2-face is ∂푢 ∂푣 τ = μ ( + ) 12 ∂푦 ∂푥 The 휕푢/휕푦 part is gradient diffusion of 푢, but the 휕푣/휕푥 term is not. In general, non-advective 퐹′ that can’t be represented by gradient diffusion are discretised conservatively (i.e. worked out for cell faces, not particular cells), then transferred to the RHS as a source term: d ∂ϕ (mass × ϕ) + ∑ [mass flux × ϕ − μ 퐴 + 퐹′] = 푆 d푡 ∂푛 faces

2.2.6 Moving Control

Control-volume equations are also applicable to moving control volumes, provided the normal velocity component in the mass flux is that relative to the mesh; i.e.

푢푛 = (u − umesh) • n

CFD 2 – 8 David Apsley

2.3 Non-Conservative Differential Equations

Conservative differential equations are so-called because they can be integrated directly to give an equivalent integral form involving the net change in a flux, with the flux leaving one cell equal to that entering an adjacent cell. To do so, all terms involving of dependent variables must have differential operators “on the outside”. In one dimension:

푥2 d푓 = 푔(푥) 푓(푥2) − 푓(푥1) = ∫ 푔(푥) d푥 d푥 푥1 () (integral form)

fluxout − fluxin = source

(*** Advanced / optional ***) The three-dimensional version uses partial derivatives and the divergence theorem to change the differentials to surface flux integrals.

As an example of how the same equation can appear in conservative and non-conservative forms, consider a simple 1-d example: d (푦2) = 푔(푥) (conservative form – can be integrated directly) d푥 d푦 2푦 = 푔(푥) (non-conservative form, obtained by applying the ) d푥

Material Derivatives

The time rate of change of some property in a fluid element moving with the flow is called the material (or substantive) derivative. It is denoted by Dϕ/D푡 and defined below.

Every field variable ϕ is a function of both time and position; i.e. ϕ = ϕ(푡, 푥, 푦, 푧)

As one follows a path through space, ϕ changes with time because: (x(t), y(t), z(t)) • ϕ changes with time 푡 at each point; and • ϕ changes with position (푥, 푦, 푧) as one moves along the path.

Thus, the total time derivative following an arbitrary path (푥(푡), 푦(푡), 푧(푡)) is dϕ ∂ϕ ∂ϕ d푥 ∂ϕ d푦 ∂ϕ d푧 = + + + d푡 ∂푡 ∂푥 d푡 ∂푦 d푡 ∂푧 d푡

The material derivative is the time derivative along the particular path following the flow (d푥/d푡 = 푢, etc.): Dϕ ∂ϕ ∂ϕ ∂ϕ ∂ϕ D ∂ ∂ ∂ ∂ ≡ + 푢 + 푣 + 푤 or ≡ + 푢 + 푣 + 푤 (17) D푡 ∂푡 ∂푥 ∂푦 ∂푧 D푡 ∂푡 ∂푥 ∂푦 ∂푧

In particular, the material derivative of velocity (D푢/D푡) is the acceleration (Hydraulics 1).

CFD 2 – 9 David Apsley

For general scalar ϕ, the sum of time-dependent and advection terms (total rate of change) is ∂(ρϕ) ∂(ρ푢ϕ) ∂(ρ푣ϕ) ∂(ρ푤ϕ) + + + ∂푡 ∂푥 ∂푦 ∂푧 ∂ρ ∂ϕ ∂(ρ푢) ∂ϕ ∂(ρ푣) ∂ϕ ∂(ρ푤) ∂ϕ = [ ϕ + ρ ] + [ ϕ + ρ푢 ] + [ ϕ + ρ푣 ] + [ ϕ + ρ푤 ] ∂푡 ∂푡 ∂푥 ∂푥 ∂푦 ∂푦 ∂푧 ∂푧 (by the ) ∂ρ ∂(ρ푢) ∂(ρ푣) ∂(ρ푤) ∂ϕ ∂ϕ ∂ϕ ∂ϕ = [ + + + ] ϕ + ρ [ + 푢 + 푣 + 푤 ] ⏟∂ 푡 ∂ 푥 ∂ 푦 ∂ 푧 ⏟∂ 푡 ∂ 푥 ∂푦 ∂ 푧 =0 by continuity =Dϕ/D푡 by definition

Dϕ = ρ (18) D푡

Using the material derivative, a scalar-transport equation can thus be written in a much more compact, but non-conservative, form. In particular, the momentum equation becomes D푢 ∂푝 ρ = − + μ∇2푢 + other forces ⏟ D 푡 ∂푥 (19) mass×acceleration

This form is much simpler to write and is used both for convenience and to derive theoretical results in special cases (see the Examples). However, in the finite-volume method it is the longer, conservative form which is actually discretised.

(*** Advanced / optional ***)

The derivation of (18) above is greatly simplified by use of the summation convention:

∂(ρϕ) ∂(ρ푢푖ϕ) ∂ρ ∂ϕ ∂(ρ푢푖) ∂ϕ + = [ ϕ + ρ ] + [ ϕ + ρ푢푖 ] ∂푡 ∂푥ι ∂푡 ∂푡 ∂푥푖 ∂푥푖 ∂ρ ∂(ρ푢푖) ∂ϕ ∂ϕ = [ + ] ϕ + ρ [ + 푢푖 ] ⏟∂ 푡 ∂ 푥 푖 ⏟∂ 푡 ∂ 푥 푖 Dϕ =0 by continuity = by definition D푡 Dϕ = ρ D푡

Alternatively, conservative differential equations may derived from fixed control volumes (Eulerian approach) and their non-conservative counterparts from control volumes moving with the flow (Lagrangian approach).

CFD 2 – 10 David Apsley

2.4 Non-Dimensionalisation

Although it is possible to work entirely in dimensional quantities, there are good theoretical reasons for working in non-dimensional variables. These include the following.

• All dynamically-similar problems (same Re, Fr etc.) can be solved with a single computation. • The number of relevant parameters (and hence the number of graphs needed to report results) is reduced. • It indicates the relative size of different terms in the governing equations and, in particular, which might conveniently be neglected. • Computational variables are of a similar order of magnitude (ideally, of order unity), yielding better numerical accuracy.

2.4.1 Non-Dimensionalising the Governing Equations

For incompressible flow the governing equations are: ∂푢 ∂푣 ∂푤 continuity: + + = 0 (20) ∂푥 ∂푦 ∂푧

D푢 ∂푝 momentum: ρ = − + μ∇2푢 (21) D푡 ∂푥 (and similar in 푦, 푧 directions)

Adopting reference scales 푈0, 퐿0 and ρ0 for velocity, length and density, respectively, and 2 derived scales 퐿0/푈0 for time and ρ0푈0 for pressure, each fluid quantity can be written as a product of a dimensional scale and a non-dimensional variable (indicated by a *):

∗ 퐿0 ∗ ∗ ∗ 2 ∗ x = 퐿0x , 푡 = 푡 , u = 푈0u , ρ = ρ0ρ , 푝 = 푝ref + (ρ0푈0 )푝 , etc. 푈0 Substituting into mass and momentum equations (20) and (21) yields, after simplification: ∂푢∗ ∂푣∗ ∂푤∗ + + = 0 (22) ∂푥∗ ∂푦∗ ∂푧∗

∗ ∗ D푢 ∂푝 1 ρ0푈0퐿0 ρ∗ = − + ∇∗2푢∗ where Re = (23) D푡∗ ∂푥∗ Re μ

From this, it is seen that the key dimensionless group is the Reynolds number Re. If Re is large then viscous forces would be expected to be negligible in much of the flow.

Having derived the non-dimensional equations it is usual to drop the asterisks and simply declare that you are “working in non-dimensional variables”.

CFD 2 – 11 David Apsley

Note. • The objective is that non-dimensional quantities (e.g. 푝∗) should be O(1) in magnitude unity, so the scale for a quantity should reflect its range of values, not necessarily its absolute value. In incompressible (but not compressible) flow it is differences in pressure that are important, not absolute values. Since flow-induced pressures are usually much smaller than the absolute pressure, one usually works with departures 2 from a constant reference pressure 푝ref and use ρ0푈0 as a scale magnitude; Hence, we 2 ∗ non-dimensionalise as: 푝 = 푝ref + (ρ0푈0 )푝 .

• Similarly, in Section 3 when we look at small changes in density due to temperature or salinity that give rise to forces we shall use an alternative non- dimensionalisation: ∗ ρ = ρ0 ± Δρ θ (24) with Δρ the overall size of density variation and θ∗ typically varying between 0 and 1.

2.4.2 Common Dimensionless Groups

If other fluid forces are included then each introduces another non-dimensional group. For example, gravitational forces lead to a Froude number (Fr) and Coriolis forces to a Rossby number (Ro). Some of the most important dimensionless groups are given below. 푈 and 퐿 are representative velocity and length scales, respectively.

ρ푈퐿 푈퐿 Re ≡ ≡ Reynolds number (viscous flow; μ = dynamic viscosity) μ ν

푈 Fr ≡ Froude number (open-channel flow; g = gravity) √푔퐿

푈 Ma ≡ Mach number (compressible flow; 푐 = speed of sound) 푐 푈 Ro ≡ Rossby number (rotating flows; Ω = angular velocity of frame) Ω퐿 ρ푈2퐿 We ≡ Weber number (interfacial flows; σ = surface tension) σ

Note. For flows with buoyancy forces caused by a change in density, rather than open-channel flows, we sometimes use a densimetric Froude number instead; this is defined by 푈 Fr ≡ √(Δρ/ρ)푔퐿 Here, 푔 is replaced in the usual formula for Froude number by (Δρ/ρ)푔, sometimes called the reduced gravity 푔′: see Section 3.

CFD 2 – 12 David Apsley

Summary

is governed by conservation equations for mass, momentum, energy (and, for a non-homogeneous fluid, the amount of individual constituents).

• The governing equations can be written in equivalent integral (control-volume) or differential forms.

• The finite-volume method is a direct discretisation of the control-volume equations.

• Differential forms of the flow equations may be conservative (i.e. can be integrated directly to something of the form “fluxout – fluxin = source”) or non-conservative.

• For any conserved quantity and arbitrary control volume: time derivative + net outward flux = source

• There are really just two canonical equations to discretise and solve: mass conservation (continuity): d (mass) + ∑ (mass flux) = 0 d푡 faces scalar-transport (or advection-diffusion) equation: d ∂ϕ (mass × ϕ) + ∑ ( mass flux × ϕ − Γ 퐴 ) = 푆 d푡 ∂푛 faces time derivative advection diffusion source

• Each momentum component satisfies its own scalar-transport equation. The concentration ϕ is the velocity component (푢, 푣, 푤), the diffusivity Γ is the dynamic viscosity μ, and the source is non-viscous forces. However, these equations differ from those for a passive scalar because they are non-linear, coupled through the advective fluxes and pressure forces, and the velocity field is also required to be mass-consistent.

• Non-dimensionalising the governing equations allows dynamically-similar flows (those with the same values of Reynolds number, etc.) to be solved with a single calculation, reduces the overall number of parameters, indicates whether certain terms in the governing equations are significant or negligible and ensures that the main computational variables are of similar magnitude.

CFD 2 – 13 David Apsley

Examples

Q1. In 2-d flow, the continuity and x-momentum equations can be written in conservative form as ∂ρ ∂ ∂ + (ρ푢) + (ρ푣) = 0 ∂푡 ∂푥 ∂푦 ∂ ∂ ∂ ∂푝 (ρ푢) + (ρ푢푢) + (ρ푣푢) = − + μ∇2푢 ∂푡 ∂푥 ∂푦 ∂푥 respectively.

(a) Show that these can be written in the equivalent non-conservative forms: Dρ ∂푢 ∂푣 + ρ( + ) = 0 D푡 ∂푥 ∂푦 D푢 ∂푝 ρ = − + μ∇2푢 D푡 ∂푥 where the (2-d) material derivative is given by 퐷/퐷푡 = 휕/휕푡 + 푢휕/휕푥 + 푣휕/푦.

(b) Define carefully what is meant by the statement that a flow is incompressible. To what does the continuity equation reduce in incompressible flow?

(c) Write down conservative forms of the 3-d equations for mass and 푥-momentum.

(d) Write down the 푧-momentum equation, including the gravitational force.

(e) Show that, for constant-density flows, pressure and gravity forces can be combined in the momentum equations via the piezometric pressure 푝 + ρ푔푧.

(f) In a rotating reference frame there are additional apparent forces (per unit volume): centrifugal force: ρΩ2R Coriolis force: −2ρΩ ∧ u where Ω is the angular velocity of the reference frame, u is the axis 2 fluid velocity in that frame, r is the position vector (relative to a R   R point on the axis of rotation) and R is its projection perpendicular to the axis of rotation. ( denotes a vector product.)  r By writing the centrifugal force as the gradient of some quantity show that it can be subsumed into a modified pressure. Also, find the components of the Coriolis force if rotation is about the 푧 axis.

(*** Advanced / Optional ***) (g) Write the conservative mass and momentum equations in vector notation.

(h) Write the conservative mass and momentum equations in suffix notation using the summation convention.

CFD 2 – 14 David Apsley

Q2. (Exact solutions of the Navier-Stokes equation) The x-component of the momentum equation is given by D푢 ∂푝 ρ = − + μ∇2푢 D푡 ∂푥 Using this equation, derive the velocity profile in fully-developed, laminar flow for: (a) pressure-driven flow between stationary parallel planes (“Plane Poiseuille flow”); (b) constant-pressure flow between stationary and moving planes (“Couette flow”).

Assume flow in the 푥 direction, with bounding planes 푦 = 0 and 푦 = ℎ. The velocity is then (푢(푦),0,0). In part (a) both y u(y) h walls are stationary. In part (b) the upper wall slides parallel to the lower wall with velocity 푈푤. x

(c) (*** Advanced / optional ***) In cylindrical polars (푥, 푟, 휙) the Laplacian ∇2 is more complicated. If axisymmetric, with fully-developed velocity (푢(푟),0,0), then 1 ∂ ∂푢 ∇2푢 → (푟 ) 푟 ∂푟 ∂푟 Derive the velocity profile in a circular pipe with stationary wall at 푟 = 푅 (“Poiseuille flow”).

Q3. (*** Advanced / optional ***) By applying the divergence theorem, deduce the conservative and non-conservative differential equations corresponding to the general integral scalar-transport equation d ∫ρϕ d푉 + ∮ (ρuϕ − Γ∇ϕ) • dA = ∫푠 d푉 d푡 푉 ∂푉 푉

Q4. In each of the following cases, state which of (i), (ii), (iii) is a valid dimensionless number. Carry out research to find the name and physical significance of these numbers. (퐿 = length; 푈 = velocity; 푧 = height; 푝 = pressure; ρ = density; μ = dynamic viscosity; ν = kinematic viscosity; 푔 = gravitational acceleration; Ω = angular velocity).

푝 − 푝 푝 − 푝ref ref 2 (a) (i) (ii) 1 2 (iii) ρ푈 (푝 − 푝푟푒푓) ρ푈 2ρ푈 ρ푈퐿 ρ푈퐿 (b) (i) (ii) (iii) μ푈퐿 ν μ

푔 dρ 1/2 (− ) ρ d푧 푈 푝 − 푝푟푒푓 (c) (i) (ii) (iii) d푢 푔퐿 ρ푔 | | d푧 푈Ω ρ푔퐿 푈 (d) (i) (ii) (iii) 퐿 푈Ω Ω퐿

CFD 2 – 15 David Apsley

Q5. The momentum equation for a viscous fluid in a rotating reference frame is Du ρ = −∇푝 + μ∇2u − 2ρΩ ∧ u (*) Dt where ρ is density, u = (푢, 푣, 푤) is velocity, 푝 is pressure, μ is dynamic viscosity and Ω is the angular-velocity vector of the reference frame. The symbol  denotes a vector product.

(a) If Ω = (0,0, Ω) write down the 푥 and 푦 components of the Coriolis force (−2ρΩ ∧ u).

(b) Hence write down the 푥- and 푦-components of equation (*).

(c) Show how equation (*) can be written in non-dimensional form in terms of a Reynolds number Re and Rossby number Ro (both of which should be defined).

(d) Define the terms conservative and non-conservative when applied to the differential equations describing fluid flow.

(e) Define (mathematically) the material derivative operator D/D푡. Then, noting that the continuity equation can be written ∂ρ ∂(ρ푢) ∂(ρ푣) ∂(ρ푤) + + + = 0 ∂푡 ∂푥 ∂푦 ∂푧 show that the 푥-momentum equation can be written in an equivalent conservative form.

(f) If the 푥-momentum equation were to be regarded as a special case of the general scalar- transport (or advection-diffusion) equation, identify the quantities representing: (i) concentration; (ii) diffusivity; (iii) source.

(g) Explain why the three equations for the components of momentum cannot be treated as independent scalar equations.

Q6. (a) In a rotating reference frame (with angular velocity vector Ω) the non-viscous forces on a fluid are, per unit volume, −∇푝 + ρg + ρΩ2R − 2ρΩ ∧ u

(I) (II) (III) (IV) where 푝 is pressure, g = (0,0, −푔) is the gravity vector and R is the vector from the closest point on the axis of rotation to a point. Show that, in a constant-density fluid, force densities (I), (II) and (III) can be combined in terms of a modified pressure.

(b) Consider a closed cylindrical can of radius 5 cm and depth 15 cm. The can is completely filled with fluid of density 1100 kg m–3 and is rotating steadily about its axis (which is vertical) at 600 rpm. Where do the maximum and minimum pressures in the can occur, and what is the difference in pressure between them?

CFD 2 – 16 David Apsley