CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam 1.5.x installation (http://www.cfd-online.com/Forums/openfoam-installation/62769-openfoam-1-5-x-installation.html)

gareth__it_power March 19, 2009 05:29

OpenFoam 1.5.x installation
 
I need to upgrade from 1.5 to 1.5.x for reasons I won't go into. I have changed the line in the ~/.basrc file to 1.5.x from 1.5, and updated that by typing . $HOME/.bashrc. Then ran ./Allwmake in the OpenFoam/OpenFoam-1.5.x directory. It seemed to work after compiling for a couple of hours, but none of the commands run - eg blockMesh returns 'command not found'. I ran foamIntsallationTest which highlighted ths:

...
Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.1 .../OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.19 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/itpower/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

The directory /home/itpower/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/ is empty. Is there an easy fix for this? I am a total beginner and don't understand things like 'sourcing environment variables' or anythnig like that. But I'd be very grateful for any advice please!

Thanks

Gareth

dmoroian March 19, 2009 09:16

Hello Gareth,
It seems that your icoFoam solver didn't get compiled. The cause of this is most likely some failure in compiling some of the openFoam libraries.
My suggestion is to start from the top of OpenFOAM-1.5.x directory and look inside the Allwmake files. There are simple shell commands, that you can copy/paste in an xterm and run them one by one. You will see exactly where the problem lies.

I hope this is useful,
Dragos

hellorishi March 19, 2009 11:47

Hello Gareth,

I also has a similar error 2 weeks ago. I am trying to recall how I solved this error. I guess I compiled the ThirdParty from Hrv's site http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/ and then compiled OF-1.5.x. Then it definately has something to with sourcing files. I guess I used 1.5 while compiliing ThirdParty and 1.5.x while compiliing 1.5.x

sourcing environment is explained in Section 3 of README
http://www.opencfd.co.uk/openfoam/doc/README.html


EITHER if running bash or ksh (if in doubt type echo $SHELL), source the etc/bashrc file by adding the following line to the end of your $HOME/.bashrc file:
  • . $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/bashrc
Then update the environment variables by sourcing the $HOME/.bashrc file by typing in the terminal:
  • . $HOME/.bashrc
OR if running tcsh or csh, source the etc/cshrc file by adding the following line to the end of your $HOME/.cshrc file:
  • source $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/cshrc
Then update the environment variables by sourcing the $HOME/.cshrc file by typing in the terminal:
  • source $HOME/.cshrc
So my suggestion delete your 1.5.x folder. Compile ThirdParty from Hrv's site. Then compile 1.5.x.

Good luck,
Rishi

zhoubinwx March 31, 2009 02:38

Hi Gareth,

When I compile OF1.5.x., I get the same error:

icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/itpower/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

The directory /home/itpower/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/ is empty.

I need to think about it.

Bin

woodenanteater March 31, 2009 20:56

Hey guys,

I'm installing 1.5.x and I would just like to add my voice to the chorus of people getting this error. I've tried recompiling the third party folder (using ./Allwmake from the third party directory), and this made no difference. Is it worth trying a clean install using only the 1.5.x files (I assume you don't need the 1.5 stuff there to operate 1.5.x)?

Thanks,

Ken

Edit - I'm running a clean compilation now, with freshly downloaded files, and as it's running I often get the line that OpenFOAM-1.5.x/ wmake/rules/linuxGcc/wmkdep: not found. I've had a look in the directory that this refers to, and wmkdep is in there (I'm not hugely familiar with Ubuntu or linux in general, but it has the same icon as a lot of executeables?). I've tried running it if it is an executeable, and it won't start or anything like that. Does this shed some more light?

ngj April 1, 2009 03:27

Hi Bin

It does indeed sound like none of your applications are compiled. The reason I can come of is that some important parts of your src-directory is not compiled, e.g. libfiniteVolume.so.
Try to "cd ~/OpenFOAM/OpenFOAM-1.5.x/src" and execute "./Allwmake" from there. Then carefully watch whether or not you get any error messages.
Typically when you have been running the binaries from OpenCFD you are not aware, that you are missing some of the essential third party software. This is probably either the C++ header files (found in build-essential) or flex.

Good luck

Niels

P.S. If you add "export WM_NCOMPPROCS=N", where N is the number of processors to your ~/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc file, then the compilation takes place on N processors instead of just one.


All times are GMT -4. The time now is 16:33.