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

Wrong number of arguments

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2008, 05:42
Default Wrong number of arguments
  #1
New Member
 
Jan
Join Date: Mar 2009
Posts: 3
Rep Power: 17
tweety is on a distinguished road
I thought getting started with OpenFOAM over the Christmas holidays would be a good idea... anyways, I just started and here is what I get:
--> FOAM FATAL ERROR : Wrong number of arguments, expected 2 found 0

Whats behind it? What is an argument, where/how
do I change it?

Thanks a lot
Jan
tweety is offline   Reply With Quote

Old   December 23, 2008, 07:41
Default Which version are you using?
  #2
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18
fra76 is on a distinguished road
Which version are you using?
I guess 1.4.1, if so, you have to provide root and case directory. For example:

Usage: simpleFoam <root> <case> [-parallel]

Usually you put your case in a directory (let's call it "casedir") and from the top dir you use:

simpleFoam . casedir

Have a look to the user guide of the version you are using, you can find solutions to this kind of problems.

I suggest, however, to use version 1.5. Why starting with something old?
fra76 is offline   Reply With Quote

Old   December 23, 2008, 08:26
Default Tried to install 1.5, but on r
  #3
New Member
 
Jan
Join Date: Mar 2009
Posts: 3
Rep Power: 17
tweety is on a distinguished road
Tried to install 1.5, but on running . $HOME/.bashrc , I get an error claiming that my bashrc in the OpenFoam-1.5.x directory does not exist, and one error TMOUT: readonly variable

So I seem to be stuck with 1.4.

Have you encountered such a problem before? What about the "update" from 1.4.1 to 1.5., do I have to run through the complete installation process? The Info they provide for on the homepage does not really help...
tweety 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
[Other] TetgenToFoam arguments davod OpenFOAM Meshing & Mesh Conversion 3 August 4, 2008 13:28
error:wrong number of args? miomio CFX 3 July 10, 2007 00:14
what's wrong with my UDF?? zlk FLUENT 0 April 5, 2007 02:35
what's wrong with it???????? zhu FLUENT 1 August 29, 2006 09:35
Commandline options/arguments for menu items? jx FLUENT 2 August 18, 2003 07:29


All times are GMT -4. The time now is 11:10.