|
[Sponsors] |
April 12, 2019, 05:22 |
Why we need rhoEqn.H in rhoPimpleFoam
|
#1 |
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 9 |
Hello Foamers,
This has been a question that bothers me, why do we need to solve for density in the rhoPimpleFoam solver? I searched a lot on this forum but the threads I found are not that clear. For the rhoPimpleFoam solver, here's what I understand. The solver first solves the momentum equation (UEqn.H), then energy equation (EEqn.H), then the pressure equation (pEqn.H) and additional equations like turbulent ones. At the end of the EEqn.H, there's thermo.correct(), which means properties like viscosity, thermal diffusivity and temperature are updated. At the beginning of the pEqn.H, there's rho = thermo.rho(), so density is updated before the pressure is solved. However, after the pressure is solved, there's #include "rhoEqn.H" (line 84 of pEqn.H, OpenFOAM-4.x), then there's another rho = thermo.rho() line (line 91 of pEqn.H, OpenFOAM-4.x). Why do we need to solve an equation for density when density has already been (and should be) determined by the equation of state? Won't this give you a density field that is not consistent with the equation of state? Also, why do we need to update the density twice in the pressure equation? In rhoSimpleFoam the rho = thermo.rho() line only appears once at the end of the pEqn.H. I feel like this can be a problem related to compressible flows. I've mainly dealt with incompressible flows so it's hard for me to go through these compressible solvers, although they use almost the same pressure-velocity coupling strategy. Thanks in advance, Ruiyan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
rhoPimpleFoam Boundary Condition Problem | dancfd | OpenFOAM Pre-Processing | 18 | September 16, 2021 07:43 |
rhoPimpleFoam gives stranger result ... and doesn't work | kin3062 | OpenFOAM Running, Solving & CFD | 16 | April 12, 2019 07:46 |
rhoPimpleFoam solver | adrieno | OpenFOAM Running, Solving & CFD | 11 | April 6, 2016 11:01 |
Pressure stair-step behaviour using rhopimplefoam | joegi.geo | OpenFOAM Running, Solving & CFD | 3 | December 12, 2014 12:10 |
rhoPimpleFoam floating point error | dancfd | OpenFOAM Running, Solving & CFD | 6 | January 5, 2014 20:57 |