|
[Sponsors] |
Integration of wallShearStress over the surface of a body |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 27, 2020, 15:04 |
Integration of wallShearStress over the surface of a body
|
#1 |
New Member
Icaro A. Carvalho
Join Date: Dec 2020
Posts: 24
Rep Power: 5 |
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 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 22:12. |
|
Tags |
integral, openfoam, shear, surface |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Surface body issue | D0ubleU | ANSYS Meshing & Geometry | 0 | April 29, 2016 05:46 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03:09 |
[DesignModeler] Smaller surface body from face | bongbang | ANSYS Meshing & Geometry | 1 | June 29, 2015 03:28 |
[DesignModeler] Boolean Subtract of a body and a surface | KrishnaSandeep | ANSYS Meshing & Geometry | 2 | April 1, 2015 16:55 |
Free surface and moving body | Steve | Siemens | 4 | August 20, 2004 12:06 |