|
[Sponsors] |
January 19, 2021, 13:26 |
of7 command
|
#1 |
New Member
Benoit AVRIL
Join Date: Jan 2021
Posts: 3
Rep Power: 5 |
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 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 Code:
Using: OpenFOAM-4.0 (see www.OpenFOAM.org) Build: 4.0 Code:
of7 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> I also tried Code:
openfoam openfoam : commande introuvable Thank you. |
|
January 19, 2021, 19:45 |
|
#2 |
Member
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16 |
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 Code:
source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc 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 |
|
January 21, 2021, 15:04 |
|
#3 |
New Member
Benoit AVRIL
Join Date: Jan 2021
Posts: 3
Rep Power: 5 |
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 Code:
mkdir -p $FOAM_RUN https://cfd.direct/openfoam/user-guide/v7-tutorials/ Are those versions 7 or 2012 or 1912 from the same fork? |
|
January 22, 2021, 08:01 |
|
#4 |
Member
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16 |
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/ |
|
January 22, 2021, 11:25 |
|
#5 |
New Member
Benoit AVRIL
Join Date: Jan 2021
Posts: 3
Rep Power: 5 |
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.
|
|
Tags |
of7 command |
|
|
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 05:57 |
[PyFoam] PyFoam 0.6.9 wrong path to gnuplot | klausb | OpenFOAM Community Contributions | 5 | March 15, 2018 15:28 |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 12:37 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
Command Line vs. GUI Menus | Go | FLUENT | 0 | June 8, 2005 17:05 |