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

Setting up R

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2016, 08:09
Default Setting up R
  #1
Member
 
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 10
BakedAlmonds is on a distinguished road
Hi,

I am trying to run a LRR model simulation. First, I have to tabulate R using the "R" command. But something weird is happening.

In my 0/k file, i have input:
Code:
internalField   uniform $turbulentKE;
where turbulentKE is a predefined number earlier.
Then I got his message.
Code:
--> FOAM FATAL IO ERROR: 
wrong token type - expected Scalar, found on line 21 the word 'uniform'

file: /home/aaaa/OpenFOAM/aaaa/run/ttturbineSitingTryOut/smallDomain_700LRR/0/k.boundaryField.west.value at line 21.

    From function operator>>(Istream&, Scalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting
I got no idea why it is asking for a "scalar" so I followed the instructions and do away with the "uniform" to:
Code:
internalField    $turbulentKE;
Then now I am prompt that the keyword "uniform" is not found. Why is this happening??
Code:
--> FOAM Warning : 
    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/Field.C at line 318
    Reading "/home/aaaa/OpenFOAM/aaaa/run/ttturbineSitingTryOut/smallDomain_700LRR/0/k" from line 9 to line 77
    expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
--> FOAM Warning : 
    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/Field.C at line 318
    Reading "/home/aaaa/OpenFOAM/aaaa/run/ttturbineSitingTryOut/smallDomain_700LRR/0/k.boundaryField.east" from line 49 to line 11
BakedAlmonds is offline   Reply With Quote

Old   July 25, 2016, 10:36
Default
  #2
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 11
dradenkovic is on a distinguished road
I tried this what you did; it works for me with just this

HTML Code:
tke 0;

internalField   uniform $tke;

Can you try to do k-epsilon simulation, and after that to use R utility? In that way you would avoid this problem.

Regards,
Darko
dradenkovic 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
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 23:38
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
Residual level setting of Fluent lhlh ANSYS 2 November 17, 2012 22:35
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
Warning 097- AB Siemens 6 November 15, 2004 05:41


All times are GMT -4. The time now is 22:49.