Documente Academic
Documente Profesional
Documente Cultură
Mechanical Engineering
2000 E.C.
4. To get all important flow properties in real time, as the locator moves
from point to point in the flow field described by the characteristic
mesh.
Introduction
5. Literature Review
INTRODUCTION
CFD is predicting what will happen, quantitatively, when fluids flow, often
with the complications of:
CFD is still a subject for research: our ability to characterize the mechanics
of turbulence, multi phase and chemically reacting flows are sometimes less
than satisfactory. Moreover the spectacular growth in computer speed and
power density still fails to match the driving need to solve practical
problems on ever-finer meshes. High performance computing was and still is
a major issue for the practitioner of CFD. In the future we will see increasing
demand for solution for whole assemblies and process rather than single
components.
In the past two decades a number of suites of general purpose CFD codes
have been developed and maintained worldwide. The best known of these
are based on the finite volume and finite element methods. These methods
are useful in solving the real life problem. So CFD is a tool which can apply
for the modeling of chemical engineering process equipment like reactor,
agitator, heat exchanger…
6. When the flow is pure dilation, the averaged viscous stress is equal to the
pressure.
Du p u u j 2 u
Momentum equation i ij j g i
Dt x x j xi 3
xl
Energy equation
DT kT D u u j 2 ul u i
c p i ij
t xi t xi xi 3 xl x j
Equation of state f ( P, T )
P—pressure
R—density
Fluid properties
K—thermal conductivity
In general most applications of CFD take the same basic approach. Some of
the differences include problem complexity, available computer resource,
available expertise in CFD, and whether a commercially available CFD
package is used or a problem specific CFD algorithm developed. The
features to most CFD application can be summarized in the flow chart (fig.
1.1).
CFD methodology
1.3.1 Descritization
In this method the flow field is dissected in to a set of grid points and the
continuous functions (velocity, pressure…) are approximated by discrete
values of these functions calculated at grid points. Derivatives of the
function are approximated by using the differences between the function
values at local grid points divided by the grid spacing. The standard method
for converting the partial differential equations to algebraic equation is
through the use of Taylor series expansions.
P=ρRT 2.1
u u
du ( )V dT dV
T v T
The specific heat at constant volume is defined cv
u
cv so that
T V
u
du cv dT dv
v T
For any substance that follows the ideal gas equation of state (eqn. 2.1), then
(ju/jT)T=0 and hence u=u(T), consequently
du=cvdT 2.2
Equation 2.2 implies that internal energy and temperature changes may be
related if cv, is known. Furthermore, since u=u(T).
Now to obtain a relation between h and T, we express ‘h’ in its most general
form as
h=h(P,T) then
h h
dh dT dp
p p p T
We have shown that for an ideal gas ‘h’ is a function of ‘T’ only.
h
Consequently 0 and,
p T
dh=CpdT (2.3)
R=cp-cv (2.4)
cp
k (2.5)
cv
cv R / k 1 (2.6b)
Where ‘k’ is the ratio of specific heats of the gas (k=1.4 for air), clearly we
can notice here that the speed of sound in a compressible flow varies from
point to point, because a ‘T’ varies from place to place.
Mach number
We define Mach number as the ratio of the local fluid velocity to the local
speed of sound,
V
M (2.8)
C
The Mach number is an important quantity in flows for which the local fluid
velocity is greater than about 30% of the speed of sound (i.e. compressible
flow) of the medium.
When
M>0.3, high velocity gas flow for which the fluid compressibility is
important
To get local isentropic stagnation properties for the flow of an ideal gas, we
need to develop an expression describing the relationship among fluid
properties are specified. We develop the relationships among properties in
differential form. Then we integrate to obtain expressions for stagnation
conditions in terms of initial conditions corresponding to the actual flow at
the point.
a. Continuity equation
v x A v x v x A A (2.9)
b. Momentum equation
For no body force and frictionless flow becomes
We obtain
dp 2
d (v x ) 0 (2.10)
Here equation (2.10) is a relation among property during the deceleration
process. In developing this relation, we have specified a frictionless
deceleration process. Before we can integrate between the initial and final
(stagnation) states, we must specify the relation that exist between pressure
P, and density r, along the process since the deceleration process is
isentropic, then P and r for and ideal gas are related by the expression
p
cons
k (2.11)
Our task now is to integrate equation 2.10, subject to this relation. Along the
stagnation stream line there is only a single component of velocity; v x is the
magnitude of the velocity. Hence we can drop the subscript I equation 2.10,
From equation 2.11 and 2.10 we get
v2 dp 1 1
d k c k dp
2 d
We can integrate this equation between initial state and the corresponding
stagnation state
0
v2 1
p0
1
v d 2 c k p
p
k
dp
To obtain
k 1
v2 p k 1 k p0
1 k
c k k 1
2 k 1 p
Since c1/k=r1/k/r
Since in this case we seek expression for stagnation pressure, we can rewrite
this equation as and by using equation 2.1,
For an ideal gas the stagnation pressure is
k k 1
p0 k 1 v 2
1
p 2 kRT
Also for an ideal gas the sonic speed was given earlier thus,
k
p0 k 1 2 k 1
1 M (2.12)
p 2
We can readily obtain expression for other isentropic stagnation properties
by applying the isentropic relation given in 2.11,
T0 k 1 2
1 M
T 2 (2.13)
1
0 k 1 2 k 1
1 M
2 (2.14)
Critical condition
V*=C* (2.15)
T0 K 1 (2.17)
T* 2
1
0 K 1 K 1
2 (2.18)
*
We can write the critical speed using the critical temperature or isentropic
stagnation temperature;
2k
V*=c*= ( RT0 ) (2.19)
k 1
Cylinder a contains air at high pressure, The CD nozzle exhausts this air into
cylinder B,
The usual configuration of CD nozzle is shown in fig 2.4, gas flows through
the nozzle from a region of high pressure (P0) to one of low pressure (Pe).
The reservoir is usually big enough so that any flow velocities here are
negligible.
Now imagine controlling the back pressure, and measuring the resultant flow
rate through the CD nozzle. We expect that the lower we make the P e the
more mass flow you’ll get through the nozzle.
Chocking
The mass flow rate will increase only up to a point. If you lower the back
pressure enough you come to a place where the flow rate suddenly stops
increasing and doesn’t matter how much you lower the back pressure (P b).
Even if you make it vacuum, you can’t get any more mass flow out of the
nozzle. We say the nozzle has become ‘chocked’. Fig. 2.5.
We can delay this behavior by making the nozzle throat bigger (hidden line
in fig 2.5) but eventually the same thing will happen. The nozzle will
become chocked even if we eliminated the throat altogether and just had a
converging nozzle.
The reason for such behavior has to do with the way the flows behave at
Mach number =1. When the flow speed reaches the speed of sound and
Mach number in an internal flow can only reach 1 at a minimum cross-
sectional area.
When the nozzle isn’t chocked, the flow through it is entirely subsonic and ,
if you lower back the back pressure further the flow speed eventually
reaches the speed of sound (M=1) away from the throat area where area is
minimum, and so the flow gets stuck. The flow pattern down stream of the
(in diverging section) can still change if you lower back pressure further, but
the mass flow rate is now fixed because the flow in the throat (and for that
matter in the entire converging section Is now fixed too.
The changes in flow pattern after nozzle is chocked become important if you
are concerned with exit velocity.
In this case flow accelerates out of the high pressure reservoir through the
converging section reaching maximum subsonic speed at throat. The flow
then decelerates through the diverging section and exhausts to the ambient as
a subsonic jet. Lowering the back pressure in this state increases the flow
speed everywhere in the nozzle.
Flow pattern exactly same as subsonic flow except that at the throat speed
has reached Mach 1, flow through the nozzle is now chocked since further
reduction can’t move the point of M=1 away from the throat. However the
flow pattern in the diverging section does change as you lower the back
pressure further.
3. shock in nozzle
Unlike subsonic flow, the supersonic flow accelerates as area gets bigger.
This region of supersonic acceleration is terminated by normal shock wave.
The shock wave produces a near instantaneous deceleration of the flow to
subsonic speed. This subsonic speed then decelerates through the remainder
of the diverging section and exhausts as a subsonic jet. In this regime if you
lower or raise the back pressure you increase or decrease the length of
supersonic flow in the diverging section before the shock wave.
4. Shock at exit
If you lower the back pressure you extend the supersonic region all the way
down the nozzle until the shock is sitting at the nozzle exit. Fig 2.9
Fig 2.9 shock at exit
Because you have a very long region of acceleration (the entire nozzle
length) in this case the flow speed just before the shock will be very large in
this case, however after the shock the flow in the jet will still be subsonic.
5. Over expanded
Lowering the back pressure further causes the shock to bend out into the jet,
fig 2.10. And a complex pattern of shocks and reflections is set up in the jet
which will now involve a mixture of subsonic and supersonic flow, or (if P b
is low enough) just a supersonic flow.
Because the shock is no longer perpendicular to the flow near the nozzle
walls it deflects inward as it leaves the exit producing an initially contracting
jet. We refer to this as over expanded flow because in this case the pressure
at the nozzle exit is lower than that in the ambient (the back pressure). I.e.
the flow has been expanded by the nozzle too much.
6. Design condition
A further lowering of the back pressure changes and weakens the wave
pattern in the jet. Eventually we will have lowered the back pressure enough
so that it is now equal to the pressure at the nozzle exit. Fig 2.11
In this case the waves in the jet disappear altogether and the jet will be
uniformly supersonic. This situation, since it is often desirable is referred to
as the design condition.
7. Under expanded
Finally if we lower the back pressure even further we will create a new
imbalance between the exit and back pressure (exit pressure greater than
back pressure). Fig 2.12
In this situation (called under expanded) what we call expansion waves that
produce gradual turning and acceleration to jet, from the nozzle exit, initially
turning the flow jet edges outward in a plume and setting up a different type
of complex wave pattern.
To understand how the pressure behaves you have to remember only a few
basic rules
The labels on figure 2.13 indicate the back pressure and pressure distribution
for each of the flow regimes illustrated in figure 1.13. Notice how, once the
flow is choked, the pressure distribution in the converging section doesn't
change with the back pressure at all.
Chapter Three
At the beginning of this chapter we will solve steady one dimensional flow
through converging-diverging nozzle of specified cross-sectional area
analytically, following this we’ll proceed to unsteady flow analysis of the
flow by using CFD technique. While using the CFD technique we will use
finite difference approximation method discussed earlier in chapter one and
employ Mac Cormack’s technique for predicting and correcting flow field
properties after some time and a number of iterations and then validate the
numerical solution with experimental data to see the accuracy of CFD
technique.
Fig 3.1.
(3.1)
Assumptions
1. Steady flow
2. One dimensional flow
(3.2)
b. Momentum equation
Integral form of momentum equation given in chapter one, for one
dimensional flow is given by
(3.3)
Assumptions
3. FBX=0
The surface force will be due to pressure forces at the surface ‘1 &2’ and to
distribute pressure force Rx, along the channel walls, substituting gives (by
using scalar magnitudes and dropping the absolute value sign)
(3.4)
c. First law of thermodynamics
integral form of first law was given in chapter two,
(3.5)
Where e or sometimes u is internal energy and is given by
Assumptions
4. Q=0 (isentropic)
5. Ws=0
6. Wshear=0 & w (other)
7. Effects of gravity are negligible
But we know from continuity equation that the mass flow rate terms in
braces are equal, so they may be cancelled. We may also substitute h=u+Pv,
(3.5)
For reversible adiabatic process, the equality holds and since the mass flow
rate terms are constant
S1=s2=s(3.7)
e. equation of state
P=ρRT
Assumption
8. Ideal gas
f. equation of process
(3.8)
These are governing equations for steady one dimensional isentropic flow of
an ideal gas.
(3.9)
(3.10)
And dividing by we obtain;
(3.11)
(3.12)
(3.13)
From equation 3.13 we see that for M<1 (converging section of the nozzle)
an area change causes a pressure change of the same sign (positive dA
means positive dp form M<1):
For M>1, diverging section of nozzle) an area change causes a pressure
change of opposite sign.
Substituting from equation 3.11 in to eqn 3.13
(3.14)
From the eqn 3.14 we see that M<1 an area change causes a velocity change
of opposite sign (positive dA means a velocity change of the same sign.
(3.15)
Expression for locally isentropic stagnation process for an ideal gas were
developed in chapter II,
These expressions were
(3.16)
(3.17)
(3.20)
As shown I section 3.1.2. Stagnation properties are constant throughout a
steady isentropic flow field.
Critical conditions
Flow properties at which Mach number is unity (throat), then the above flow
equations we substitute M=1,
(3.19)
(3.20)
(3.21)
For an ideal gas
The critical speed may be written either critical temperature T * or isentropic
stagnation temperature T0,
Thus
Area ratio
Dealing with time marching problems, initial conditions are required besides
boundary conditions. Initial conditions are usually arbitrary but taking it
close to steady state solution leads to good approximation of unsteady state
solution, we will look to these initial conditions in the later sections of this
chapter. Another important consideration to time marching problems is
convergence of the solution along with stability. We already discussed about
this in chapter one, CFL considerations and we will make use of this later.
Problem: subsonic-supersonic Converging diverging nozzle flow analysis
using CFD technique.
The set up
1. We will use the governing equations of fluid flow, and changing them
to discritized model by using finite difference method.
Assumption
1. Flow properties are uniform across a given cross section.
2. Isentropic flow
3. One dimensional flow
4. Non viscous flow
(3.25)
Let’s apply this to the control volume (i.e. slice of the nozzle flow where the
infinitesimal thickness of the slice is dx).
On the left side of the control volume, consistent with quasi-one dimensional
assumption (ρ,v,P,e) are uniform over area A, similarly on the right side of
the control volume(ρ+dρ,v+dv,p+dp,e+de).
The surface integral in eqn. 3.25
(3.26)
Eqn 3.26 is the partial differential form of the continuity equation suitable
for unsteady, quasi-one dimensional flows.
b. Momentum equation
(3.27)
Eqn. 3.27 is the integral form of the x-component of the momentum
equation written for in viscid (neglecting the viscous stress term) with no
body forces.
The surface integral in the above equation becomes
(3.28)
Eqn 3.28 is momentum equation appropriate for quasi-one dimensional flow
in non-conservative form.
c. Energy equation
(3.29)
Eqn 3.29 is the integral form of the energy eqn, for an ideal adiabatic flow
(q=0) with no body forces and no viscous effects.
From eqn 3.29
(3.30)
Eqn 3.30, is the none conservative form of the energy equation expressed in
terms of internal energy, appropriate for unsteady, quasi-one dimensional
flow.
Or substituting for Cv (expression for C was already given in chapter 2,
thermodynamics)
(3.31)
(3.33)
Energy equation
(3.34)
In the figure 3.5 the first grid point, labeled point 1, is assumed to be in the
reservoir, with denoting the spacing between grid points. The last point,
namely, that at the nozzle exit is denoted by N.
We are already familiar with finite difference method form chapter one,
The continuity equation becomes
(3.38)
Momentum equation
(3.39)
Energy equation
(3.40)
Referring to chapter one; we use the simplification from the finite difference
method, to obtain rate of change of flow field variables.
The time marching problems have issues of stability and convergence, it was
discussed in chapter one about CFL, hence we make use of this criteria to
find the time step that would result in stable solution of the numerical
method.
(3.41)
Where a is
(3.42)
And “v” is velocity;
Therefore, with c being the courant number, along with C 1, simply states
that must be less than, or at best equal to the next time step.
(3.43)
The other choice is to calculate at all grid points (i=1 to i=N) and then
choose the minimum value, (CFL requirement for stability).
Hence
(3.44)
Choose to be .
3.2.2.2. Predictor step
The predictor step uses the rate of change in each property form the finite
difference result and makes use of them in such a way (chapter one)
Density
(3.45)
Velocity
(3.46)
Temperature
(3.47)
(3.48)
For velocity
(3.49)
For temperature
(3.50)
We go to the average of rate of change of fluid flow properties at time
Average
(3.51)
(3.52)
(3.56)
Now the corrected density, velocity and temperature respectively are given
by
Density is given by
(3.57)
Velocity is given by
(3.58)
Temperature is given by
(3.59)
Pressure is calculated from equation of state
We must allow on variable to float. The value of v1, changes with time and
is calculated from information provided by the flow field solution over the
internal points. We use linear extrapolation from point “2” and “3”; to
calculate v1
Slope=
Therefore
(3.60)
All other flow-field variables are specified. Since point “1” is viewed as
essentially the reservoir. (It is going to be 1 since we are using ratios)
We again choose to use linear extrapolation based on the flow field values at
the internal points.
(3.61)
(3.62)
(3.63)
There are three methods that we can use to solve problems in fluid
mechanics these include experimental, theoretical and computational (CFD)
method. The idea of experimental testing is to evaluate the performance of
relatively inexpensive small-scale version of the prototype device. In
performing such test it is not always possible to simulate the true operating
condition of the prototype device. Theoretical method begins with the
development of a mathematical model involving differential equation for the
dependant variable. The most difficult part in this case is solving the
mathematical equations subjected to initial and boundary conditions.
In our project we have developed a Computational model that
represents a nozzle, using CFD technique. Then we apply the fluid flow
physics to this virtual prototype and the software which in our case is
MATLAB software outputs a prediction of the fluid dynamics.
Computational Fluid Dynamic (CFD) has advantage over the other ones that
computer simulation is free of some of the constraints imposed on the
experimental method for obtaining information upon which to base a design.
It is also possible the true operating condition of the prototype. It is also cost
effective than the other methods mentioned above.
On the other hand Computational method also have certain
limitations among these are computer shortage and speed, other limitations
arise owing to our inability to understand and mathematically model certain
complex phenomena.
In general we conclude that the result obtained while working with CFD
technique are satisfactory suggesting that purely geometric features may be
responsible, to a large extent, for the basic flow development. Indeed,
essential flow characteristics such as the velocity profile, temperature
profile, pressure profile, density profile and Mach number distribution in
both case i.e. within the nozzle and at the exit of the nozzle appears to be
fairly well predicted. Based on the methodology described in this thesis,
process design and analysis can be rapidly performed to scale geometry ,
evaluate design modifications, such as, to determine the shape of minimum
length nozzle that gives the same exit Mach number for a given throat
diameter and the nozzle performance in rocket propulsion or similar
applications can be evaluated rapidly.
RECOMMENDATION
Chapter Four
4. Literature review
As one might expect the history of CFD is closely tied to the development of
the digital computer s. most problems were solved using methods that were
either analytic or empirical in nature until the end of World War II. Prior to
this time, there were a few pioneers using numerical methods to solve
problems. Of course, the calculations were performed by hand, and a single
solution represented a momental amount of work. Since the time, the digital
computers have been developed, and the routine calculations required in
obtaining a numerical solution are carried out with ease.