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

Trying to run a benchmark case with simpleFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 24, 2012, 09:24
Question Trying to run a benchmark case 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, 09:49
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,744
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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, 10: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, 10:07
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,744
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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
Some questions about a multi region case run in parallel zfaraday OpenFOAM Running, Solving & CFD 4 October 28, 2015 13:10
SimpleFoam run time comsuming eebrah OpenFOAM Running, Solving & CFD 21 August 14, 2014 02:30
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30
Flux update during an MPI run between decomposed case parts? scott OpenFOAM 0 July 21, 2010 20:47
snappyMesh Motor Bike case for simpleFoam solver s.sivakumar OpenFOAM Running, Solving & CFD 0 July 22, 2009 08:00


All times are GMT -4. The time now is 00:02.