CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Forces function object (https://www.cfd-online.com/Forums/openfoam-solving/252919-forces-function-object.html)

nelsonka November 12, 2023 11:47

Forces function object
 
Hi,
I'm trying to analyse forces related to flow through pipe (for further usage in FSI). I'm using pimpleFoam. For such purpose I'm using forces function object (https://www.openfoam.com/documentati...es-forces.html), however the only result I'm obtaining is the force integrated over entire surface, which is saved in the .dat file. Is there a way to use this function object to calculate force vector field for every mesh element on surface and write it in mesh itself during runtime (similar to vorticity or wallShearStress)?

Yann November 13, 2023 03:25

Hello,

Yes there is a way:

Quote:

// Store and write volume field representations of forces and moments
writeFields yes;
Cheers,
Yann


All times are GMT -4. The time now is 03:24.