# [OpenFOAM] spatial distribution of force coefficients in paraview&openfoam

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

 April 17, 2013, 05:03 spatial distribution of force coefficients in paraview&openfoam #1 Senior Member   Join Date: Jan 2013 Posts: 134 Rep Power: 13 hi everyone! i am now doing some simulations about flow around a 3D cylinder with OpenFOAM. The simulation goes well but i got a problem with post-processing. basically i need to get the spatial distribution of the force coefficients on the surface along the span wise direction, as is shown in the picture below. i know that adding functions in controlDict could give me the force coefficients, but that seems to be the average value along the whole cylinder, which is not what i want. is there anyone who knows how to do this in paraview? any help is appreciated!

April 21, 2013, 07:15
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
Quote:
 Originally Posted by kkpal hi everyone! i am now doing some simulations about flow around a 3D cylinder with OpenFOAM. The simulation goes well but i got a problem with post-processing. basically i need to get the spatial distribution of the force coefficients on the surface along the span wise direction, as is shown in the picture below. i know that adding functions in controlDict could give me the force coefficients, but that seems to be the average value along the whole cylinder, which is not what i want. is there anyone who knows how to do this in paraview? any help is appreciated!
Paraview can only work with data that has been written to disk. AFAIK the forcesCoeffs-functionObject doesn't write it to disk. What you can do is replicate the calculations it does using the primitive Values (density, velocity etc) that get written. For that you can use the (Python)-Calculator in Paraview. There are other ways too but these involve programming and/or ThirdPArty-software
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request

 Tags cylinder, force coefficients, spatial distribution