CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Monitoring pressure force on moving body (interFoam) (

chivaee August 22, 2019 05:55

Monitoring pressure force on moving body (interFoam)
Hello all, To diagnose the floating body solver, I would like to monitor fluid forces on moving bodies at different stages of the simulation. Here I am using OF18.12's interFoam and with would like to write out total force (summed over the rigid body) vector to the log file before and after mesh.update() inside the PIMPLE loop.

Can anyone suggest what is the most efficient way to do so? Many thanks.

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