CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Integration of wallShearStress over the surface of a body

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2020, 14:04
Smile Integration of wallShearStress over the surface of a body
  #1
New Member
 
Icaro Amorim de Carvalho
Join Date: Dec 2020
Posts: 24
Rep Power: 5
PenPencil is on a distinguished road
Hi all,

I was wondering if you could help me integrate the shear stress over the surface of a 2D body. The problem is that of an incompressible, laminar and unsteady flow of a Newtonian fluid with a Gmsh-generated mesh.

First, I calculated the wall shear stress by the following:
Code:
pimpleFoam -postProcess -func wallShearStress

Second, I tried:
Code:
postProcess -func 'patchIntegrate(name=cylinder1,wallShearStress)'

to integrate the wall shear stress over my patch 'cylinder1'. As a result, I have gotten the directory postProcessing/patchIntegrate\(name\=cylinder1\,wallShearStress\) with a '.dat' file. I believe my procedure is not correct, since a vector was written in the '.dat' file, as opposed to finding the result of \int\tau \text{ d}A which is a scalar.
However, I have not figured out how to properly do this. Could anyone help, please?

Notes:
1 - I gather Paraview usually is a solution to this as well from older threads, but I intend to use a script and Paraview would not fit into my purposes. But indeed, my calculation does not have to be done using some built-in function of OpenFOAM, as I could post-process elsewhere, provided I had the lengths/areas corresponding to the wall shear stress on each edge of the mesh.
2 - Undoubtedly, OpenFOAM API library and C++ are quite useful in situations like this one, but I am not experienced in them (and to be honest, this is probably the one time in my research that this knowledge would be useful to me, which explains why I haven't felt motivated to learn them...). If you could help me with a solution other than those involving this, I would be most grateful!



Thank you so much

Best regards,
I.

Last edited by PenPencil; December 27, 2020 at 21:12.
PenPencil is offline   Reply With Quote

Reply

Tags
integral, openfoam, shear, surface


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] Surface body issue D0ubleU ANSYS Meshing & Geometry 0 April 29, 2016 04:46
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
[DesignModeler] Smaller surface body from face bongbang ANSYS Meshing & Geometry 1 June 29, 2015 02:28
[DesignModeler] Boolean Subtract of a body and a surface KrishnaSandeep ANSYS Meshing & Geometry 2 April 1, 2015 15:55
Free surface and moving body Steve Siemens 4 August 20, 2004 11:06


All times are GMT -4. The time now is 00:05.