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/)
-   -   Error keyword R is undefined in dictionary (https://www.cfd-online.com/Forums/openfoam-solving/188019-error-keyword-r-undefined-dictionary.html)

qsds4 May 20, 2017 16:05

Error keyword R is undefined in dictionary
 
Hi all! I encounter an error:
Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.5                                  |
|  \\  /    A nd          | Web:      http://www.OpenFOAM.org              |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Exec  : c:\cfd\OpenFOAM-1.5\bin\sonicFoam
Date  : May 20 2017
Time  : 23:31:07
Host  : äbwrábw
PID    : 1928
Case  : C:\Users\QQ\Desktop\Shulgin
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading thermodynamicProperties

Programme terminated with errors: exit code 1, status 0.
Error messages:


keyword R is undefined in dictionary "C:\Users\QQ\Desktop\Shulgin\constant\thermodynamicProperties"

file: C:\Users\QQ\Desktop\Shulgin\constant\thermodynamicProperties from line 18 to line 20.

    From function dictionary::lookupEntry(const word& keyword) const
    in file C:\tmp\OpenFOAM-1.5\src\OpenFOAM\db\dictionary\dictionary.C at line 213.

FOAM exiting

Help me please to understand what may be a bug.
Here are the contents of the file "thermodynamicProperties":
Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Thermophysical model
thermoType      hThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>;

mixture        air 1 28.9 1007 300 1.84e-05 0.7;

Here are the contents of the file "R":
Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      volSymmTensorField;
    object      R;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField  uniform (0 0 0 0 0 0);

boundaryField
{
    movingWall     
    {
        type            zeroGradient;
    }

    fixedWalls     
    {
        type            zeroGradient;
    }

    frontAndBack   
    {
        type            empty;
    }
}

I apologize for violation of forum rules, if these violations are. I very badly know English language, I have to use a translator. In my language there are no such forums. Need it for my course project in University. If needed, here is a link to the project folder on Google Drive: https://drive.google.com/open?id=0B1...jN6ZXZGQ3NoRjQ

sheaker May 20, 2017 18:08

Maybe You need to just add R in Your thermodynamicProperties.

Here is an example:

Quote:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermodynamicProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Cv Cv [ 0 2 -2 -1 0 0 0 ] 717.5;

R R [ 0 2 -2 -1 0 0 0 ] 287;

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


All times are GMT -4. The time now is 08:44.