Professional Documents
Culture Documents
them, lets look at what weve learned so far: Method 2-D panel Vortex lattice Assumptions/Flow type 2-D, Incompressible, Irrotational Inviscid 3-D, Incompressible, Irrotational Inviscid, Small disturbance 3-D, Subsonic compressible, Irrotational, Inviscid, Small disturbance
Euler CFD
The only major effect missing after this week will be viscous-related effects. 2-D Euler Equations in Integral Form Consider an arbitrary area (i.e. a fixed control volume) through which flows a compressible inviscid flow: v n y
x
c
dS
C
v n outward pointing normal (unit length) dS elemental (differential) surface length
v n dS
v v v n dS = dyi dxj
dy
dS
dx Note: Path around surface is taken so that interior of control volume is on left.
Mass in C = dA
C
d dA dt C
v u = velocity vector
d v v dA + u n dS = 0 C C dt
Conservation of x-momentum Recall that: total rate of change momentum = forces For x-momentum this gives: rate of change of rate of x momflow x momentum in C + = Forces in x-direction out of C d v v udA + uu n dS = Forces in x-direction C C dt Now, looking closer at x-forces, for an inviscid compressible flow we only have pressure (ignoring gravity). Normal to surface Recall pressure acts normal to the surface
v pn dS
dS
Into surface
v v Force s in x = pn i dS
C
Gives x-direction
16.100 2002
d v v v v udA + u u n dS = p n i dS dt C C C
Conservation of Energy Recalling your thermodynamics: total rate of change work done on heat added + = of energy in C fluid in C to C For the Euler equations, we ignore the possibility of heat addition. total rate of change rate of change of rate of energy + = of energy in C flow out of C energy in C The total energy of the fluid is: 1 E = e + (u 2 + v 2 ) 2 Total energy Internal energy Kinetic energy
Note:
Static temperature So, total rate of change d v v of energy in C = dt EdA + Eu n dS C C The work done on the fluid is through pressure forces and is equal to the pressure forces multiplied by (i.e. acting in) the velocity direction: v v (work ) = ( pn ) udS
C
Pressure force
16.100 2002
d v v v v EdA + Eu n dS = pn u dS dt C C C
d v v v v EdA + Eu n dS = pn ndS dt C C C These are often written very compactly as: v v v d ( UdA + F i + G j ) n ds = 0 sc dt c u U v E
Conservative state vector
u 2 u + F uv uH p v vu G 2 v + vH p
H total enthalpy E + p
1 Ideal gas: p = RT = ( 1) E (u 2 + v 2 ) 2 A Finite Volume Scheme for the 2-D Euler Eqns.
Heres the basic idea: (1) Divide up (i.e. discretize) the domain into simple geometric shapes (triangles and quads)
16.100 2002
10 2 11 12 13
9 8 1
0 3
7 5
Cell 0 is surrounded by cells 1, 2, & 3. i.e. cell 0 has 3 neighbors: cell 1, 2, & 3.
Nearest neighbors
16.100 2002
(2) Decide how to place the unknowns in the grid. (a) Cell-centered: cell-average values of the conservative state vector are stored for each cell. (b) Node-based: point values of the conservative state vector are stored at each node. The debate still rages about which of these options is best. We will look at cellcentered schemes because these are easiest (although not necessarily the best). Also, they are very widely used in the aerospace industry. (3) Approximate the 2-D integral Euler equation on the grid to determine the chosen unknowns.
16.100 2002
16.100 2002
16.100 2002
16.100 2002
d Cell-average unknowns: 0 1 (u ) ( u ) 0 1 U1 = U0 = (v )0 (v )1 (E )1 (E )0
U 2 = .............
U 3 = ...........
U0
1 A0
UdA
C0
Now, we apply conservation eqns: v v v d ( UdA + F i + G j ) n dS = 0 C0 dt C0 The time-derivative term can be simplified a little: dU 0 d UdA = A0 C dt 0 dt The surface flux integral can also be simplified a little: v v v v v v b (Fi + Gj ) nds = (Fi + Gj ) ndS
C0
a
16.100 2002
10
A0
No approximations so far!
Now, we make some approximations. Lets look at the surface integral from a b: b v v v b a (Fi + Gj ) nds 2 1 0 c a v nab 3
The normal can easily be calculated since the face is a straight line between nodes a & b. Recall, the unknowns are stored at all centers. So, what would be a logical approximation for : v v v b (Fi + Gj ) nab dS = ???
a
Option #1= Option #2= Note: Option #1 option #2 in general. There is very little difference in practice between these options. Lets stick with: v v v v 1 v v b 1 ab (Fi + Gj ) nab dS = (F0 + F1 )i + (G0 + G1 ) j nab S ab a 2 2 v v v v 1 v v c 1 bc (Fi + Gj ) nbc dS = (F0 + F2 )i + (G0 + G2 ) j nbc S bc b 2 2 v v v 1 v v a 1 ca (Fi + Gj ) nca dS = (F0 + F3 )i + (G0 + G3 ) j nca s ca c 2 2 Where
F0 F (U 0 ) F1 F (U 1 ) F2 F (U 2 ) F3 F (U 3 )
G0 G (U 0 ) G1 G (U1 ) G2 G (U 2 ) G3 G (U 3 )
16.100 2002
11
dU 0 + ab + bc + ca = 0 dt
( )
( ) F (U )
n 1
For steady solution, basic procedure is to make a guess of U at t = 0 and then iterate until the solution no longer changes. This is called time marching.
Question What assumptions have we made in developing our 2-D Euler Equation Finite Volume Method?
16.100 2002
12