CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

where are the compiled executables?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2013, 17:58
Question where are the compiled executables?
  #1
New Member
 
Y
Join Date: Feb 2013
Location: The Earth
Posts: 25
Rep Power: 13
peteryuan is on a distinguished road
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
peteryuan is offline   Reply With Quote

Old   June 21, 2013, 03:08
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
Quote:
Originally Posted by peteryuan View Post
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
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   June 21, 2013, 04:44
Default
  #3
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
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
markusrehm is offline   Reply With Quote

Old   June 21, 2013, 05:13
Default
  #4
New Member
 
Y
Join Date: Feb 2013
Location: The Earth
Posts: 25
Rep Power: 13
peteryuan is on a distinguished road
Thanks, I got it.
peteryuan is offline   Reply With Quote

Reply

Tags
compile


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
Compiled library vs. inInclude Files, DSMC solver crashes after run GPesch OpenFOAM Programming & Development 8 April 18, 2013 08:17
Using compiled UDF:s in different Fluent versions S H FLUENT 1 September 12, 2007 04:40
how to compile compiled UDF? AVINASH FLUENT 3 January 19, 2007 05:04
.F compiled on Winnt works, but on AIX doesn't Daiga CFX 11 May 9, 2006 08:44
DEFINE_CG_MOTION Interpreted or Compiled? Aussie Shane FLUENT 0 April 20, 2006 05:50


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