CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Monitoring pressure force on moving body (interFoam) (https://www.cfd-online.com/Forums/openfoam/220058-monitoring-pressure-force-moving-body-interfoam.html)

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.