p_rgh advantage over p?
Hi Foamers,
I am studying numerics of FVM and CFD recently from various references in the context of its implementation in OpenFOAM. I would like to understand the advantage of using p_rgh field for pEqn over 'p' field. At, https://www.openfoam.com/documentati...orm-p-rgh.html it was mentioned to have numerical advantages. Can you please let me know what are those advantages? Thank you |
the advantage is the gradient of p_rgh and rhok can be discretized in the same way. For the case of a resting fluid the pressure gradient and the bouncy force should be in equilibrium. In the implantation in OF this is true as well in the cell centers as on the faces.
If the bouncy force is treated as source term this is not the case. If you look in the book "the finite volume method in computational fluid dynamics" of Moukalled, Mangani and Darwish you'll find some more detail. Best Michael |
Such advantage is just conventional. You could perfectly work with the dynamic pressure and the buoyancy term for the fluctuations over a statistical mean. That is, hydrostatic pressure of the background fluid balances exactly the MEAN defect buoyancy force. Therefore, you can just resolve for the fluctuations of density around said mean, using the dynamic pressure (understood as the thermodyn pressure minus the hydrostatic one).
In short: there is no such thing as a numerical 'advantage' in using one or other formulation. It's just more "confortable" when working with thermodynamic quantities. |
Quote:
Michael |
Quote:
Examples of a working code? There used to be a boussinesqPisoFoam in v 1.5 that didnt consider p_rgh. |
A perfectly Valid Buossinesq solver
Code:
//... |
HM. But in this version the old time step value of rho is used. Probably to stabelise the solution since in this way very high changes in time are damped. With the actual Version this is not required. So I guess it is numerically more stable
|
Quote:
BoussinesqPimpleFoam treats the buoyant term explicitely. Via the fvm::reconstruct the buoyancy term is calculated at the cells faces and set explicitely in the momentum equation. So, au contraire, my version is a bit more "stable" when using implicit time discretizations... |
All times are GMT -4. The time now is 03:39. |