CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   keyword RASModel is undefined in dictionary (https://www.cfd-online.com/Forums/openfoam-solving/241411-keyword-rasmodel-undefined-dictionary.html)

Magnox February 24, 2022 14:05

keyword RASModel is undefined in dictionary
 
Hello,



I'm trying to run a simulation using the pisoFoam solver with OpenFOAM 8, however I'm getting the following error:



Code:

--> FOAM FATAL IO ERROR:
keyword RASModel is undefined in dictionary "/home/harvyp/OpenFOAM/harvyp-8/run/TestCase2/constant/turbulenceProperties.RAS"

file: /home/harvyp/OpenFOAM/harvyp-8/run/TestCase2/constant/turbulenceProperties.RAS from line 22 to line 26.

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

FOAM exiting

Here is my turbulenceProperties dictionary:


Code:

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

simulationType RAS;

RAS
{
    model        kEpsilon;

    turbulence      on;

    printCoeffs    on;
}

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

Apologies if there is a trivial solution to this problem as I am very new to OpenFOAM, but my efforts to solve the issue myself have been unsuccessful. Therefore, any guidance as to how I can solve this error would be greatly appreciated.



Many thanks.

Tobermory February 27, 2022 13:15

Try change:
Code:

    model        kEpsilon;
to

Code:

    RASModel        kEpsilon;
Alternatively, since you seem to be using the v8 Foundation version, you should be using a momentumTransport file to define the turbulence model, which uses your original nomenclature - check one of the pisoFoam tutorials for example.

ghita April 12, 2023 08:22

Thank you so much , i had this problem and your post helped me solve it


All times are GMT -4. The time now is 14:37.