CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Server-installation: how to compile a new solver? (

samiam1000 June 25, 2012 08:54

Server-installation: how to compile a new solver?
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,

nimasam June 25, 2012 13:22

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"

wyldckat June 25, 2012 17:45

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:


  • 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:

    echo $FOAM_APPBIN
    echo $FOAM_LIBBIN

    This is why the USER ones exist ;)
Best regards,

samiam1000 June 27, 2012 06:31

It's exactely like to compile it on my desktop.

That's great.

Thanks a lot,


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