Docsity

Numerical Methods for Incompressible Flow Lecture Notes, Lecture notes of Fluid Mechanics

Partial preview of the text

Download Numerical Methods for Incompressible Flow Lecture Notes and more Lecture notes Fluid Mechanics in PDF only on Docsity!

Lecture Notes

Numerical Methods for Incompressible Flow

Martin Burger

Based on Lecture Notes by Ren´e Pinnau, TU Darmstadt

Contents

1 Introduction 6

1 Introduction

The simulation of complex, dynamic processes that appear in nature or in industrial applications poses a lot of challenging mathematical problems, opening a long road from the basic problem, to the mathematical modelling, the numerical simulation, and finally to the interpretation of results. In order to achieve this goals, interdisciplinarity between applied mathematicians and experts in other fields becomes of increasing importance, since mathematical knowledge alone does not suffice in order to obtain a solution, but understanding the physics of the process is required as well.

This class is dealing with one specific and very important class of such processes, namely Computational Fluid Dynamics (usually abbreviated CFD), with a par- ticular focus on incompressible flows.

1.1 Mathematical Modelling

In general, the cycle of (mathematical) modelling consists of the following steps:

Problem Description (^) Formulation

Mathematical

Discretization

Numerical Interpretation Solution

Visualization

We will detail these steps corresponding to the design of a gas turbine combustion chamber in the following.

1.2 The Gas Turbine Combustion Chamber 7

1.2 The Gas Turbine Combustion Chamber

If one wants to compute the flow in a gas turbine combustion chamber , one has to decide on a specific aspect one is interested in first, since the general requirements vary too much. In this case, experiments are very expensive, and due to high pressures ( p > 35 bar) and high temperatures ( T > 1700 K) it is questionable whether results of model experiments can be applied in practical situations. On the other hand, the time span needed for product development is strongly decreasing, and hence, CFD is of increasing importance for the design with respect to aerodynamic and combustion aspects.

Obviously, the starting point of the modelling cycle is the most difficult one for a math- ematician, and input by experts in other disciplines is of high importance. However, some questions arise immediately, in particular the following fundamental one:

Which physical and chemical effects are relevant in the process?

Here are some possible answers:

  • Flow of air and the burning material
  • Combustion of the burning material
  • Radiation of the flame

2 Derivation of models 9

If the results differ significantly from real situations, the model and/ or the numer- ical methods have to be refined and the cycle of mathematical modelling has to be restarted.

Finally, we mention an aspect that will not be treated in this course, namely software engineering, which deals with the details of implementation, like the parallelization of algorithms, the distribution of computational load to different processors, and the management of disk space. These aspects are usually determined by the specific com- puter architecture.

2 Derivation of models

In this chapter, we shall sketch the derivation of fundamental models of fluid dynamics. In general, we shall model a flow as a physical continuum of masses, i.e., objects in euclidean space represented by the set of their point masses. The derivation of the equations is based on some fundamental principles:

Assumptions:

â For all times t > 0 , there exists a well-defined mass density %(x, t) , such that the total mass m(Ω, t) in the domain Ω at time t is given by

m(Ω, t) =

Ω

%(x, t) dV

â Mass is neither produced nor disappears.

â The change of the momentum of a fluid region is equal to the applied forces (Newton’s second law).

â Energy is neither produced nor disappears.

Remark 2.1. In the language of physics, our assumptions are the hypothesis of con- tinumm, conservation of mass, conservation of momentum, and conservation of en- ergy.

Let Ω ⊂ Rd, d = 2, 3 the region occupied by the fluid, and let x ∈ Ω. We now consider a fluid particle X , moving through x at time t. Usually, x are called Eulerian coordinates for the description of the continuum of masses, and X are called Lagrangian or material coordinates.

Now let W 0 ⊂ Ω be a subset at the initial time t = 0. The function φ : W ×R+^ → R^3 describes the change of the particle position

Wt def = {φ(X, t) : X ∈ W 0 } = φ(W 0 , t).

2 Derivation of models 10

X x

Phi(X,t)

Omega 0

Omega t

For the description of the flow, the following two notions are usefull:

Definition 2.2.

â The trace is the set of points x(X 0 , t) , that the particle X 0 covers at different times t.

â The stream line is the curve, whose tangent points in the direction of the actual velocity vector.

Remark 2.3. trace and stream line are equal for stationary flows.

We shall denote the velocity of a particle by u(x, t). For fixed time t , u(x, t) is a vector field on Ω. Then,

x : R+^ → R^3 t → φ(X, t)

is the trajectory of the particle, and the velocity is given by

u(x, t) =

∂φ ∂t

(X, t), with x = φ(X, t).

 x u

2.1 Conservation of Mass 12

The flow of volume through ∂W per unit area is given by u · n and the corresponding flow of mass by %u · n. Hence, the total flow of mass through ∂W is ∫

∂W

% u · n dA

The principle of mass conservation implies:

The change of mass in W equals the flow of mass over the boundary ∂W into W ,

respectively in mathematical terms:

d dt

W

% dV = −

∂W

% u · n dA

Using Gauss’ Theorem we can rewrite this identity as

∫

W

∂t

  • div(%u)

dV = 0

and since this identity holds for any subdomain W , we may conclude the differential version of the continuity relation

∂% ∂t

  • div(%u) = 0

2.1.1 The Transport Theorem

Starting with the function φ one can rephrase the conservation of mass as follows: ∫

Wt

%(x, t) dV =

W 0

%(X, 0) dV

Since the right-hand side is independent of the time t , this yields

d dt

Wt

%(x, t) dV = 0

Since the domain of integration depends on time now, we cannot simply exchange differentiation and integration. In order to compute the derivative of an integral with a time-dependent domain we need the following result:

2.1 Conservation of Mass 13

Theorem 2.5. Let F be sufficiently smooth. Then,

d dt

Wt

F (x, t) dV =

Wt

DF

Dt

  • F div u dV

Wt

∂F

∂t

  • div(F · u) dV

Remark 2.6. The above result is the generalization to higher dimensions of the for- mula for the derivative of a one-dimensional integral with parameter-dependent inte- grand and interval of integration.

The proof will be carried out in the exercises, using the following lemma:

Lemma 2.7. Let J(X, t) := det

( (^) ∂φ ∂X (X, t)

. Then,

∂ ∂t

J(X, t) = divx u(x, t) · J(X, t)

with x = φ(X, t).

Using Theorem 2.5 we obtain

d dt

Wt

%(x, t) dV

Wt

∂t

  • div(%u) dV

and since this relation holds for arbitrary W 0 ⊂ Ω , we obtain the differential version of the continuity equation.

Remark 2.8. In general, it depends on the regularity of solutions, whether one uses the differential or integral version of the conservation of mass. We shall assume in the following that the solutions are sufficiently smooth, such that all manipulations above are justified.

A consequence of the conservation of mass is the following theorem, sometimes called Reynold’s transport theorem:

Theorem 2.9. Let F = F (x, t) be a regular function. Then,

d dt

Wt

%F dV =

Wt

DF

Dt

dV

Fluids that leave the volume of moving subdomains constant in time, are of particular importance:

2.2 Conservation of Momentum 15

with the (line) divergence (div τ )i def =

∑^3

j=

∂τji ∂xj

The transport theorem implies

Wt

Du Dt

− %f − div τ

dV = 0

respectively in differential form

Du Dt

= %f + div τ,

i.e., D Dt

(%u) + %u div u = %f + div τ.

This relation can also be rewritten in conservation form as

∂ ∂t

(%ui) + div(%uiu) = %fi + (div τ )i , i = 1, 2 , 3

2.2.1 The Stress Tensor

In this section we shall further specify the stress tensor. For this sake we need the following

Assumptions:

â τ = −pI + σ, p ∈ R, I ∈ R^3 ×^3 , σ ∈ R^3 ×^3

â σ depends linearly on ∇u.

â σ is invariant with respect to translation and rotation

â σ ist symmetric

Remark 2.12. The first two assumptions imply spherical symmetry of the stress ten- sor for resting fluids. As a consequence, the pressure p always acts in direction of the unit normal. The last assumption is a conclusion of the conservation of rotational momentum, which we have not considered so far.

2.3 Energy Balance 16

From these assumptions one can conclude that σ is of the form

σ = λ(div u)I + 2μD

where λ (volume viscosity) und μ (shear viscosity) are the viscosity coefficients (or Lam´e coefficients), and D = (Dij ) ∈ R^3 ×^3 denotes the deformation tensor

Dij = (^12)

∂ui ∂xj

∂uj ∂xi

which can be rewritten as D = 12 (∇v + (∇v)T^ )

Remark 2.13. μd = λ + 23 μ is called pressure viscosity.

Finally, this gives the conservation of momentum as

Du Dt

= %f − ∇p + (λ + μ)∇(div u) + μ∆u

2.3 Energy Balance

Up to now we have derived 4 equations (one for mass balance and one for conservation of momentum) for 5 unknowns %, u , and p. In order to obtain a closed system, we need a further equation, which will be a consequence of the conservation of energy.

Let E denote the total energy, composed of kinetic and internal energy, i.e.,

E =

Wt

|u|^2 2

dV ︸ ︷︷ ︸ kinetic energy

Wt

%e dV ︸ ︷︷ ︸ internal energy

where e denotes the internal energy per unit of mass. The fundamental principle governing the energy balance is

”Change of energy” = ”work performed by exterior forces + heat supply”

In an analogous way to the conservation of momentum

d dt

Wt

(|u| 2 2

  • e

dV =

Wt

%f · u dV ︸ ︷︷ ︸ work performed by vol- ume forces

∂Wt

h dA ︸ ︷︷ ︸ heat supply over the boundary

∂Wt

n · τ · u dA ︸ ︷︷ ︸ work performed by sur- face forces

2.5 Summary of Equations 18

Further conditions are obtained from equilibrium thermodynamics, if we assume that we deal with an ideal gas and :

â An ideal gas satisfies p = R%T , where R is the gas constant

â The assumption that the specific heat should be constant if the volume is con- stant leads to cv = (^) dTde , and thus,

e = cvT + const.

The above relations suffice to obtain a closed system. Depending on the specific application, different closure relations can appear, e.g. constant density or negligeable friction. Such constitutive relations have been obtained in different ways, some of them from simple axioms as above, others by fitting material laws to experimental results. In only few cases, the constitutive relations can be obtained rigorously from microscopic properties.

2.5 Summary of Equations

In the following, we sum up the equations derived in the previous sections:

â Conservation of mass:

D%

Dt

  • % div u = 0

â Conservation of momentum: %

Du Dt

= %f − ∇p + (λ + μ)∇(div u) + μ∆u

â Conservation of energy: %

D

Dt

|u|^2 2

  • e

= %f u − div(q − τ u)

supplied by the constitutive relations

â Fourier’s law: q = −κ∇T

â Ideal gas law: p = R%T

â ”Change of internal energy proportional to heat supply”: e = cV T

â Incompressible media:

D%

Dt

â Fluids without friction: σ ≡ 0 bzw. λ = μ = 0

2.6 Exercises 19

2.6 Exercises

Exercise 2.1. Let u be a vector field and f a scalar function. Proof the following formulae of nabla calculus:

  • div(f u) = u · ∇f + f div u ,
  • div(rot u) = 0 ,
  • rot (∇f ) = 0 ,
  • rot (rot u) = ∇(div u) − ∆u.

Exercise 2.2. Show using Gauss’ Theorem

  • the first Green’s formula ∫

Ω

u ∆v dx = −

Ω

∇u · ∇v dx +

∂Ω

u(∇v · n) ds,

  • the second Green’s formula ∫

Ω

u ∆v dx =

Ω

∆u v dx +

∂Ω

u(∇v · n) − v(∇u · n) ds

Exercise 2.3. Let a fluid cover a domain D ⊂ R^3 , let Φ(x, t) ∈ R^3 the trajectory of a fluid particle x at time t = 0 , and let u(x, t) ∈ R^3 be the velocity of the fluid. Then, ∂tΦ(x, t) = u(Φ(x, t), t).

Let W 0 be a subdomain of D and let Wt, t ≥ 0 be the domain

Wt = {Φ(x, t) ∈ R^3 |x ∈ W 0 }

Show that:

  • With J(x, t) = |det∇Φ(x, t)| , the relation

Jt(x, t) = (div u(Φ(x, t), t)) · J(x, t)

holds.

  • If div u = 0 it follows that

d dt

Wt

f (x, t)dx =

Wt

[∂tf + u · ∇xf ](x, t)dx