Lecture 05

IIT Kanpur July 201
20 followers
Jul 19, 2024
[Music]
lecture number
five hello
everyone welcome back today we are going
to start discussion on compressible
flows so basically in cfd as we know
it's very important to know what are the
correct governing equations to get the
correct
Solutions okay so for that we'll first
try to understand how the compal flows
are different from incom flows because
the equations are different for the
compal flow and incom
flow
you might be uh many of you have done
cfd
uh you would know that let's say if uh
the fluid involve is
liquid okay then you can uh do away with
your uh uh incompossible
solver but the if the fluid involve is
the air okay and then uh you would
require basically a compressible solver
depending on what is the speed of the
flow right so if the speed of flow is
higher let's say about a certain Mark
number and we'll come to what is Mark
number okay then you have to use a
compressive solver okay then you can
have problems which involve socks right
so in those kind of problems uh we need
to have a composor solver so in this
class we try to find out how the
composor flows are different from income
Sol so we'll go back to very basic uh
Theory which might we might have studied
uh long back okay uh during our high
school okay
okay so we have got solid liquid and gas
and liquid and gas together are called
fluid okay so when we say compet flu
Dynamics so we try to solve the Dynamics
for both liquid as well as gases okay so
how these liquids and gases are
different from solids okay so as you can
see here if you let's say a box okay and
you put a a solid uh blob there okay
solid block there okay you would see
that uh uh uh the the block holds shape
okay in the container and it has got a
fixed volume okay now in the same coner
you remove the block okay and then you
put let's say water right so the water
will quickly take the shape of the
container right and what is the other
Advantage uh the other property that it
will have a free surface
okay and it will still have the fixed
volume okay right because depending on
how many liters of liquid that you're
putting it will maintain the same volume
there okay so the the main difference
between the solid and the liquid uh is
that in the liquid it takes the shape of
the container it does not hold the shape
and uh it also has the free surface uh
now between the liquid and gas okay now
in the same container if you put gas
particles what will happen it will take
the entire volume of the container right
and it will not have the free surface it
will take the shape of the container and
it will still take the volume of the
container
right
so this liquid and gas okay uh because
they both take the shape of the
container basically they flow okay and
that's why they call Fluid so fluid
is What
flows or what can flow okay and solid is
what is rigid okay it cannot flow so
that's the one of the M major difference
between the solid and the fluid
okay so the fluid flows and solid are
rigid okay now uh in terms of forces of
interaction okay in the case of solid uh
the molecules are very closely packed
okay so the forces of rtion are high
okay uh and uh yeah there is there's an
error here okay the inter moleular
distance will be low and high in the
case of fluid okay so the force of
attraction will be uh high in the case
of solid precisely because the
intermolecular distance is low okay in
the case of solid the molecular are very
closely packed as you can see in the
last diagram here you can't even
identify the molecules but if you could
seat okay they are very closely packed
okay they are slightly sparely packed
here and here you can see that they are
very very sparely packed in the case of
gases okay so solid of high uh force of
interaction attraction and fluid have
low forces of attraction okay one of the
major difference between uh uh solid and
the fluid in terms of our discussion for
cfd is how the stress vary okay in the
case of solid the stress is proportional
to
strength okay and the proportionality is
the young modulus as you all know right
so if you apply some stress okay some
force uh there will be some deformation
and the stress will be proportional to
The Strain in the case of fluid that is
not true okay and that's how the fluid
differ from solid okay when I say fluid
I mean both the
the liquid as well as the gas okay so in
the case of fluid if you apply stress if
you apply Force okay uh The Strain will
happen but uh the stress
tow will be not proportional to The
Strain but the strain rate
okay to will be basically
proportional to same Su strin rate okay
so U is basically meter per second so
this is basically an indication of this
stren okay it's the it's the change uh
the displacement per unit time right
that is U okay and the rate at which the
U is changing the DU by Dy it can be D
by DX also okay so the to is
proportional to The Strain
rate okay and what is the
proportionality of constant you have all
read in your basic fluid mechanics about
the Newton slw viscosity okay and the
proportionality constant will be the
viscosity right so this one major
difference you must remember that in the
case of solid the stress is proportional
strain in the case of fluid the stress
is proportional to The Strain
rate
okay now we'll see the difference
between the liquid and gas after
understanding how the uh the fluids are
different from the
uh solids let's look at how uh within
fluids what are the properties uh in
which the gases differ from the
liquids okay so one difference that we
saw uh is that the
liquid uh basically have the free
surface and gas basically fills the
container okay so that is one difference
we already saw
okay let's talk about the mean free path
okay what is mean free path it's a it's
a kind of a measure of intermolecular
distance it's like uh how much one
particle moves uh before it collides
with another particle so you have a
let's say you have a container okay and
you have this particles present here
okay and they keep on moving okay so how
much they travel before they Collide to
the next particle is your uh that the
average distance of that is called the
mean free path okay it is usually dened
by Lambda
okay so the mean free path is low in the
case of liquid why because the molecules
are closely packed right so it will I
mean compared to gas it can easily
collide with another molecule
okay uh the compressibility for the same
reason and uh we'll go through the
formal definition of the compressibility
uh in a few slides okay so in the case
of liquid the compressive is very very
low it is of the order of 10^ minus 10
okay so what do you mean is that uh if
you press it okay the amount of volume
that changes due to the pressure is much
lower in the case of liquid than the gas
okay so in the gas the order of the
compressibility is 10^ minus
5
okay uh typically because the
compressibility is very small very low
in liquid
okay uh the equations that we employ is
the incompressible equation this is
incompressible see remember one thing
there is no fluid which is truly
incompressible in nature okay whenever
you apply a force okay it will uh it
will change the density okay but the the
change in density is very very low and
so much low that you can ignore it for
all practical purpose in basically
getting your dienal Dynamics that you
want okay and when you ignore the change
in density basically the Things become
simpler and that's why we go for the
incompr
equation okay in the case of gas we do
not have that luxury especially if the
speed is uh higher than certain value
okay and then in those cases we have to
go for the compressible nav
stes okay now uh for the next few slides
so we will have discussion about the
gases only okay and why is that is uh
because uh we saw that the gases are
compressible okay and they can basically
the particles or molecules interact very
easily okay but they have the
intermolecular force is weaker than uh
that we have in the case of liquid and
in the liquid it is weaker than that we
have in the in the solid so we can make
several approximations and we can work
uh in a perect or ideal scenario where
the things becomes much simple okay so
what is the perect or an ideal gas okay
it's the gas where the intermolecular
forces are neglected okay and the gas is
not chemically reacting okay so we have
intermolecular forces but at certain
temperature and pressure let's say uh
the typical temperature of your room uh
room condition or the and the pressure
of the room condition let's say around 2
273° Kelvin okay and pressure of around
1
atmosphere okay uh the intermolecular
forces are not that important okay and
then uh you uh the gases will not react
also because the temperature is not that
high so we are talking about temperature
around let's say 273 to around
1,000 okay and uh the pressure around at
one atmosphere in those those cases we
can ignore the intermolecular forces
okay and
uh uh we can use the ideal gas equation
now the ideal gas can be of two type
okay one is the calorically perfect gas
and another is the thermally perfect gas
okay so uh what is calorically perfect
and thermally perfect so uh if you have
a gas we'll have this internal energy e
okay
now this e can be a uh function of both
the temperature and volume or
temperature and pressure okay so here V
okay I'm writing V like this so V is the
specific
volume which is basically the inverse of
your density which is volume per unit
Mass okay you might have read about the
extrinsic properties and intrinsic
properties
okay so we are dividing the volume per
unit Mass so that we can talk about the
specific volume now the change in
internal energy of a gas can depend both
on the temperature as well as your
pressure and uh because this pressure
temperature and volume are related we
can also say temperature and the
specific volume so if the uh internal
energy change depends on both the
temperature and the specific volume then
it is called the real gas okay but if
you can ignore the inter molecular
forces then what happens that you can
claim that my change in internal energy
only depends on the temperature and not
the specific po okay so your e becomes e
of T
okay now
uh this is your thermally perfect gas
okay where uh uh you are ignoring the
the change in internal energy or even
enthalpy you can talk about enthalpy
also uh so what is enthalpy is H equal
to e+ P by
R okay so because we are discussing
everything in terms of your uh the per
unit volume property
okay so both e and H depends only on
temperature
okay now if we can get make even more
approximation and uh
so we can say that okay uh there is a
constant which uh can determine how the
inter ener CP changing with temperature
okay in this particular case we can
write
D equal to
cvdt okay and DH equal to cpdt
per you have read that CV is the uh
specific volume at constant volume okay
specific heat constant constant volume
so that will be uh d by
DT at volume constant volume and CP
equal to d h by DT at constant d h by DT
at constant pressure so you can write
your D and DS in terms of this okay and
that is uh true in general uh for a
thermally perfect gas right so if you
can make another uh approximation where
we say that my CP and CB are basically
uh constant okay in that particular case
you can further approximate it and you
can say that e is equal to
CVT and H equal to
CPT right where what we did was we just
took the did the integration here took
the CPC out because they constant and we
say that my internal is 0 at t equal to0
and H is equal to 0 equal to 0 and you
can get this
expression okay and these are basically
uh true if the temperature is less than
1,000 Kelvin okay then
uh uh in in this case if the temperature
is less than th000 Kelvin then your cpcb
does not vary too much with temperature
you can assume to it to be constant and
these are called the calorically perfect
gas okay
okay so this is what is written here you
have the chorally perfect gas per equal
to 3 less than 1000 kin but if the t is
more than 1,000 and less than
2,500 then it is called the thermally
perfect gas in that case we cannot
assume CP and CB to be constant and uh
you
can use this equal to e but you have to
use the integral quantity okay now let's
go to the real gases
Okay so
uh there are two extremes here in the
real gas okay so real gases the
intermolecular forces are important okay
your both e and H will be basically a
function of temperature and volume okay
H equal to H
DV okay so this is true at very low
temperature let's say less than 250 kin
in and high pressure in that in those
cases this moleculars molecules are very
close and the intermolecular forces are
important important and we cannot use
our perfect gas law here okay we have to
use this wonder wonder walls gas law or
there are some other laws also okay in
the case of calorically perfect gas we
can use this ideal gas law or perfect
gas law which is basically P equal to or
let's say PB equal to
nrt
okay this law can be
used in the case of uh real gas okay uh
we cannot use that law and we have to go
for more complicated laws like Wonder
gas law what happens when your gas is
chemically reacting that means if your
temperature is L than more
than 2,500 Kelvin okay in that case what
will happen that you will have
continuous conversion from one gas to
another gas okay and uh in those cases
your r that you have written here the
gas constant will basically vary okay uh
so it is not equal to constant okay R
varies because you have continuous
conversion from one gas to another
gas and that is why uh we cannot use
this approximation of id id SL or even
the thermally perfect okay you have to
consider this is a chemically reacting
gas okay so this is true for the gases
so typically if you see many of the cfd
simulation that are performed they are
into this condition they fall into the
condition of normal temperature and
normal pressure okay of course there are
extremes where you cannot use this so in
that casee you can use this P = to row
RT or P
nrt okay you can use the ideal gas
law now what about liquids okay so
liquids also have equations of state but
they are much more complex okay uh so
for all practical purpose what we can do
the question State as volume is constant
that volume is not changing okay so that
means that pressure work is negligible
in liquids compared to gases okay so we
we do not require a separate equation of
State okay because we say that our
volume is not changing all our density
is not changing okay now go to the uh
the perfect gas
okay so uh the perfect guess uh as you
might have read the expression is pbal
to n r and I'm using the symbol Ru okay
why the ru I'm calling it as a un
unversal cost constant and what is the
value of Ru is equal to
8.314 J per mole
kin okay now when we do cfd simulation
uh we want to basically uh use the value
uh in terms of per kg instead of per
mole okay so what we'll do we'll convert
it to in terms of per kg okay so you can
divide it by the molecular mass this
will become p v by m is equal to
R U
by m by
n multip by T okay this is volume per
unit mass that is nothing but uh P by
row that is inverse of density right
mass per volume is
density okay and this quantity R U by m
by n okay this is uh your uh
universal gas constant divided by your M
Mass right so this constant can be
written as the specific gas constant R
and then multiply by T right so then
you'll get quantity which is p equal to
row RT okay which is used in your cfd
simulation with ideal assumption right
so here R is nothing but Ru which is
universal quantity universal gas
constant divide
by m by n which is your M Mass right now
unit of this will be R will be because
this is ju per mole Kelvin and this is
kg per mole so this will become JW per
kg
Kelvin okay now uh one thing very
important to remember here is that Ru is
the universal value but R will change
based on the gas that you're using
because the molecular mass of gases will
be different so for example what is the
value of R for air okay so uh if you
assume that okay air has got let's say
around 79% nitrogen and 20% 1% of oxygen
okay and this has
got uh and nitrogen has molecular mass
of 28 oxygen has got a molecular mass of
32 okay so then the molecular mass of
the air will be around somewhere like 29
okay and if you want to calculate
R will
be okay 8.314 and this is in gam okay
this will become by 29 into 10^ minus
3 okay and that will become around
287 J per kg
kin and this is the value that you
typically use when you uh simulate a
ideal gas okay you can calculate let's
say now you change your medium
simulation from the idal gas to nitrogen
so then all you need to do is that
divide this 8.3.4 divided by 28 and
you'll get the new gas constant let's
say you change it to helium divide by
the molecular mass of the helium and
you'll get a much higher value of your
gas constant okay specific gas constant
that's why this R is called the specific
gas
constant
okay so this is important to remember uh
the two taken take away from the slides
that we want our R in the unit of Jewel
per kg Kelvin in in our CD simulation
and for that we will uh basically divide
uh the universal gas constant with the m
mass now uh come to the property of the
compressibility okay so as we have been
discussing so let's say if you have
a gas or liquid any fluid in a container
and if you apply pressure okay so the
volume will change okay and the volume
may also change if you heat it up okay
let's see you're heating it up then also
volume is changing right so the volume
can change due to the temperature and
due to the pressure so the V is now V T
comma P so you can write
it as D DV okay is d v by Del
T
DT plus d v by d
p
DP
okay so we will call our uh fluid to be
compressible if the change in volume uh
there's a great change in volume due to
the application of pressure okay and we
will uh the change in uh volume due to
the temperature is not considered as a
property of the as a as the
compressibility property of the fluid
okay so we'll Define our compressibility
to is equal to minus 1 by P why there a
minus sign because when you are applying
the pressure your volume is shrinking
right so that will be
negative d v
by P or you can write it minus d v by
V ID by
Delta P right so basically the change in
uh your specific volume per volume due
to application of pressure right so that
is what your
compressibility now if you change the
pressure not only the volume changes but
also the temperature changes right let's
say you fill in air through a pump in
your bicycle you would see that it
becomes warmer right uh the tire becomes
hotter right so the your temperature
will increase and you apply the pressure
but if there's a mechanism through which
we can keep the uh the temperature
constant okay by making doing some heat
transfer and so on then that is called
the isothermal compressibility
toy okay so we we are seeing that it is
constant uh at it is done at the
constant temperature the change in
volume occurred due to the change in
pressure at a constant
temperature and uh if you can do it
isentropically okay Bic Bally very slow
process okay and then it is called the
uh the isotropic compressibility that
means the inop is constant while the
volume is changing due to the
application of pressure right now let's
calculate the value of compress uh now
before we go there so we can also write
it because T
is okay minus 1 by
V DV by DP and since V is equal to 1 by
row this can be as t equal to 1 by
Row D by DP now there is one interesting
thing you can see here is
basically D is equal to row tow
DP right so this tow compressibility is
basically uh the property of the fluid
okay and uh so if the the Top Value is
less okay if the top is very
small okay even if you apply the
pressure okay a great deal your change
in D will be very very small as we
discussed for the liquid the to is
around minus 10 okay J apply uh I mean
very high pressure the change in density
may be very very small and if the change
in density is less than 5% then we
consider that to be basically a
Inc compassive fluid okay if the change
density is greater than 5% then only we
need to treat it as a compressive fluid
so here the to is very very important
factor because that determines how much
the density will be changing due to the
application of a pressure so
compressibility the property of the
fluid now let's calculate the isothermal
compressibility of fluid and then we can
uh uh I mean conclude the class today
okay so uh you have this use the we are
trying to calculate it for air so we can
use our ideal gas equation because it is
done at one atmosphere so ideal gas
equation is PV equal to
RT right so the V will
become RT by P right and for
compossibility what we want DV by d p so
that will become minus RT by p² right so
the t t is basically - 1 by
v d v by d p
right and so V is equal to RT by P so
you can write it
minus P by RT into minus RT by
p² okay this will cancel out and minus
minus will become plus this is 1 by P
right so if the p is your one atmosphere
that is 10^ 5 Pascal this will become
10^ minus 5 and the Pascal M Square this
will become me Square
per
Newton right similarly you can calculate
for your isentropic compressibility also
so this is the value that we're getting
for air
okay for liquid your compressibility
value is 10^ minus 10 okay so you can
easily see that there's a order of like
there five order of difference between
the liquid and the air so if you go by
the previous
expression okay uh this one okay the
because the top is an important factor
so 10 minus 5 order is very very uh it
makes the difference how the density
would be changing in due to the
application of the pressure and that is
why we say that uh the liquid uh the air
the gases are
compressible but liquids are not
compressible okay now the last question
is the compressibility is the property
of the fluid so if the if the fluid is
compressible does it also mean that the
flu is also compressible
right so that is something we will
discuss in the next class remember
there's a difference between the fluid
and the flow okay so there are some
properties which are uh of the property
of the fluid for example molecular
viscosity compressibility these are the
property of the fluid but when the fluid
flows it may flow with a certain uh
velocity okay and uh based on uh what is
the condition of the flow there may be
some properties which will be varying
okay for example how much the flow will
be depends on what is the condition of
the flow not the fluid okay so uh the
question is when will we say the M flow
is compressible we have taken okay we
are taking gas Okay we taking ideal gas
or air so we are expecting that uh
because the FL it has got higher
compressibility it may become
compressible but at what condition we
should say that it is compressible the
flow is compressible right so we'll
discuss that in the next class thank you
very much
[Music]
[Music]
[Music]
