|
[Sponsors] |
[OpenFOAM.org] OpenFOAM Environment variables |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 24, 2015, 16:09 |
OpenFOAM Environment variables
|
#1 |
New Member
kh
Join Date: Jun 2015
Posts: 9
Rep Power: 10 |
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 |
|
June 25, 2015, 15:35 |
|
#2 |
New Member
kh
Join Date: Jun 2015
Posts: 9
Rep Power: 10 |
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. Still having trouble with error 'namespace' definition is not allowed here. |
|
June 26, 2015, 08:30 |
|
#3 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17 |
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 |
|
Tags |
source environment |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Control and Editing of Lagrangian Output Variables | gmag | OpenFOAM Programming & Development | 1 | June 25, 2019 12:29 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 15:54 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
[Other] OpenFOAM using environment modules on an HPC | Andrew.Coughtrie | OpenFOAM Installation | 6 | November 23, 2015 08:38 |
Cannot configure OpenFOAM environment variable in CAE Linux 2011 | TommiPLaiho | OpenFOAM Installation | 9 | October 15, 2013 08:44 |