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/)
-   -   Output force distribution for each face on a patch (http://www.cfd-online.com/Forums/openfoam-post-processing/93573-output-force-distribution-each-face-patch.html)

meh October 19, 2011 11:21

Output force distribution for each face on a patch
 
Hello.

I'm really sorry if this question has already been asked, I couldn't locate the solution in the forums.

I can output the integrated pressure and viscous forces on a patch using libforces.so. I've also managed to output pressures and stresses per face using the sample function.

What I need is the forces per face on a patch, together with the coordinates and area of each face. I'll be using this to input to a fluid structure interaction model.

Can anyone advise how to output the distribution of forces on a patch, rather than just the integrated value?

Thanks very much for your time

Matt

boger October 20, 2011 09:25

I'm not sure I understand. If you're able to output the pressure and viscous stress per face, then don't you just need to multiply by the face area?

meh October 20, 2011 09:27

Hi David

Thanks very much for your reply. Using sample i've only managed to output a vtk file, which doesn't have face areas in it. Can I output face area using sample?

Thanks very much

Matt

boger October 20, 2011 09:37

Ah - now I understand, but I don't know the answer. I assumed you were modifying a utility like patchIntegrate or wallShearStress, in which case you should be able to modify the utility slightly to write out what you need. Someone else probably has a more elegant solution.

meh October 20, 2011 11:07

I'll have a look at these utilities, thanks. If there any other ideas out there I'd be glad to hear them.


All times are GMT -4. The time now is 01:16.