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

Error keyword R is undefined in dictionary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2017, 16:05
Exclamation Error keyword R is undefined in dictionary
  #1
New Member
 
Egor
Join Date: May 2017
Posts: 2
Rep Power: 0
qsds4 is on a distinguished road
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

Last edited by qsds4; May 20, 2017 at 16:07. Reason: CODE
qsds4 is offline   Reply With Quote

Old   May 20, 2017, 18:08
Default
  #2
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
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;

// ************************************************** *********************** //
sheaker is offline   Reply With Quote

Reply

Tags
error, keyword r, thermodynamicproperties.


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 00:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 21:09.