|
[Sponsors] |
pressure force calculation in compressible solvers |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 26, 2015, 11:54 |
pressure force calculation in compressible solvers
|
#1 |
New Member
Silvan
Join Date: Jun 2014
Posts: 12
Rep Power: 12 |
Dear foamers,
I wish you a sunny and happy day! :-) I am trying to understand the way OpenFOAM calculates the pressure force via the function "forces". This topic has already been enlightened partially by the following post: http://www.cfd-online.com/Forums/ope...tml#post183147 Unfortunately, it is only for incompressible solvers. Now, I would like to extend my understanding to compressible flows. I found the lines of code in forces.c where e.g. the pressure force is being calculated: Code:
891 vectorField fN 892 ( 893 rho(p)*Sfb[patchI]*(p.boundaryField()[patchI] - pRef) 894 ); I then tried to understand the role of pRef. I came that far (incomp+comp): if one of the BC for p are fixedValue then pRef does not come into effect. But, when I don't specify a fixedValue the solver takes the pRefValue defined in fvSolution. Please correct me, if I am wrong, so far. My questions are: 1) Why is pRef subtracted? In my understanding it would make more sense to add it to p... 2) Why is pRef in the formula used in the compressible case? Isn't p already in absolute readings? Please enlighten me. 3) How does the direction come into play (it is defined as a vectorField...)? I guess that information has to be in Sfb. Please help me to understand this. I am already looking forward to your answers. Sorry, for stealing your time on such a sunny day... :-) Thank you, Silvan |
|
December 8, 2015, 14:07 |
|
#2 |
New Member
LU
Join Date: Oct 2015
Posts: 11
Rep Power: 11 |
hey, i think i know the answer:
if we have a closed body, eg. an airfoil. In this case reference pressure does not matter because it will cancel out: sum of face normals on a closed surface is zero. That takes care of all closed bodies, cars, planes etc. so when we calculate the force of a closed body, openfoam use the pressure difference p-pref ,because pref is the same everywhere, it makes no contribution to the forces. Last edited by louvel; December 16, 2015 at 08:18. |
|
December 9, 2015, 03:55 |
|
#3 |
New Member
Silvan
Join Date: Jun 2014
Posts: 12
Rep Power: 12 |
good morning,
sorry, no answer yet on all questions... if anyone could point me to the correct answers, I would be very happy! :-) |
|
December 10, 2015, 10:00 |
|
#4 | |
New Member
LU
Join Date: Oct 2015
Posts: 11
Rep Power: 11 |
Quote:
we need delta P to calculate the pressure forces. so we can get the delta P by subtracting pRef.... vectorField pf(Sfb[patchi]*(p.boundaryField()[patchi] - pRef)); |
||
Tags |
compressible, forces |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
decreaing pressure force in 2phase model | michaelzhang | FLUENT | 0 | February 26, 2010 09:27 |
pressure force and viscous force | CFD | FLUENT | 0 | March 7, 2006 02:03 |
Too high pressure force ? | Tim Franke | Main CFD Forum | 1 | March 15, 2000 00:36 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |