CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM Environment variables

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2015, 17:09
Default OpenFOAM Environment variables
  #1
New Member
 
kh
Join Date: Jun 2015
Posts: 9
Rep Power: 10
KHoy is on a distinguished road
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 is offline   Reply With Quote

Old   June 25, 2015, 16:35
Default
  #2
New Member
 
kh
Join Date: Jun 2015
Posts: 9
Rep Power: 10
KHoy is on a distinguished road
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.
KHoy is offline   Reply With Quote

Old   June 26, 2015, 09:30
Default
  #3
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
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
vatavuk is offline   Reply With Quote

Reply

Tags
source environment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 13:29
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
[Other] OpenFOAM using environment modules on an HPC Andrew.Coughtrie OpenFOAM Installation 6 November 23, 2015 09:38
Cannot configure OpenFOAM environment variable in CAE Linux 2011 TommiPLaiho OpenFOAM Installation 9 October 15, 2013 09:44


All times are GMT -4. The time now is 01:30.