CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How does OpenFoam compute forces? (https://www.cfd-online.com/Forums/openfoam-post-processing/175791-how-does-openfoam-compute-forces.html)

demo August 5, 2016 07:03

How does OpenFoam compute forces?
 
Hello guys.

I'm in trouble with the OpenFoam post-processing phase, and maybe someone can help me about this. Actually I can run a OF simulation, and everything It looks good, with the post-processing done by OF. To be more precise, maybe It's userful for you, what I'm studying is a turbolent flow on a ship hull to compute the water resistance.

As I allready said, there is no problem with simulation: at the end, I found the file
Code:

forces.dat
where for each time step I have forces and momentum. So that's ok.

Now the hard part: I have to compute the same forces on VTK file (for result validation), but I don't find a way to do this.
In conclusion, does someone know the exact formula used by OF to compute forces? (I allready look at source code of libforces, and the documentation of course, but I didn't find anything)

Alternatively, is there OF utilities, or similar program, to get the viscosity and pressure forces starting by a VTK file?

Thanks


All times are GMT -4. The time now is 19:43.