CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Calculating Forces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2017, 14:59
Default Calculating Forces
  #1
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 9
Friendly is on a distinguished road
Hi,

I intend to calculate the drag and lift on a body. Therefore I would like to know how OpenFOAM calculates those forces. I have no troubles to make the solver calculate thoses forces but I would like to interpret them and therefore I need to know how they are calculated.

In forces.C it appears, that OpenFOAM calculates a total force by integrating the pressure over a surface. The projection in a given direction is the drag force. But what about viscious drag?

Can anybody help me with that?
Friendly is offline   Reply With Quote

Old   November 30, 2017, 23:08
Default
  #2
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hi,

I took a quick look in the "forces.C" file and I think it should be something close to this:

In the "forces.C" file you will find the function

Code:
void Foam::functionObjects::forces::calcForcesMoment()
in which the pressure, viscous and porous forces are calculated separately. The viscous forces, for instance, are stored as a "vectorField", through an object called "fT" and it is calculated in its construction as follows:

Code:
vectorField fT(Sfb[patchi] & devRhoReffb[patchi])
Somewhere it should have a loop to sweep all surfaces from a given [patchId].

Hope it helps.

Regards, Lisandro Maders
Lisandro Maders is offline   Reply With Quote

Old   December 1, 2017, 07:26
Default
  #3
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 9
Friendly is on a distinguished road
Thank you very much, it does.

I have found this as aswell (and for fN aswell). I have two questions for the second line of code you have posted:

What excatly does "&" mean? And what is "Sfb"? B stands for boundary, but why excatly is Sf? I think it has to be the normal vector fo the surface times the are of the surface (surface of the face).
Friendly 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
Help! problems in calculating forces with SimpleFoam DLC OpenFOAM 3 April 26, 2022 00:43
Problem calculating forces on blades 2 (for finding forces) bye bye my blue OpenFOAM Running, Solving & CFD 16 April 19, 2018 11:48
calculating forces from forceDensity achyutan OpenFOAM Running, Solving & CFD 0 August 6, 2013 08:37
Calculating forces on a non-closed surface ScottN FLUENT 0 March 1, 2011 18:18
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 17:23.