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.org] OpenFOAM Environment variables (https://www.cfd-online.com/Forums/openfoam-installation/155120-openfoam-environment-variables.html)

KHoy June 24, 2015 16:09

OpenFOAM Environment variables
 
Hi,
I am a new OpenFOAM user. I have installed Ubuntu 14.04 and OpenFOAM 2.4.0 with paraViewopenFoam 4.1.0 following the instructions on

http://www.openfoam.org/download/ubuntu.php

I have modified the .bashrc and the cavity case is running fine both from an admin account and from a regular user account. Now I was trying to compile and run meltFoam, which i got from this forum. There were issues with a missing readSimpleControls.H file from an earlier release so I replaced it with simpleControl.H in the meltFoam.C source code. I also added a line to the options file so to include meshTools/lnInclude. which helped resolving early compile hiccups.

using wmake I still get a list of errors that I could not figure out, especially since these errors come from a variety of include files. It starts with something like

namespace Foam

being not allowed at a position within included code that looks quite ok and that I had not touched.

Now I tried foamInstallationTest after spending hours with this compile problem and this comes back with

FATAL ERROR; OpenFoam environment not configured.
...

Can someone please help me with resolving this problemo?

Thanks
K

KHoy June 25, 2015 15:35

Hi again,

I am posting a reply to my own post.:)

I found out that the instructions on

http://www.openfoam.org/download/ubuntu.php

are missing the instructions to install all the ThirdParty package. I downloaded and installed to the /opt directory and foamInstallationTest ran fine afterwards.:D

Still having trouble with error 'namespace' definition is not allowed here.:confused:

vatavuk June 26, 2015 08:30

Hi kHoy,
If want to save yourself a lot of trouble, you should compile meltFoam with the same version of OpenFOAM that was used originally by the programmer. Otherwise you will have to adapt the code to all inconsistencies that appeared with the release of new versions of OpenFOAM.
I think that this is problem you are facing now, inconsistencies between an old a new version of OpenFOAM. You can get older versions also in the openfoam.org site.
Best regards,
Paulo


All times are GMT -4. The time now is 13:50.