CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Using yPlusRAS with interFoam (http://www.cfd-online.com/Forums/openfoam/98878-using-yplusras-interfoam.html)

JohnTornblom March 21, 2012 05:21

Using yPlusRAS with interFoam
 
Hi!

I am working on my master thesis and am fairly new to OpenFOAM. I got a problem concerning the calculation of yPLUS (or y*?) using yPlusRAS. As a part of the post processing I am trying to run yPlusRas via the terminal. However I get an error-message saying:

"-> FOAM FATAL IO ERROR:
keyword transportModel is undefined in dictionary /
"home/linux01/OpenFOAM/linux01-.1.0/run/2D/No_moonpool_forced_flow_2D/constant/transportProperties"

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400."



transportProperties looks like this:


twoPhase
{
transportModel twoPhase;
phase1 phase1;
phase2 phase2;
}

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}


phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
}

sigma sigma [ 1 0 -2 0 0 0 0 ] 0;




Does anyone has a suggestion on how to solve this problem?


Thanks in advance

BR
John

JohnTornblom March 30, 2012 07:58

The answer to this problem was to add a transportmodel above. then yPlusRas worked.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
}

sigma sigma [ 1 0 -2 0 0 0 0 ] 0;


// ************************************************** *********************** //



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