# extracting kinetic energy

 Register Blogs Members List Search Today's Posts Mark Forums Read

 November 12, 2009, 03:32 extracting kinetic energy #1 New Member   Argse Join Date: Nov 2009 Posts: 3 Rep Power: 8 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

 November 13, 2009, 04:44 #2 Senior Member   Suresh kumar Kannan Join Date: Mar 2009 Location: Luxembourg, Luxembourg, Luxembourg Posts: 129 Rep Power: 9 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 Calculating kinetic energy hope it helps. bye K.Suresh kumar

 November 13, 2009, 10:18 #3 New Member   Argse Join Date: Nov 2009 Posts: 3 Rep Power: 8 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

 November 13, 2009, 13:24 #4 New Member   anonymous Join Date: Nov 2009 Location: Switzerland Posts: 8 Rep Power: 8 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?

 November 13, 2009, 14:25 #5 New Member   Argse Join Date: Nov 2009 Posts: 3 Rep Power: 8 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?

 November 13, 2009, 17:23 #6 New Member   anonymous Join Date: Nov 2009 Location: Switzerland Posts: 8 Rep Power: 8 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 .

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Boerge FLUENT 1 September 8, 2012 11:41 Craig FLUENT 3 September 8, 2012 11:34 Joseph CFX 14 April 20, 2010 15:45 Jenny CFX 3 November 19, 2008 21:12 lcw FLUENT 1 June 13, 2006 03:08

All times are GMT -4. The time now is 10:25.