CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

extracting kinetic energy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2009, 02:32
Default extracting kinetic energy
  #1
New Member
 
Argse
Join Date: Nov 2009
Posts: 3
Rep Power: 16
argse2 is on a distinguished road
hi foamers,

I am new to openfoam. i created a mesh and modified pisoFoam to my case.
now I need to know the kinetic energy m/2 * v of each control volume.
Is there a post processing tool, a function in paraFoam which can do that task?
Otherwise I like to know how to read the solution domain mesh and iterator through all cells.

best regards and thx
argse2 is offline   Reply With Quote

Old   November 13, 2009, 03:44
Default
  #2
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Hello,
I think there is no direct utility to extract kinetic energy, but it is possible by simple coding and compiling.
It is also a good excercise for understanding the way to make a new application and compile it.

I looked in to this post and did exactly as it is specified in this post and my utility to extract KE was ready. So i want you to check this link

http://www.cfd-online.com/Forums/ope...ic-energy.html

hope it helps.
bye
K.Suresh kumar
kumar is offline   Reply With Quote

Old   November 13, 2009, 09:18
Default
  #3
New Member
 
Argse
Join Date: Nov 2009
Posts: 3
Rep Power: 16
argse2 is on a distinguished road
Hi Kumar,

thx alot. coding seems to be quite easy. but according to linked post, shouldn't it be
0.5 * m * U & U or am i completely wrong?

best regards
argse2 is offline   Reply With Quote

Old   November 13, 2009, 12:24
Default
  #4
New Member
 
anonymous
Join Date: Nov 2009
Location: Switzerland
Posts: 8
Rep Power: 16
muellea is on a distinguished road
Well, it depend on what you wan't to know. If you wanna know the kinetic energy of your entire computational domain, then you are right (you have to take the total mass then).
But in most cases you are interested in a kinetic energy field, so it is convenient to represented:
  • either mass-specific: 0.5*U*U
  • or volume-specifc: 0.5*rho*U*U
The other representation with the mass is not used in continuums mechanics, since the mass of a particle (cell) is grid-dependent.

do you agree?
muellea is offline   Reply With Quote

Old   November 13, 2009, 13:25
Default
  #5
New Member
 
Argse
Join Date: Nov 2009
Posts: 3
Rep Power: 16
argse2 is on a distinguished road
hi muellea,

i agree with you. thx.

maybe my previous post have been to vague.

i need to compare the solution of our inhouse fv solver with those of openfoam. our solver computes the volume of each control volume, multiplies it with the fluid's density and the mass specific kinetic energy as i (almost) wrote in my initial question.

so 0.5 * rho * mesh.V() & U & U should do the job if openfoam computes on the same grid than ours?
argse2 is offline   Reply With Quote

Old   November 13, 2009, 16:23
Default
  #6
New Member
 
anonymous
Join Date: Nov 2009
Location: Switzerland
Posts: 8
Rep Power: 16
muellea is on a distinguished road
Hi Argse2,

sorry i should have read your first post properly. I think it should work like that, except that i would take 0.5*rho*mesh.V()*U&U, since the & stands for the inner product and Mesh.V() and rho are as far as i know scalar-fields, whereas U is a vectorfield.

Hopefully you get it run. And let's see whether Openfoam beats your inhouse solver .
muellea is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LES and total turbulent kinetic energy Boerge FLUENT 1 September 8, 2012 11:41
How to view subgrid kinetic energy Craig FLUENT 3 September 8, 2012 11:34
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
Mean flow kinetic energy Jenny CFX 3 November 19, 2008 20:12
what's the macro of SGS turbulent kinetic energy? lcw FLUENT 1 June 13, 2006 03:08


All times are GMT -4. The time now is 04:27.