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

OpenFOAM Environment variables

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 24, 2015, 16:09
Default OpenFOAM Environment variables
  #1
New Member
 
kh
Join Date: Jun 2015
Posts: 5
Rep Power: 2
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, 15:35
Default
  #2
New Member
 
kh
Join Date: Jun 2015
Posts: 5
Rep Power: 2
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, 08:30
Default
  #3
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 109
Rep Power: 8
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 0 January 1, 2014 20:21
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
How to simulate Urban Environment with buildings and trees in OpenFOAM tobimorak OpenFOAM 2 September 16, 2013 08:43
Reading OpenFOAM Variables vmsandip2011 OpenFOAM Programming & Development 4 June 6, 2012 11:20
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25


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