CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   where are the compiled executables? (http://www.cfd-online.com/Forums/openfoam-solving/119641-where-compiled-executables.html)

peteryuan June 20, 2013 16:58

where are the compiled executables?
 
hi guys,

i learned that one can compile solver in a applications/solvers folder, with wmake. and then use the compiled solvers in cases.
my question is, i was looking for the compiled exe file like icoFoam, but i only find the source code in .C.
but in the cavity tutorial i already used icofoam. could someone tell me how this work?

my second question, i did not find in bashrc file something about icoFoam, so how does this work, that when i type icoFoam, this solver is executed?

yo see i m a beginner, thanks for help.
peter

nimasam June 21, 2013 02:08

Quote:

Originally Posted by peteryuan (Post 435130)
hi guys,

i learned that one can compile solver in a applications/solvers folder, with wmake. and then use the compiled solvers in cases.
my question is, i was looking for the compiled exe file like icoFoam, but i only find the source code in .C.
but in the cavity tutorial i already used icofoam. could someone tell me how this work?

executable file are placed in following addresse:
/opt/openfoam220/platforms/linuxGccDPOpt/bin

ofcourse i assumed you installed your OpenFOAM on opt folder ;)

Quote:

my second question, i did not find in bashrc file something about icoFoam, so how does this work, that when i type icoFoam, this solver is executed?

yo see i m a beginner, thanks for help.
peter
as you source your bashrc file during installation, you tell linux to read OpenFOAM bashrc which contains address of other folder paths, so it look up for example above address and returns your executable file

markusrehm June 21, 2013 03:44

Hi Peter,

the .bashrc is a script which sets your environment variables where your system looks for the executables. To see where the icoFoam executable hides you can use the command

which icoFoam

Also the last line of a successful wmake-compilation gives you the full path to the produced executable.

Consider reading more about shell programming or read a bash tutorial.

Markus

peteryuan June 21, 2013 04:13

Thanks, I got it.


All times are GMT -4. The time now is 09:38.