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

Calculating kinetic energy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2008, 12:44
Default Is there a tool available to c
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Is there a tool available to calculate the kinetic energy for one or all timesteps of a calculation?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   October 31, 2008, 15:55
Default I don't think there is no exis
  #2
Member
 
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17
villet is on a distinguished road
I don't think there is no existing utility for kinetic energy.

Don't be afraid to take the next step. You can utilize a postprocessing utility for velocity field (.../applications/utilities/postProcessing/velocityField/).

- Copy a utility folder to a new name (for example "cp -r Lambda2 KE")
- Change the file name (Lambda2.C->KE.C) corresponding to your new utility and make the same change in "/Make/files"-file - don't forget to change the executable file name (Lambda2->KE)
- Run command "wmake" in your new utility folder... and hopefully you get a successful compilation. Test if you can run it by typing "KE" (ok, the utility does the same thing as the original and you'll get an error because you're not in the case folder)
- Now modify the "KE.C" file. Remove "gradU" and "SSplusWW" definitions. Rename any "Lambda2" to "KE" in the file. The last line (-eigenvalue...) in the scalar field definition is crucial. Change that to "0.5*U&U". Isn't that what you want to calculate from velocity field?
- Recompile the utility "wmake" and try it with your case.

Hope that works since I didn't test it by myself But you got the idea what's the most powerful thing in OpenFOAM!
villet 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
turbulent kinetic energy mike CFX 2 November 30, 2006 09:31
kinetic energy jj Main CFD Forum 7 November 18, 2006 09:55
Kinetic Energy Gradient sebastien FLUENT 2 July 25, 2006 10:11
Turbulent Kinetic Energy Meri CFX 0 February 22, 2005 07:00
kinetic energy. A. Student Main CFD Forum 2 October 31, 2001 16:10


All times are GMT -4. The time now is 23:41.