CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Help with simpleFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 24, 2012, 08:24
Question Help with simpleFoam
  #1
New Member
 
Join Date: Feb 2012
Posts: 2
Rep Power: 0
spsb is on a distinguished road
Hi, I have a OpenFOAM based benchmark that I have been asked to run. I have never before used OpenFOAM and I need some help because I'm lost.

I have been given a tar-file with "the job" containing the directories 0, contant and system). There are also an example script:

Code:
$ cat run8CPUsSequential
# Run the program
simpleFoam . . > log1_8CPUsSequential_1 &
simpleFoam . . > log1_8CPUsSequential_2 &
simpleFoam . . > log1_8CPUsSequential_3 &
simpleFoam . . > log1_8CPUsSequential_4 &
simpleFoam . . > log1_8CPUsSequential_5 &
simpleFoam . . > log1_8CPUsSequential_6 &
simpleFoam . . > log1_8CPUsSequential_7 &
simpleFoam . . > log1_8CPUsSequential_8 &

wait
I have installed OpenFOAM on a Ubuntu system following the Ubuntu installation guide at openfoam.org.

When i run "simpleFoam . ." I got a error.
After I read the help page ("simpleFoam -help") i re-run the command without parameters and ended up with this output.

Code:
--> FOAM FATAL IO ERROR: 
cannot find file

file: /root/OpenFOAM/root-2.1.0/run/bench/constant/RASProperties at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.
I cant find a RASProperties a file in constant. Is that a required file? I wonder because I think it's strange if they missed to supply me with that file.

For the time being I borrowed a RASProperties from one of the examples, I picked one RASModel out of random and re-run the application and ended up with this output:

Code:
--> FOAM FATAL IO ERROR: 
keyword div((nuEff*dev(T(grad(U))))) is undefined in dictionary "/root/OpenFOAM/root-2.1.0/run/bench/system/fvSchemes::divSchemes"

file: /root/OpenFOAM/root-2.1.0/run/bench/system/fvSchemes::divSchemes from line 39 to line 46.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 400.
I have tried to read the documentation but as expected it's written for a person who intend to write a job and run a simulation. I'm a (mostly) a sysadmin who have been asked to run a OpenFOAM-based benchmark and I'm somewhat lost

Anyone out there who can point me at the right direction?

Edit:
Using: OpenFOAM-2.1.0 (see www.OpenFOAM.org)
Build: 2.1.0-0bc225064152
spsb is offline   Reply With Quote

Old   February 24, 2012, 08:49
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,987
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings spsb and welcome to the forum!

When they gave you this benchmark job, did they say which version of OpenFOAM the test case was meant to be run with? Because OpenFOAM keeps evolving and case files become gradually different between each version.

Either way, the file you're getting a complaint now is "system/fvSchemes". You can get the missing line from this file:
Code:
$FOAM_TUTORIALS/incompressible/simpleFoam/turbineSiting/system/fvSchemes
You could copy the whole file, but you'll risk triggering a bigger problem.

I found this example by running the following command:
Code:
find $FOAM_TUTORIALS -name fvSchemes | xargs grep -sl 'nuEff'
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 24, 2012, 09:00
Default
  #3
New Member
 
Join Date: Feb 2012
Posts: 2
Rep Power: 0
spsb is on a distinguished road
Hi, I added

Code:
div((nuEff*dev(T(grad(U)))))    Gauss linear;
And it's working, thanks!

I will check with version the test was intended to work with. One more question, is the RASProperties-file always a required part of a job?
spsb is offline   Reply With Quote

Old   February 24, 2012, 09:07
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,987
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quote:
Originally Posted by spsb View Post
I will check with version the test was intended to work with. One more question, is the RASProperties-file always a required part of a job?
AFAIK, Depends on the solver at hand.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27
MPI Error - simpleFoam - Floating Point Exception scott OpenFOAM Running, Solving & CFD 3 April 13, 2012 16:34
simpleFoam ddt Euler ? Mo-ITB OpenFOAM Running, Solving & CFD 2 June 12, 2010 13:36
Naca0012 k-e mpirun gives fpe whereas simpleFoam not Pierpaolo OpenFOAM 1 May 8, 2010 03:08
Error running simpleFoam in parallel skabilan OpenFOAM Running, Solving & CFD 2 August 29, 2008 09:42


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