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

pressure force calculation in compressible solvers

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By silvan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2015, 11:54
Default pressure force calculation in compressible solvers
  #1
New Member
 
Silvan
Join Date: Jun 2014
Posts: 12
Rep Power: 12
silvan is on a distinguished road
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 );
This is the same formula for incompressible and compressible solvers. In the incompressible case, rho(p) is the density specified by rhoInf in the dict fvSolution. In compressible cases rho(p) is 1. This can be found in the source code. So far, everything is clear.
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
louvel likes this.
silvan is offline   Reply With Quote

Old   December 8, 2015, 14:07
Default
  #2
New Member
 
LU
Join Date: Oct 2015
Posts: 11
Rep Power: 11
louvel is on a distinguished road
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.
louvel is offline   Reply With Quote

Old   December 9, 2015, 03:55
Default
  #3
New Member
 
Silvan
Join Date: Jun 2014
Posts: 12
Rep Power: 12
silvan is on a distinguished road
good morning,
sorry, no answer yet on all questions...
if anyone could point me to the correct answers, I would be very happy! :-)
silvan is offline   Reply With Quote

Old   December 10, 2015, 10:00
Default
  #4
New Member
 
LU
Join Date: Oct 2015
Posts: 11
Rep Power: 11
louvel is on a distinguished road
Quote:
Originally Posted by silvan View Post
good morning,
sorry, no answer yet on all questions...
if anyone could point me to the correct answers, I would be very happy! :-)
do you think it could be like this:

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));
louvel is offline   Reply With Quote

Reply

Tags
compressible, forces


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
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


All times are GMT -4. The time now is 01:09.