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

[OpenFOAM.org] OpenFoam run command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2016, 04:44
Default OpenFoam run command
  #1
Member
 
Join Date: Mar 2016
Posts: 33
Rep Power: 10
mahmoodn is on a distinguished road
I have installed OpenFoam-2.3.0 on Centos-6.5 according to the official guide. It is stated that the final command to run is of230, however, that command has no output.

It seems that the command should be icoFoam (and that is partially stated in the guide).

Code:
mahmood@cluster:~$ cat .bashrc
alias of230='module load openmpi-x86_64; source /export/apps/mechanics/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 foamCompiler=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI'

mahmood@cluster:~$ source .bashrc
mahmood@cluster:~$ of230
mahmood@cluster:~$ icoFoam --help

Usage: icoFoam [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

Using: OpenFOAM-2.3.0 (see www.OpenFOAM.org)
Build: 2.3.0-f5222ca19ce6



--> FOAM FATAL ERROR:
Invalid option: --help


FOAM exiting

mahmood@cluster:~$
Any idea on that?
mahmoodn is offline   Reply With Quote

Old   March 23, 2016, 07:56
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
Quote:
Originally Posted by mahmoodn View Post
It is stated that the final command to run is of230, however, that command has no output.
Sorry for not making it clearer on the wiki page, but the idea is that when this command of230 runs, it will only show output if there is an error. Therefore, it probably worked as intended.

Quote:
Originally Posted by mahmoodn View Post
It seems that the command should be icoFoam (and that is partially stated in the guide).

Code:
mahmood@cluster:~$ cat .bashrc
alias of230='module load openmpi-x86_64; source /export/apps/mechanics/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 foamCompiler=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI'

mahmood@cluster:~$ source .bashrc
mahmood@cluster:~$ of230
mahmood@cluster:~$ icoFoam --help

Usage: icoFoam [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

Using: OpenFOAM-2.3.0 (see www.OpenFOAM.org)
Build: 2.3.0-f5222ca19ce6



--> FOAM FATAL ERROR:
Invalid option: --help


FOAM exiting

mahmood@cluster:~$
Any idea on that?
icoFoam is one of the solvers in OpenFOAM. Since you ran:
Code:
icoFoam --help
it gave an error message at the end, stating that the option "--help" doesn't exist. The correct option is "-help", as indicated on the wiki page

It seems that OpenFOAM 2.3.0 is now installed without any problems. Please start reading the OpenFOAM User Guide, as stated at the end of the instructions:
Quote:
18. Now you can go read the User Guide: official OpenFOAM User Guide
__________________
wyldckat is offline   Reply With Quote

Old   March 23, 2016, 14:30
Default
  #3
Member
 
Join Date: Mar 2016
Posts: 33
Rep Power: 10
mahmoodn is on a distinguished road
Thank you very much. Indeed, I am not an expert in OpenFoam. Instead, as the administrator of the cluster, I installed it for the users.

One more question:
Is there a big difference between 2.2 and 2.3? Are the scripts and commands compatible? I mean from 2.2 to 2.3.

I will ask my next question in a new topic
mahmoodn is offline   Reply With Quote

Old   March 26, 2016, 05:47
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
Quote:
Originally Posted by mahmoodn View Post
One more question:
Is there a big difference between 2.2 and 2.3? Are the scripts and commands compatible? I mean from 2.2 to 2.3.
For the most part, the two are compatible, but only conceptually.
What I mean is that there are some considerable changes all the way from 2.2.0 to 2.3.0, although most only affect how the simulation cases are prepared for running.

You can ask your users to go through the Release Notes for each version so that they can tell you what they need. You can find a complete list of links to the release notes at the top right corner on this page: http://openfoamwiki.net/index.php/Main_Page

You might want to provide OpenFOAM 3.0.1 as well to your users, given that this is the most recent version. Instructions are provided here: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.7
wyldckat is offline   Reply With Quote

Old   March 26, 2016, 11:56
Default
  #5
Member
 
Join Date: Mar 2016
Posts: 33
Rep Power: 10
mahmoodn is on a distinguished road
OK thank you very much for the helps.
mahmoodn 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
[OpenFOAM.org] Problems to run OpenFOAM 3.0.1 on Mac OS 10.11.4 remidemol OpenFOAM Installation 2 March 25, 2016 11:29
Unable to run a case with OpenFOAM 1.6-ext that works with OpenFOAM 2.3.0 Jiricbeng OpenFOAM Running, Solving & CFD 15 May 21, 2014 03:52
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41


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