extracting kinetic energy
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
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
hope it helps.
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?
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:
do you agree?
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?
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 ;).
|All times are GMT -4. The time now is 05:31.|