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

where are the compiled executables?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 20, 2013, 16:58
Question where are the compiled executables?
  #1
New Member
 
Y
Join Date: Feb 2013
Location: Dresden =)
Posts: 24
Rep Power: 4
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, 02:08
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Old   June 21, 2013, 03:44
Default
  #3
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 176
Rep Power: 8
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 online now   Reply With Quote

Old   June 21, 2013, 04:13
Default
  #4
New Member
 
Y
Join Date: Feb 2013
Location: Dresden =)
Posts: 24
Rep Power: 4
peteryuan is on a distinguished road
Thanks, I got it.
peteryuan is offline   Reply With Quote

Reply

Tags
compile

Thread Tools
Display Modes

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 On
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 07:17
Using compiled UDF:s in different Fluent versions S H FLUENT 1 September 12, 2007 03: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 07:44
DEFINE_CG_MOTION Interpreted or Compiled? Aussie Shane FLUENT 0 April 20, 2006 04:50


All times are GMT -4. The time now is 18:37.