
[Sponsors] 
How to obtain turbulent kinetic energy data from LES model of Ansys CFX? 

LinkBack  Thread Tools  Display Modes 
September 20, 2009, 23:05 
How to obtain turbulent kinetic energy data from LES model of Ansys CFX?

#1 
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
Results files are obtained after simulating Stirred tank reactor and i would like to know the predictions of turbulence kinetic energy of the LES Smagorinsky model in the Ansys CFX 11. I can't find a procedure as LES doesn't directly calculate the kinetic energy. Please let me know if someone has an idea. Thanks


September 21, 2009, 18:25 

#2 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 11,594
Rep Power: 90 
You need to define the turbulence kinetic energy as a function of the velocity somehow. You can take time or space (or both!) averages of the velocity fields and use that to determine the averaged and fluctuating components. From the fluctuating component you can get k.
I discuss this in my PhD thesis, in the chapter where I look at the square piston engine (chapter 6 I think)  http://hdl.handle.net/2100/248 

September 21, 2009, 21:12 

#3 
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
I agree with you.I have found in the literature a correlation which states turbulence kinetic energy as a function of the velocity as shown below
k=k+k=1/2*(^2) here u represents the velocity, i represents repeted index. I don't understant the difference between and^2 I have even got time average of velocity fields. but i dont know (or i can't find out) how to use that to determine the averaged and fluctuating component. Can you help with this. Thanks Last edited by rsin; September 21, 2009 at 21:38. 

September 22, 2009, 06:59 

#4 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 11,594
Rep Power: 90 
Sounds like you need to read a text book about Reynolds and Fauve averaging. It is covered by any fluid mechanics textbook which develops the basics of turbulence modelling. In fact the CFX documentation even has a basic description of it, but a good textbook will introduce it to beginners better.
But to directly answer your question  if you have calculated the average velocity field then you simply need to calculate the average of the square of the velocity and then some simple postprocessing in CFDPost and you are done. 

July 8, 2010, 20:15 

#5 
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
after lot of serach, a very easy method was found through CFX help files.
they state that turbulent kinetic energy for LES = 1/2 * (Velocity.Trnrms^2 Velocity.Trnavg^2) or = 1/2 * (statistics reynolds stresses uu + ...vv + ....ww) statistical reynolds stresses are automatically calculated for the LES/SASSST and DES models. While .Trnrms and .Trnavg files are transient result files that have to be turned on in the output section. Just to save you a whole lot of time. Last edited by rsin; July 15, 2010 at 03:20. Reason: put the formula´s in the wrong place 

December 6, 2011, 05:36 

#6  
Senior Member
Lance
Join Date: Mar 2009
Posts: 563
Rep Power: 11 
Quote:


December 6, 2011, 07:53 
Here is a detailed explanation

#7 
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
In order to find the energy dissipation rate, it is essential to understand the way in which kinetic energy is transferred between the filtered velocity field and the residual motions. The filtered kinetic energy Average of E (x,t) is obtained by filtering the kinetic energy field E (x,t) = 1/2 * average of (U * U)
or Average of E = 1/2 * average of (U * U) (1) It can be further decomposed as: Average of E = Ef + kr (2) Where Ef, the kinetic energy of the filtered velocity field, and kr the residual kinetic energy, are given by Ef = 1/2 * average of (U ) * average of ( U)(3) kr = 1/2 * Average of (U * U)  Average of (U) * average of (U) = 1/2*tauiiR(4) The conservation equation for Ef is: DEf/Dt – delta/deltaxi [ average of Uj ( 2 * mu * average of Sij – tauijr  average of p/ ro * deltaij)] =  εf  Pr(5) where epsilonf and Pr are defined as epsilonf = 2 * mu * average of Sij * average of Sij(6) Pr =  tauijr * average of Sij(7) where average of Sij is the filtered rate of strain and tauijr is the anisotropic residualstress tensor and defined as: tauijr = tauijR  2/3 * kr * deltaij(8) where deltaij , the kronecker delta, and tauijR, the residual –stress tensor, are defined as: deltaij= 1 when i = j and =0 when i is not equal to j(9) tauijR = Average of (Ui * Uj)  Average of (Ui) * average of (Uj)(10) In Equation 5, terms of the left hand side represents the transport and the ones on the right hand side represents the sink terms. The first sink term – εf corresponds to the viscous dissipation directly from the filtered velocity, and at high Reynolds number with filter width much larger than the Kolmogorov scale, this term is relatively small. The second sink term  Pr, which appears as a source term ( + Pr) in the equation for kr, is the rate of production of residual kinetic energy in the equation of Ef; therefore, it represents the rate of transfer of energy from the filtered motion to the residual motions. Sometimes, it is referred as the subgrid scale (SGS) dissipation and denoted by εs. At high Reynolds number the filtered velocity field accounts for nearly all of the kinetic energy: average of E is practially to E (11) As seen above, the dominant sink for average of E is Pr, whereas that in the equation for E for twoequation models is the rate of dissipation of kinetic energy, ε; consequently: Pr is practically equal to ε (12) Hence, ε is practically equal to Pr =  tauijr * average of Sij (13) Now, both terms average of Sij and tauijr can be obtained directly from the transient results file and they need to be averaged with time. There are two different kinds of energy dissipation rates: solved and SGS. Solved, which is comparatively much smaller and can be neglected, is represented by the term εf, and SGS is represented by Pr, which is the dominant term and accounts for nearly all of the energy dissipation. 

December 7, 2011, 03:56 

#8 
Senior Member
Lance
Join Date: Mar 2009
Posts: 563
Rep Power: 11 
well, that's straight out of Turbulent Flows by Pope, right?
My question was if there's a way to estimate the contribution to k from the subgrid model. 

December 7, 2011, 10:32 

#9 
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
Hello Lance,
Yes, the equations are st out of the book by Pope and it helped me in understanding how and why k for LES = 1/2 * (Velocity.Trnrms^2 Velocity.Trnavg^2) or = 1/2 * (statistics reynolds stresses uu + ...vv + ....ww) This is what i understand when i compare the equation 4 with these equations. If you think this is wrong then please do share the point of view which led you to that belief. If you find another way of calculationg k and epsilon, then plese do share it. Thanks & Regards 

October 2, 2014, 04:10 

#10  
Member
Peter
Join Date: Nov 2011
Posts: 45
Rep Power: 6 
Quote:


October 13, 2014, 09:24 

#11 
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
"By "average of", did you mean "filtered"?"
By average of i meant average or mean. If you have access to the data at each timesetp, then you can do a average by yourself.. it should be easy. In Fluent for LES and DNS, there is access to the twelve gradients, so you can estimate epsilon directly by doing a ensemble average of these gradients and then summing them up as shown by Sharp and Adrian (2001) PIV Study of SmallScale Flow Structure around a Rushton Turbine. Although, if mesh is not equivalent o Kolmogorv, DNS will be underpredicting because of unavailbility of the smallest scales while for LES, a sgs models data is available which you can estimae for the unfiltered part. Cheers 

October 21, 2015, 07:27 
Another method which is more direct

#12  
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8 
There is a second direct method with which there are no arguments.
Create a 2D plane (2d plane instead of 3d to reduce amount of data and offcourse size of the files) in your geometry and extract data for each timestep in that plane. choose the three velocity components, the three directions and any other parameters that you wish. Now, i extracted these parameters in the *.txt files and then used matlab to create matrices for each parameter. This way you will have instantaneous velocity profiles at each timestep. averaging over the whole timestep will give you the mean velocity flow profiles.. Then substracting the mean from each instantenous profile will give you the fluctuating component at each timestep. estimate the square of each component and then accordingly, you will have instantanous turbulence kinetic energy at each timestep. estimate the mean of TKE over the whole timestep to find the mean TKE. Its very easy to do all of this in matlab. If need be, i can help you with matlab code.. Quote:


Tags 
les, turbulence kinetic enregy 
Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
how to map resultd from cfx to ansys?  ritesh  CFX  2  June 1, 2011 07:52 
ATTENTION! Reliability problems in CFX 5.7  Joseph  CFX  14  April 20, 2010 15:45 
what's the macro of SGS turbulent kinetic energy?  lcw  FLUENT  1  June 13, 2006 03:08 
Turbulent Kinetic Energy In LES  CfdStudent  FLUENT  0  January 11, 2006 11:02 
FSI using CFX and ANSYS  Bi Chang  CFX  2  May 10, 2005 04:47 