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

Server-installation: how to compile a new solver?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2012, 09:54
Default Server-installation: how to compile a new solver?
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Dear All,

I am trying to compile a new solver on a server version of OF.

What I would like to know is if I can follow this wiki-page, or not.

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   June 25, 2012, 14:22
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
read user guide carefully everything about compile a new solver or new library is there!
however it is as easy as :
1) go to solver folder which contains solver.C
2) prepare "Make" folder which contains two files
3) use command: "wmake"
nimasam is offline   Reply With Quote

Old   June 25, 2012, 18:45
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

To complement Nima's answer, here are the key references to keep in mind:
  • The environment variables "FOAM_USER_APPBIN" and "FOAM_USER_LIBBIN" define where to place the personal applications and libraries. This is the default user-side usage contemplated by OpenFOAM, where the user creates his/her own solvers/libraries, without contaminating OpenFOAM's core code.
  • To see where they point to:
    Code:
    echo $FOAM_USER_APPBIN
    echo $FOAM_USER_LIBBIN
  • When using a server installation, there is a possibility that you want to actually use a cluster system. In this case, it means that those folders should also be somehow visible on the cluster's machines. If not, you're going to have to send them along with your simulation case.
  • If you copy-paste an already existing OpenFOAM solver and/or library code for modifying, do not forget that it is by default set to use these variables:
    Code:
    echo $FOAM_APPBIN
    echo $FOAM_LIBBIN
    This is why the USER ones exist
Best regards,
Bruno
Luttappy likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 27, 2012, 07:31
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
It's exactely like to compile it on my desktop.

That's great.

Thanks a lot,

SamIam
samiam1000 is offline   Reply With Quote

Reply


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
How to compile a new solver in OpenFOAM-2.1.0? sandy OpenFOAM Programming & Development 24 July 27, 2016 05:10
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
How to compile an unsteady solver based on solver of MRFSimpleFoam? renyun0511 OpenFOAM Running, Solving & CFD 0 April 27, 2010 12:16
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08
Compile new solver under SuSE 64bit OS hsieh OpenFOAM Running, Solving & CFD 3 September 8, 2005 12:56


All times are GMT -4. The time now is 08:02.