CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam wmake not found (https://www.cfd-online.com/Forums/openfoam-installation/134270-openfoam-wmake-not-found.html)

CTR April 27, 2014 00:42

OpenFoam wmake not found
 
Hi, I am trying to compile a solver that I wrote to run on the NCI machine. However after I load OpenFOAM-2.2.1, and try to compile the solver using wmake, I got an error: command not found. I look at the /apps/OpenFOAM/2.2.1 folder and it does not appear to have a wmake folder. Is this an installation problem or are there differences between openfoam on a server and a normal pc that I don't know about? Running the ./Allrun script in the tutorial folder work fine, so I am assuming that the built-in solver compile fine.
Do I need to write a makefile to compile my own solver? any help would be much appreciated.

Charles

wyldckat April 27, 2014 05:04

Greetings Charles and welcome to the forum!

Note: I have no idea what is the "NCI machine"...

From your description, it looks like the system administrators only installed the binaries for running OpenFOAM. The source code is also probably not provided in that installation folder.

The way I see it, you have three choices:
  1. Contact the system administrators for the NCI machine and ask how you can develop your own solvers for running in the machine.
  2. Figure out which exact Linux Distribution is being used in the NCI machine and which compiler version was used. Then install said Linux Distribution in a virtual machine and build the same OpenFOAM version within it, using the same compiler version. At the end, the binaries generated in your virtual machine should be compatible with those on the NCI machine.
    Then you can develop your own solvers and utilities and copy only the new binaries to the NCI machine for running with their OpenFOAM installation.
    Of course this is assuming that the NCI machine is using x86-type CPUs (x86 or x86_64), otherwise it gets really complicated...
  3. Since option #2 might not work as intended, then try building a new personal installation of OpenFOAM in the NCI machine, using the same version of OpenFOAM and compiler version. That way it's more likely that you'll be able to build compatible binaries.
Best regards,
Bruno

CTR April 27, 2014 06:10

Hi wyldckat,
Thanks you for you suggestion. In case you are interested, NCI refer to the National Computational infrastructure in Australia that run the supercomputer for Australian researchers.I think I will follow your first suggestion and contact the administrators for help.

Regards
Charles


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