CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Calculation of bounded scalars (http://www.cfd-online.com/Forums/openfoam-solving/60162-calculation-bounded-scalars.html)

ankgupta8um June 19, 2006 01:59

Hi, I am solving for a turb
 
Hi,

I am solving for a turbulent mixing (using LES model) of a passive scalar in a turbulent flow. The scalar has lower and upper bounds of 0 and 1 (as contrained by the boundary conditions). However, when solved, I get values in the computational domain which are like -0.001 and 1.001.
What steps need to be taken in terms of solver settings (or anything else that would help) so as to aviod getting the scalar values out of the bounds ??
Thanks in advance.

Regards,
Ankur

eugene June 19, 2006 05:03

You need to use a bounded diff
 
You need to use a bounded differencing scheme for the scalar. E.g.

div(phi,gamma) Gauss limitedLinear01 1;


All times are GMT -4. The time now is 18:43.