|
[Sponsors] |
September 9, 2015, 09:06 |
Pressure equation for compressible solver
|
#1 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
Hello!
I was trying to understand how the pressure equation(how 'p' is calculated) is formulated for a compressible flow(pressure based solver). I looked up openfoam's simpleFoam & rhoSimpleFoam to understand the differences but things are still unclear. rhoSimpleFoam fvScalarMatrix pEqn ( fvm::div(phid, p) - fvm::laplacian(rho*rAU, p) == fvOptions(psi, p, rho.name()) ); simpleFoam fvScalarMatrix pEqn ( fvm::laplacian(rAU, p) == fvc::div(phiHbyA) ); Could someone help me with these equations? Another thing I noticed in the rhoSimpleFoam solver is that they use setReference for pressure....I thought this referencing is needed only for incompressible flows that do not have any pressure boundaries so that the pressure values are not floating. pEqn.setReference(pRefCell, pRefValue); So why is this used in the compressible solver? Regards Akshay |
|
September 12, 2015, 07:29 |
Shoutout to bruno!!
|
#2 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
Hey Bruno!!! As usual...I'm relying on you to point me in the right direction
|
|
September 12, 2015, 16:55 |
|
#3 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Your question is not clear. What exactly don't you understand? Quote:
Beyond this, this pressure referencing is needed when no boundary condition defines a pressure value, e.g. if all BCs are zero gradient, then the equation would be undefined, hence the need for a reference pressure value in a specific point. |
|||
September 18, 2015, 10:24 |
|
#4 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
1. I basically wanted to know the difference between the pressure equations solved for an incompressible flow and pressure equation for a compressible flow.
2. Regarding reference pressure locations - I think some of the commercial codes use this only for incompressible solvers. Right? If yes, then why is that? |
|
September 19, 2015, 13:07 |
|
#5 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Akshay,
Quote:
Anyway, the reason why I don't understand you question is as follows... rhoSimpleFoam Code:
fvScalarMatrix pEqn ( fvm::div(phid, p) - fvm::laplacian(rho*rAU, p) == fvOptions(psi, p, rho.name()) ); Code:
fvScalarMatrix pEqn ( fvm::div(phid, p) - fvm::laplacian(rho*rAU, p) == 0 ); Code:
fvScalarMatrix pEqn ( fvm::laplacian(rho*rAU, p) == fvm::div(phid, p) ); Code:
fvScalarMatrix pEqn ( fvm::laplacian(rAU, p) == fvc::div(phiHbyA) ); Does this answer your question? If not, then please be specific about what you want to understand . Quote:
The missing detail is probably what you're not asking: Why is the pressure relative to a reference value and not absolute? A few answers:
Bruno
__________________
|
|||
September 21, 2015, 04:03 |
|
#6 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
Thanks Bruno and I apologize for not being able to hit the nail on the head with regards to my questions. Things are clear now but I have a follow up question ....
Akshay |
|
September 21, 2015, 13:21 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
September 28, 2015, 05:47 |
|
#8 |
Member
Akshay Kumar
Join Date: Aug 2010
Location: India
Posts: 84
Rep Power: 16 |
Hmm...to continue on this topic....
Interestingly, it looks like this referencing is not used for rhoPimpleFoam pressure equation but it is used for rhoSimpleFoam. What does steady or transient have to do with referencing the pressure value?? |
|
October 3, 2015, 10:22 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Akshay,
From what I can deduce, there are at least two possible reasons:
Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 08:54 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
static vs. total pressure | auf dem feld | FLUENT | 17 | February 26, 2016 14:04 |
lid-driven cavity in matlab using BiCGStab | Don456 | Main CFD Forum | 1 | January 19, 2012 16:00 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 03:15 |