CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   LPT random walk (http://www.cfd-online.com/Forums/openfoam-programming-development/79973-lpt-random-walk.html)

Edison_Ge September 10, 2010 00:52

LPT random walk
 
I want to use Lagrangian particle and stochasitc trasport equation to simulate passive scalar tranportation. But I don't know how to incorporate effactive diffusivity from turbulece model to partciel. Can somebody help?
How can I let particel read turbulence->nuEff()?

Edison_Ge September 10, 2010 12:29

I achieved it by creating a volScalarField nuEff in createField.H and then in the solver assign turbulence->nuEff() to the nuEff field. In this way, the cloud can take the nuEff field as a member and then interpolate it to the particle location.
It seems to work, but is there a more elegant way of doing it ?


All times are GMT -4. The time now is 23:08.