How do createFields.H in interFoam read separate transport properties?
Hi all,
I'm new to OpenFOAM. This might be a dumb question, but I just cannot figure out. I'm working on modifying the interFoam solver, and I start to read the source code. In the createFields.H, there are some codes as follow. I'm wondering how they get rho1 and rho2. I thought the "rho" in the IOobject should be the file name, but indeed rho is stored in transportProperties. Also, how do they put rho for two different phases as rho1 and rho2? It is easy to understand in icoFoam, since there is lookup function there. However in the interFoam, I cannot find where is the lookup and how it identify two different rho in "transportProperties". Code:
#include "createPhi.H" Thanks. |
Hi Shinri,
rho1 and rho2 are read from the transportDict when constructing the mixture object. Code:
immiscibleIncompressibleTwoPhaseMixture mixture(U, phi); Code:
nuModel1_ Vince |
All times are GMT -4. The time now is 20:59. |