CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Get the total Forces in OpenFOAM (http://www.cfd-online.com/Forums/openfoam-post-processing/121556-get-total-forces-openfoam.html)

HHOS July 31, 2013 09:54

Get the total Forces in OpenFOAM
 
Hello everyone!

I'm starting to use OpenFOAM 2.2.0 and I have set up a very simple case with a Sphere within a laminar flow, to compare the results with Fluent.

I have change the ControlDict file to get the Forces, but they are always divided into Pressure and Viscous forces and Moments. But I want them together... Something as simple as a sum of the values, but I have no idea about how to do it... I have wasted some time trying to use AWK functions to extract the values from the forces file, but I don't know programming such things and I didn't manage to get it :(.

It must be very simple, because they are important values...

If you have some piece of code to implement somewhere, it would be great!

Thank you very much!


All times are GMT -4. The time now is 02:46.