Docsity

Flow Dynamics, Lecture Notes- Physics 2, Study notes of Physics

Partial preview of the text

Download Flow Dynamics, Lecture Notes- Physics 2 and more Study notes Physics in PDF only on Docsity!

APPLICATIONS TO COUPLED SETS OF 1D & 2D

EQUATIONS OF MOTION

-^

space differencing in the presence of multiple characteristic directions

-^

conservation constraint – shock capturing

-^

boundary conditions

-^

outline

schema

for wing calculation using 2D Euler equations

We now extend our basic concepts to the real thing.

Consider the 1D Euler equations for

inviscid, compressible rotational flow:

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢ ⎣

ρ

ρ

ρ

⎤ ⎥ ⎥ ⎥⎦ ρ ⎡ ⎢ρ⎢ ⎢ ⎣ =

= ∂ ∂

∂ ∂

o (^2) uh

p u

u

F u e

U ; 0 F X

U t

(^

)^

(^

)^

⎞⎟ ⎠

⎛^ ⎜ ⎝

ρ −

−γ

ρ

=

⎞⎟ ⎠

⎛^ ⎜ ⎝

ρ=

2

o

2

v^

u 1 2 e 1 p , p e h ,

1 u 2 T c

e

This equation has three characteristic directions(both up- and down- stream information flow if theflow is sub-sonic) and is hyperbolic with respect totime; an initial value problem. We must considercarefully the space differencing; we can use either:^ (A)

use centred differences to permit the unrestricted flow of information but then controlthe stability problems

(B)

use upwind dif

ferences, having re-structured the flux into sub-vectors with associated

and known directions of propagation.

u + a

u

t

X

u-a

SPACE DIFFERENCING IN THE PRESENCE OF MULTIPLE CHARACTERISTICS

(There are ways of coding this which avoid needing to form the Jacobian matrix or thematrix vector multiplies.)

ΔX

i-

i+

n t

n+

X

Δt

ΔX

u+a

t

u-a

X

Δt

Thus the difference scheme becomes:

(^

) n

1 i

n

1 i

n i

1 n i^

F

F

X

t

U

U

−

(^

)^

(^

)

(^

) n

1 i

ni 1 2 i

ni

n

1 i 1 2 i

2

F F A F F A

1 X

−

−

+^

For stability we appeal to the initial value problemand the CFL condition:

a u

X

t^

F^ X

t

U

U

1 n

n i

1 n i

∂^ ∂

(ii)

IMPLICIT

We linearise the flux vector

(^

)^

U

A

F

U

U

F U

F

F

n n 1 n n 1

n^

(^

)^

[^

] 1

ni

1 ni

1 i

1 i

i^

F

F

X

t

U

U

X

At

U

Hence

−

−

+^

⎡^ ⎢ ⎣

This (as in the previous model equation studies) requires the inversion of a tridiagonalsystem of equations (each element of the tridiagonal matrix is itself a 3 x 3 matrix, but thisposes no particular difficulties).

ΔΔ

X

i

i-

i+

t

X

Δt

n+1 n

Thus, the flux vector may be written as

U

T

T

F

(^1) −

Λ

(^

)^

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢⎣

u p e

p u

u 2 ρ

ρ

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢ ⎣

−

a

u

O

a

u

O

u

⎤ ⎥ ⎥ ⎥⎦ ⎡ ⎢ ⎢ ⎢⎣

ρ u ρ e

We now have complete freedom to identify information flow with its direction.

For example,

we write

as the sum of positive right-running info and negative, left-running info.

Λ

⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣

− + − + + + + = Λ + Λ = Λ

−

2

a u a u

O

2

a u a u

O

2

u

u

⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣

− − − + − + − + 2

a u a u

O

2

a u a u

O

2

u u

t

X

t

X

We can now process the flux into right running and left running flux subvectors

−

−

=

⎞⎟ ⎠

⎛^ ⎜ ⎝

Λ

Λ

=^

−^

F

F U T

T F^

1

Even though the difference scheme chosen is an approximation, it is possible (and more-or-lessessential) to mimic exactly, at the discrete level, the conservation nature of the flow equations.For example, consider mass continuity^ Continuum:

∫

∫

ρ

=

ρ∂ (^) ∂

A d. u

dVOL t

u ρ

A d

Discrete model: I I 1

+1 …i… 1

|^

|^

I^ -1 I^2

2

Δ

X

OUT

IN

I I

FLUX

FLUX

X t

2 1

−

=

Δ Δ

ρ Δ

∑

THE CONSERVATION CONSTRAINT

11

If we are using centred differences then (forgetting the stability issue):

(^

)^

(^

X 2

u

u

t

i

1 i

i^

Δ

ρ −

ρ

ρΔ (^) Δ

−

We see that we can guarantee mass conservation provided we interpret and

code

the central

difference as:

(^

)^

(^

)

[^

1 I

1 I

I I^

1

1

(^21)

u

u

1 2

X t^

−^

ρ −

ρ

= Δ ρΔ Δ

∑

(^

)^

(^

)^

2 I

I^

1

1

u

u^

ρ −

ρ +^ (

)^

(^

)^

4 I

2 I^

1

1

u

u^

+^

ρ −

ρ

“Telescope” bycancelling equal andopposite terms

]

:^

:

:^

:

(^

)^

(^

[^

]^

(^

)^

(^

[^

] 1 I

I

I

1 I

I I^

2

2

1

1

2 1

u

u 1 2

u

u 1 2 X t^

−^

ρ + ρ − ρ + ρ = Δ

ρΔ Δ

∴

∑

FLUX IN

FLUX OUT

(^

)^

(^

)^

3 I

1 I^

1

1

u

u^

+^

ρ −

ρ +^ (

)^

(^

)^

(^

)^

(^

)

X

u

u

X

u

u

t

i 1 i i 1 i

i^

ρ

ρ

−

ρ

ρ

ρΔ (^) Δ

−

This conserved flux viewpoint will also guarantee

correct

SHOCK JUMPS

since the Rankine-Hugoniot jump relations

simply follow from exact conservation of mass, momentum andenergy across the shock from (1) and (2).^ The shock cannot appear without viscosity however, and in the discrete world this is providedimplicitly (by the truncation error) or explicity by added diffusion terms; this is called “SHOCKCAPTURING”.Since the shock entropy rise is and since this entropy jump is fixed by mass, momentum and energy conservation, largeviscosities give rise to thick shocks, and vice versa.

fluxes :

F

F

U t

X

12 i

12 i^

−^

Δ^ Δ

(^

)i

12 i

12 i^

F

F

F

where

SHOCK

(1)

(2)

(^

)[

]^

dX

u X

T

~ S

S u

2

(^21)

2

1

μ

ρ

∫

i.e.

Boundary conditions are a black art, but very important:

“NO BOUNDARY CONDITIONS

EQUALS NO AIRCRAFT”.

Certain insight does follow from the characteristics however:

BOUNDARY CONDITIONS^ In the initial value problem, all the INTERIOR POINTS (i = 2….I – 1)can be updated easily;for the time marching to continue we must fill the boundary stores

Δt

i=I

I=

…

t

u-a

u^

u+a

u^

u+a

u-a

INTERIORPOINTS

INFLOW

OUTFLOW

X

F X

U t

∂^ ∂

⎡ ⎢ρ⎢ ⎢ ⎣

ρ

u e

U

(^

)^

(^

).I

i U

and

1 i U

2D FINITE VOLUME Consider how we might design a numerical model for an aircraft wing. Sketched belowis a viable finite volume approach:

SCHEMA

ρ ⎡ ⎢ρ⎢ ρ⎢ ⎢ ⎣

u v e

U

U Y

F X

U t

∂^ ∂

Y, vρ

X, uρ

FINITE VOLUMEwith vector faceareas

stored here U

ij+

ij ij-

i+1j

i-1j

AYY

AYX

“Wrap around C-meshconforming to body”

The mass flux into the (ij)

th^

cell = AYY(

ρu

i-1j

ρ

u^ ij

)/2 - AYX(

ρv

i-1j

ρ

vij

)/

(^

) U L

fluxes

VOL

1

U t

:

Thus

=

∑

= ∂^ ∂

o

We select a “two step” L-W method to integrate the equations:

provisional final

If we substitute step 1 into step 2 we cansee why it is a L-W method:

(Roughly speaking, if L is a convection term then L

2

will be a diffusion term!) (^

)^

Step

U

L

U

U

n

n

*^

(^

)^

Step

U

L

U

U

n

1 n^

(^

)^

(^

)

(^

) n

n

n

1 n^

U L L U L U U

convection

L-W trick term!