|
[Sponsors] |
July 3, 2007, 16:52 |
Hi all,
I am trying to writ
|
#1 |
Member
Doug Hunsaker
Join Date: Mar 2009
Location: Logan, UT
Posts: 63
Rep Power: 17 |
Hi all,
I am trying to write my own turbulence model and am currently studying the kEpsilon model in OF 1.4 linked with simpleFoam. In the simpleFoam.C source file, it says: phi = fvc::interpolate(U) & mesh.Sf(); I'm not exactly sure what's happening here. My best guess is that it's interpolating the vector U from the cell centers to the cell faces and storing it as the transport property phi. (What exactly is the "& mesh.Sf()?) In the kEpsilon.C source file, the dissipation equation is solved using phi_ as the item of transport. The divergence of phi_ is calculated as part of that equation. However, I thought you could only calculate the divergence of a vector. Is phi_ somehow a vector now instead of a scalar? If so, how was it set? I'm assuming that the phi defined in simpleFoam.C is the same as the phi_ in kEpsilon.C. Since velocity is the item of transport, could the phi_ in the turbulence model be replaced by U_? This would be a true vector. Thanks for your help. Doug |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
which turbulence model to use??? | Ravikanth | CFX | 1 | April 3, 2008 18:03 |
Turbulence Model | GG | Siemens | 3 | March 3, 2008 19:06 |
changing model constants in k-e turbulence model | Sunil | CFX | 3 | October 3, 2006 12:12 |
Best Turbulence Model | manish | FLUENT | 1 | March 10, 2005 18:15 |
HELP! TURBULENCE k-e OR k-omega TURBULENCE MODEL? | Mirek Kabacinski | FLUENT | 5 | August 24, 2003 22:31 |