CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   BuoyantboussinesqPimpleFoam: which velocity is used for scalar transport equation. (https://www.cfd-online.com/Forums/openfoam-programming-development/176319-buoyantboussinesqpimplefoam-velocity-used-scalar-transport-equation.html)

pvpnrao August 16, 2016 01:33

BuoyantboussinesqPimpleFoam: which velocity is used for scalar transport equation.
 
Dear All

I have a pretty basic question with regard to buoyantboussinesqPimpleFoam. In the main solver the code is written as (I am using OpoenFOAM 2.2.2)

while (pimple.loop())
{
#include "UEqn.H"
#include "TEqn.H"

// --- Pressure corrector loop
while (pimple.correct())
{
#include "pEqn.H"
....
.....
...
}

My questions is:
1. Since TEqn comes after UEqn (which calculates the predictor velocity).
Does TEqn use the predicted velocity field for calculating the temperature transport or does it use the velocity from the previous time step in its calculation?
In my opinion the predicted velocity field is not divergence free. So, using that for scalar transport does not seem correct.

2. Within a PISO loop, does Openfoam overwrites the velocity field with predictor velocity or does it store u* separately?

Thanks in Advance

pvpnrao August 17, 2016 15:57

Any ideas?....Can someone please help me?


All times are GMT -4. The time now is 10:06.