CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

The sign of the total forces acting on an object in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2021, 18:46
Default The sign of the total forces acting on an object in OpenFOAM
  #1
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Hello,

I have a small issue with the sign of the total force acting on an object. I have used OpenFOAM to compute the forces. I have also computed the wall Shear Stress field on that surface.

I am trying to compute the same total force but in paraview by integrating the following:

Code:
-rho*p*Normals + rho*wallShearStress
I get the exact same result compared to the one computed by OpenFOAM except the sign is the opposite.



so in order to get the same results as OpenFOAM I had to do:

Code:
rho*p*Normals - rho*wallShearStress
Could someone please clarify why the sign is inversed? because as far as I understand the minus should appear in the first term not the second.

I am grateful to your help
Attached Images
File Type: png formula_and_figure.png (57.3 KB, 6 views)
NotOverUnderated is offline   Reply With Quote

Old   October 31, 2021, 20:09
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Well done Paraview well done!

It turns out that Paraview inverses the surface normals! I had to flip them and use the "correct formula":

Code:
-rho*p*Normals + rho*wallShearStress
And then integrate that over the surface to get the exact same result compared to OpenFOAM results.

(See the attached image to see the flipped normals )
Attached Images
File Type: png normals.png (86.0 KB, 7 views)
NotOverUnderated is offline   Reply With Quote

Reply


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
[OpenFOAM.org] Instructions to install OpenFOAM-2.4.x on CentOS-6.10 redbullah OpenFOAM Installation 9 September 7, 2019 18:18
getting wrong forces and force coefficients in openfoam maddy11 OpenFOAM 2 January 23, 2019 02:09
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36


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