CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

keyword RASModel is undefined in dictionary

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghita

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2022, 15:05
Default keyword RASModel is undefined in dictionary
  #1
New Member
 
Join Date: Feb 2022
Posts: 3
Rep Power: 4
Magnox is on a distinguished road
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.
Magnox is offline   Reply With Quote

Old   February 27, 2022, 14:15
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
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.
Tobermory is offline   Reply With Quote

Old   April 12, 2023, 09:22
Default
  #3
New Member
 
ghita
Join Date: Mar 2023
Posts: 1
Rep Power: 0
ghita is on a distinguished road
Thank you so much , i had this problem and your post helped me solve it
Tobermory likes this.
ghita is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 01:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34


All times are GMT -4. The time now is 07:24.