of7 command
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] Code:
Using: OpenFOAM-4.0 (see www.OpenFOAM.org) Code:
of7 Since it's written OpenFoam-4.0, I also tried Code:
of4 I also tried Code:
openfoam Thank you. |
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 |
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? |
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/ |
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.
|
All times are GMT -4. The time now is 18:21. |