Lecture 12

IIT Kanpur July 201
20 followers
Aug 2, 2024
[Music]
[Music]
hello everyone welcome
back so last few classes we have been
discussing about the governing equations
we derived the mass conservation
equation uh we derived the momentum
conservation equation and we also saw
what happens to these conservation
equations in the limit of Mark tending
to zero that is basically the incomp
flows and uh we have been discussing
that uh uh for incom flow the energy
equation is not that
important uh because you don't have uh
change in temperature or the density
okay but uh for the compressible flow
energy equations become very very
important okay so uh in today's class
we'll be discussing about the energy
equation we'll briefly derive it we'll
look at different forms of the energy
equation and after that uh we will look
at all the equations Mass momentum
energy uh in one Matrix form and we'll
see how we can utilize these equations
for solving our cfd problem so let's
start with the energy equation so using
the runoff transport theorem uh like uh
we have
okay you can also derive the the
integral form of the energy equation
just you
replace the B term uh so if you recall
the Ros transport theorem uh we had this
property intensive property and per unit
Mass was the Intensive and uh the total
property was extensive property and we
did for mass and momentum similarly you
can do for energy and you'll find the
the expression for the energy before
going there let's go to the kinetic
energy equation which is nothing but the
extension of your momentum equation so
if I write in a very compact
form okay
so DUI by DT that is the mass into
acceleration isal to Del by so this is
the total derivative okay d by DX z t y
z and
plus r right and if we just multiply
this entire thing by
say UI
okay so as we have been discussing that
in the Einstein notation when you
multiply when repetitive index it
automatically Miss sumission also so you
can write it in terms of row UI DUI by
DT the smaller one would
be basically this will be
UI d by D
XJ y z plus row UI V right so this is in
your in
the tensor form if you want if you want
to be simple you could also like you can
take U MTI X
momentum plus v * y
momentum and plus W mtip by Z momentum
so if the these are the X momentum
equation Y moment zation correspond
multiply with the corresponding velocity
you'll get this same expression in the
uh uh for the total energy remember
energy is a scalar quantity if you want
to do in a vector form you could do U do
your the vector momentum
equation okay and you'll get the same
expression right so once you do this you
can write it further this is Row
D basically this is
UI UI by 2 or u s by 2 by DT is equal to
uy D by d x c t y a plus row UI B what
is this UI UI by 2 you can denote it by
the term k which is nothing but your
kinetic energy per un volume right
kinetic energy per unit Mass okay so you
can write it row DK by DT is equal to
UI d by d x z t y z plus row UI V
right so this is your this is the
basically kinetic energy
expression this is the kinetic energy
equation now one interesting thing is it
is not a separate equation okay this we
just took the momentum equation here
okay multiply by U and we got this
expression so and it does not have any
temperature term involved here right so
the kinetic energy equation is not a
separate equation so even if if you
include it uh in the let's say incom
flow solver you'll it will be kind of
redundant equation right it is not
adding any new information
right so uh we derived it because we
want to go to the total energy equation
basically the kinetic energy plus your
thermal energy right and you can have
potential energy also okay but uh uh
normally the variation of potential
energy is not that high so we will just
uh uh ignore it as of now okay so you
can write in the uh in the conation form
like this also so this D by
DT of K will become DK by DT okay and
then you can take this row inside also
uh remember what how we have done for
the uh momentum equation so you can use
this equation of continuity add it here
add and subtract here and you can write
in the conservation form so that row
goes inside okay and
this will become d by DT row K and plus
d by DX
a row u j
k
right um if you use the if you use the
chain Rule and then use the equation of
continuity you can get it back into this
total energy form okay and right hand
Remains the Same okay so if you look at
the different terminology this D by here
is nothing but how the kinetic energy in
the system is changing with time right
and this is nothing but the transport of
the kinetic energy this is a kind of
flux okay it does not the only job of
this term is basically to exchange the
kinetic energy or basically uh take the
energy from one point to another Point
okay that is the job of this term uh
this is a very important fun term this
is the how the kinetic energy changes
due to stress right so if you have some
uh stress in the fluid okay
uh some viscous stress so that will uh
have the changes in the velocity and
that will basically change your energy
so because it is on the right side so if
it is positive then your D by DT will be
positive right so this is increase in
kinetic energy due to stress and this is
uh work by Body Force now one point to
remember here is that this is the only
not the only thing which is changing due
to the stress right in fact if you want
to take the total change in energy due
to the stress then it will be uy t y j
okay so this is your total change in
energy and you can write it using the
chain rule Bally which is UI t y j by
dxj and
plus t y j d UI by DX right so this is
the term which is responsible for
increasing
in kinetic energy
okay now this term is related to the
deformation
okay and so this term would be related
to the because it is not changing the
ktic energy but rather it is doing the
deformation so this will basically
increase
the internal
energy so if equation which involves
both the kinetic energy K plus internal
energy e
you will have both these terms right but
for now you can just uh replace this
term okay you can write this ktic energy
due to stress and increasing internal
energy due to the deformation work okay
and finally what you can do you can
write your term which was your uh
deformation work okay which is basically
responsible for increase in kinetic
energy into a more presentable form
because we know the a so we can
basically expand it so if you write t y
z d UI by d x z it can be written in
terms of symmetric T basically this will
be e i and why is that why how can we
write this gradient
d a symmetric tensor this is because of
the property that if you a symmetric
tensor so T is a symmetric tensor
multiply with another tensor only the
symmetric part is retained right and we
can prove it also right let me just
prove it here we have this t y z d i by
DX Z right and DUI by DX is the standard
tensor it can be written as half DUI by
DX J plus d j by DX
I okay and plus
half DUI by
dxa minus DJ by dxi right so this is the
symmetric part which have been denoting
by the symbol
e okay and plus this is the anti symetri
part which is nothing but half Omega a
but just to uh for this multipli purpose
we'll denote it by a which means that
this is an anti symmetric part right so
this is a symmetric part and this is an
anti symmetric part so you can write it
t
e plus
a right which can be written as t z
e plus t y j
a right now t y j is symmetric so t
equal to TJ
I okay e symmetric so e equal to EJ
I and a is anti symmetric so a equal to
minus
Aji right so if I exchange this J and I
okay so we are allowed to do that okay
so that will become to j i
eji because the symmetric tensor plus t
j i minus
Aji right so this will become TJ I EJ
I
minus TJ I and
Aji now remember this J and I because of
the repetion they are basically de
indices you could use LM MN whatever you
thing you want whatever notation you
want so you can further write it in
terms of if I replace in this will
become t
e minus t
z a right because the are the
indexes right so you can compare this A
and
B right so left hand side is now the
first term is same but second term one
is positive and one is
negative okay this is only possible when
you have t a is equal to
Z
right that means your t y z d UI by DX Z
is nothing but your t y z into the
symmetric part of the L tensor right so
this is a very important result okay and
we'll be using it again and again at
many places I can interchangeably use
either this term or this term okay and
it also shows that if you multiply a
symmetric tensor okay with an an anti
symmetric tensor okay that will go to
zero the product of a symmetri tensor
with another an anti symmetric tensor is
zero right so if you use this relation
okay so you can write this
TX t e and you can further write this e
t you can further write this T in into
our constitutive relation that we have
derived okay by the way so what
constitutive relation that we have
derived is for the neutron fluid okay
where we say there's a linear variation
of the stress due to the strain but it
may not be linear okay it can be
quadratic or it can be uh other fluid
also so accordingly you have to
basically uh change your cons relation
let's say you're working with some
nonent fluid bingum plastic or cening
kind of fluid
then accordingly you have to basically
change this T term so that is a very
very important thing that I want to
mention here is that your n equation in
terms of your mass into acceleration is
equal to the stress St plus body Force
That Remains the Same uh regardless of
what fluid you're using but what changes
is your constitutive relation that means
how you relate your T YJ to your
standard
tensor okay that changes and that
depends on the fluid okay so in the
newon and fluid we assume it to be the
linear uh proportionality constant is
linear which is the viscosity but in
other fluids you can have nonlinear
relations also and uh you have to
basically write that derive that cons
relation and use that in your code if
you are developing a CD code for a non
neutral fluid okay so the TJ has got
three terms okay so that is hydrostatic
which is nothing but minus P Delta and
plus deviatoric so deviatoric will have
again have two term one is that 2 mu e i
okay andus
2x3 Delta i d u k by delx K and multiply
by
E right so this P Delta and E if you
multiply is become nothing but minus p d
UK K by DX
K right because this uh EIG will only uh
be true uh uh we be a number when Delta
J is when I is equal to J right when I
is not equal Z will become zero right so
will only be non zero when Delta a has
is equal to Delta I or Delta Delta J
right this will become 2 mu e
e and minus
2x3 d u k by d x k
s okay
now this two term you can see okay this
has got the viscosity term okay there'll
be me here
also and here also because we are
representing our viscosity the second
coefficient of viscosity in terms of the
first coent visity assuming the sto
hypothesis is valid all right so these
two term together is the viscous
debation term and we'll denote it by uh
Epsilon right so this will become minus
p you can write d. U plus Epsilon okay
which is the viscous distribtion term
okay and you can basically find out the
unit of this dissipation term okay uh so
dissipation per volume in fact okay so
this is d u k by DX K right so and
there's a mu term here okay so you can
divide it by row that will become your
kemetic viscosity uh and then you will
have this term uh d by ter which is the
V visity so please go back and derive
this uh unit for this uh disspation dat
and it will come out M Square per second
Cub
okay so once you do that you can write
this uh interre expression the ktic the
expression so what we'll do we'll
exchange this uy Delta y z by Del x z by
d uy t y
z by d x a
minus t y z d i by d x
z
okay so uh this term is the total work
by stress okay which includes the work
uh the change in the ktic energy as well
as the internal energy but because this
just just a ktic energy expression you
have to basically substract the term
which is uh due to the internal energy
change and that will be these
terms okay so what are these term this
is the work by the volume expansion okay
and uh this will only be true when uh
the flow is compressible because
otherwise the d. U will go to zero okay
and this is your viscus disspation term
okay so uh note that there's no
difference between this expression this
kinetic energ equation and the earlier
kind equation that we derived okay uh
this
one this equation okay we have only
expressed this term into the uh the
total stress term the total change in
energy with due to the stress and then I
substracted the change in internal
energy because this is only the con
expression but this is not a separate
equation that you should you must
remember this is only we are taking the
momentum equation multiplying with the
velocity and getting a new equation for
the kinetic energy
okay in the compressive flow however you
will have change in both the kinetic
energy as well as internal energy okay
in that case what will
happen you can write your total
energy okay which will be e + K right
what is e here is uh basically internal
energy and we want to find out an
expression which gives you the change in
internal energy as well as kinetic
energy and if the fluid uh that we are
taking is assumed to be uh basically
calorically perfect then you can write
CVT and plus half
u² right and if you talk about this
total energy row e that will be row e
plus row K right this is per mass now
what I'm doing is per volume this will
be row
CVT + half R
u² right and now what is CV
= to RT by GMA minus 1 okay for the
isotropic gas we have derived this okay
this will be row RT by GMA minus 1 +
half R u² and this can also be row RT is
nothing but P okay P by gamma minus 1
this is equation of State plus half r u
s so you can write your total energy in
terms of pressure or velocity or in
terms of uh temperature density and
velocity right so what you can see here
is uh basically you will have five
variables here row u v w p and then you
have six variabl is the change in
temperature but the the temperature
change is related to the change in
density and the pressure right so you
don't need the sixth dynamical equation
but you can have five dynamical equation
which are basically one is the mass
conservation three the momentum
conservation and the uh energy
conservation this becomes five and sixth
one is the your equation of state if the
flow is compressible if the flow is
incompressible okay then you don't need
an energy equation you have the uh the
continuity equation which is nothing but
D equal to Z which is a constant in your
velocity and you can derive your
pressure po equation from that and plus
three
momentum okay but we have only four uh
thing u v w and P which are the unknown
variables in the case of incom flow so
this is your
compressible okay this your
incompressible to express it further you
have one Mass
conservation plus three
momentum plus one
energy and
plus one equation of state right so 1 3
4 5 6 so six equations and six variables
done for the
incompressible one Mass conservation or
you can call it pressure
poison okay uh I mean when need to
express in terms of the dynamical
equation by pressure plus three momentum
okay so total four equations and four
unknowns right now it depends on what is
the numerical scheme that we want to
solve this okay so uh uh without going
into the too much derivation okay like
we have derived for the kinetic energy
we just have to add the thermal energy
component and it follows your basically
first of thermodynamics where we say
that uh if we add any energy it is
basically used to expand or or the work
to be done on the system okay and uh the
system will do the work as well as the
intern enery will change so considering
all those uh energy conservation laws
you can write your energy equation in
this form
okay so here you can see it is very
close to the ktic energy form except
that there are two three things one is
that here instead of K we have e which
is e+
K okay this e and then uh instead of
your the work due to the stress to
increase the kinetic energy we also have
the increasing intern energy component
so we are getting the total stess term
here and this is an additional term okay
d q uh J by delx Z which is basically if
there is a heat addition or something uh
you can use the forers law here so that
component needs to be taken care okay
this comes directly from your first CL
thermodynamics this entire thing can be
written also uh in terms of uh your
separate part which is uh basically your
pressure part and your diotic stress
part okay and you can take this uh
pressure part on the left okay so then
it will become Dy DX Z
row u a
e
plus P right uh
u p which is nothing
but Dy DX Z row
U okay e + P by row right so if you look
at this expression uh this is nothing
but
your internal energy kinetic energy plus
your pressure energy P by R right so
this is you can write it in terms of
enthalpy right remember H equal to e +
PV right so that uh e+ P by row right so
you can write it Del by delx
Z is equal to row u j h okay by just
taking your B term on the left side okay
and then remaining terms are as it
is okay and then you can use the foror
law so that will be QJ is equal to minus
K which is K the thermal
conductivity uh DT by D
X
okay so you can express your thermal
cond term in terms of your temperature
gradient right so uh from this what you
can do you have the total energy
equation okay you can write in any form
that you want so you can get an equation
called the thermal energy
equation what thermal equation basically
you want to subtract the kinetic energy
term from the total energy term so that
will Beal total
energy minus your kinetic
energy okay equation
so if you do that we have already
derived the kind equation earlier and we
have also uh just saw the the total
energy equation so you'll get an
equation in terms of your just internal
energy okay so you have this is small is
just the internal energy so we had this
row e and then we did minus row K so
that is row e
+ K minus row K so you got this row e so
you have the expression for internal
energy okay and similarly you will'll
have this convection term convection
internal energy uh due to the pressure
okay this is due to the expansion or
contraction okay and then of course so
what was positive here D QJ by D
XJ
okay okay this is minus DQ by DX a and
plus this is the visus disspation term
that you have derived in the ktic energy
equation right we had two terms in uh
the first coent of visity second coent
of visity so this is the viscous
disspation
term okay so what it says is that your
internal increases because of the
convergence of heat okay this one okay
uh the volume compression which is this
one okay the compression expansion
whatever it is with is expansion then
the internal ener will decrease okay and
last one is the uh heating due to the
VIS because of dissipation the heat will
increase okay so this is your thermal
expression so equation so some in some
of the Cotes you may use the total
energy equation in some other codes you
may use the thermal energy equation for
example in many pressure based solver
the thermal energy equation is employed
but in the compressible solver usually
you consider both the total thermal
energy as well as the kinetic energy
okay and this is the last approximation
okay we can use the bujus approximation
basically typically Val it for low
speeds okay uh uh basically if the flow
uh speed is not very high and the the
dissipation then in that case will not
be very high okay so what you can do so
the earlier equation this equation can
be written as uh Row D E by DT in total
energy term is equal to minus P d. U
minus D
QJ by D XJ and plus Epsilon
right this left I express in terms of
completely total derivative and decition
goes to zero okay and we can absorb this
term on the left minus p. U this will
become Row D H by
DT okay where is the enthalpy now is
equal to minus D
QJ by D
XJ right and then you can write this H
equal to
CP T right for a calorically perfect gas
so then U you can write this expression
as row CP d h by
DT is equal to minus D QJ by D
XJ and if you use the four years law
okay so then it will become K del2
T
okay by DX P okay you will have all the
three terms okay plus Del T by D y² plus
Del T by d z s right this is your term
and you can take this on the row CP on
the right side so this is row CP DH by
DT so DH by DT will become equal to K by
R
CP into d s
t right where k r CP can be written as
Kaa okay which is nothing but the
thermal diffusibility
okay so we saw many different forms of
the the equation we saw the contic
energy equation also called the
mechanical energy equation there you can
also include the potential energy term
there uh we saw the total energy
equation where we have both the kinetic
energy plus your thermal energy and then
you can write in terms of thermal energy
equation also where you may not consider
the the equation and in the buus limit
basically for the low speeds where the
disspation can be ignored we can get a
very simple form which isry DT by DT
okay CP DT by
DT
okay so you can write the equation for
temperature here in the buus limit okay
so with that we will stop here in the
next class we'll see how we can write
this entire equations in The Matrix form
so that it is easy to solve it uh uh in
a coupled manner okay let's say you want
to solve both all the mass momentum
energy together it will good to write in
a form where you can take the
temperature terms together the adversion
terms together the dis terms together
and so on and so forth okay so we'll
look at that in the next class thank you
very much
[Music]
[Music]
[Music]
