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

[Other] of7 command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2021, 12:26
Default of7 command
  #1
New Member
 
Benoit AVRIL
Join Date: Jan 2021
Posts: 3
Rep Power: 5
kalish is on a distinguished road
Hello, it is my first post around here, I might have to make a presentation somewhere else, so I will make it later.


I tried to install openFoam from that website:


https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04


It seems paraview runs smoothly and when I type


Code:
 icoFoam -help
I get


Code:
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
So everything is ok, but then it's written

Code:
Using: OpenFOAM-4.0 (see www.OpenFOAM.org)
Build: 4.0
Ok so the number doesn't seem right. Thus I tried to write


Code:
of7
and nothing happened, neither an error message nor anything.
Since it's written OpenFoam-4.0, I also tried



Code:
of4

La commande « of4 » n'a pas été trouvée, voulez-vous dire :

  commande « ofl » du deb hxtools

Essayez : sudo apt install <nom du deb>
Which means the command wasn't found, do you mean ... in French.
I also tried

Code:
openfoam
openfoam : commande introuvable
I have installed a lot of stuff and I can't figure out why nothing happens when I try to launch the software. It is also not in running in my processes


Thank you.
kalish is offline   Reply With Quote

Old   January 19, 2021, 18:45
Default
  #2
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
of7 is not a command itself, but an alias for loading the OpenFOAM environment in your session. If you read again the point 8 in https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04 they explain you how to store it in your terminal settings, so that you your systems understands what you mean whenever the order "of7" is requested.

Note that, after installing OpenFOAM, you need to tell your system where to find the executables. It shall be enough to call something like
Code:
source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc
from the terminal before calling OpenFOAM applications. Of course, having to repeat this every time you open a new terminal window is tedious, therefore you typically want to automate this process and that's where the file $HOME/.bashrc can be useful (I assume an out-of-the-box Ubuntu). This is achieved by saving the line
Code:
source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc
inside that file.

Aliases such as the one you mentioned become however useful for avoiding conflicts in case you have more than one OpenFOAM version installed simultaneously on your system, which seems to be your case. They help you to choose among them what precise "icoFoam" do you want to run i.e. from OpenFOAM-7?, -2012,? -ext?, etc.

Keep sure you do not automatically load all the versions simultaneously.

This may further help you https://openfoamwiki.net/index.php/I...nFOAM_versions
guin is offline   Reply With Quote

Old   January 21, 2021, 14:04
Default
  #3
New Member
 
Benoit AVRIL
Join Date: Jan 2021
Posts: 3
Rep Power: 5
kalish is on a distinguished road
Thank you I will check it. I might have several versions on my computer because I tried to install it few times. I think I already wrote that line in the bashrc file. I am struggling to install openfoam, there are some obscure commands even in the very first page of the user guide, how something like
Code:
ls $FOAM_RUN
or
Code:
mkdir -p $FOAM_RUN
can have any meaning, it's not a directory to me. (and it's not here by the way).
https://cfd.direct/openfoam/user-guide/v7-tutorials/

Are those versions 7 or 2012 or 1912 from the same fork?
kalish is offline   Reply With Quote

Old   January 22, 2021, 07:01
Default
  #4
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
Actually, these both commands are among the most usual ones in UNIX environments...

It may help you to start getting a bit familiar with them.
Take a look here:
https://cfd.direct/openfoam/linux-guide/

and here (scroll down to "Shell variables" sub-section): https://guide.bash.academy/expansions/
guin is offline   Reply With Quote

Old   January 22, 2021, 10:25
Default
  #5
New Member
 
Benoit AVRIL
Join Date: Jan 2021
Posts: 3
Rep Power: 5
kalish is on a distinguished road
I know them, when I type ls, the directory is not here, and mkdir tells me it lacks an argument. I never used them with that kind of syntax.
kalish is offline   Reply With Quote

Reply

Tags
of7 command


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
UDF for inlet temperature and species concentration haidory Fluent UDF and Scheme Programming 18 September 1, 2019 04:57
[PyFoam] PyFoam 0.6.9 wrong path to gnuplot klausb OpenFOAM Community Contributions 5 March 15, 2018 14:28
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 11:37
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Command Line vs. GUI Menus Go FLUENT 0 June 8, 2005 16:05


All times are GMT -4. The time now is 14:15.