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

Server-installation: how to compile a new solver?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 25, 2012, 08:54
Default Server-installation: how to compile a new solver?
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 13:22
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
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, 17:45
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   June 27, 2012, 06:31
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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

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
How to compile a new solver in OpenFOAM-2.1.0? sandy OpenFOAM Programming & Development 19 September 27, 2014 15:12
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 11:16
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08
Compile new solver under SuSE 64bit OS hsieh OpenFOAM Running, Solving & CFD 3 September 8, 2005 11:56


All times are GMT -4. The time now is 22:06.