|
[Sponsors] |
November 28, 2017, 14:59 |
Calculating Forces
|
#1 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 9 |
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? |
|
November 30, 2017, 23:08 |
|
#2 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
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() Code:
vectorField fT(Sfb[patchi] & devRhoReffb[patchi]) Hope it helps. Regards, Lisandro Maders |
|
December 1, 2017, 07:26 |
|
#3 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 9 |
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). |
|
|
|
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 |