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

OpenFOAM-1.6 install cookbook

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2009, 07:35
Default
  #141
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Alessandro,

yes, you are one of the few that needs to add the '/r/' to the git. I still do not know why this is.

I am not sure about your question, but the OpenFOAM-1.6.x folder must reside inside the ~/OpenFOAM folder, if that's what you ask.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 08:41
Default
  #142
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Alessandro,

yes, you are one of the few that needs to add the '/r/' to the git. I still do not know why this is.

I am not sure about your question, but the OpenFOAM-1.6.x folder must reside inside the ~/OpenFOAM folder, if that's what you ask.

/Mads
Yes this is my question, and why I don't need a

Quote:
cd
cd OpenFOAM
before the git command? I am asking this because without the command mention above, the script create a folder named OpenFOAM-1.6.x in ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64 that is useless for the successive command:

Quote:
cd OpenFOAM-1.6.x/
. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
This may be the reason why I have got the previous mentioned errors, isn't it?
__________________

83_Ale_83 is offline   Reply With Quote

Old   November 30, 2009, 09:27
Default
  #143
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Well you need a cd OpenFOAM, and you get it, in the script :-) just after the apt-get section it does this:

cd ~
mkdir OpenFOAM
cd OpenFOAM

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 09:45
Default
  #144
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Yeeees

Quote:
Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.
Now what I have to digit in the terminal to start OpenFOAM?
__________________

83_Ale_83 is offline   Reply With Quote

Old   November 30, 2009, 17:37
Default same problem on clean install
  #145
New Member
 
Join Date: Nov 2009
Posts: 4
Rep Power: 16
checkpalm is on a distinguished road
Hi,
I have the exact same problem as wenc2 on a clean install on rhel 5.4 x64.
I would appreciate any help.

at the end of the Allwmake, running foamInstallationTest script produces the same error.
Can anyone help with this?

Thanks

Quote:
Originally Posted by wenc2 View Post
Hello,

Thanks for the script it's a great help. It solved most of the error I had. Still got one so. It looks like it's with "icoFoam"
If some now how to solve it It would be wonderfull

Code:
Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
gcc      4.3.3     ...OAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux/bin/gcc
gzip     1.3.12    /bin/gzip                                                
tar      1.20      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/wenceslas/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
          current path             : 
          CRITICAL ERROR
checkpalm is offline   Reply With Quote

Old   November 30, 2009, 20:19
Default solved
  #146
New Member
 
Join Date: Nov 2009
Posts: 4
Rep Power: 16
checkpalm is on a distinguished road
Solved the problem. Turns out OpenFOAM compilation requires flex installed, which on RHEL is not the default.
checkpalm is offline   Reply With Quote

Old   December 1, 2009, 04:20
Default
  #147
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Alessandro,

>Now what I have to digit in the terminal to start OpenFOAM?
I just don't get that :-)

Do you mean "what do I have to type in the terminal to start OpenFOAM"? If so, you should start by having a look at the tutorial guide:

http://www.opencfd.co.uk/openfoam/do....html#x4-30002

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   December 1, 2009, 04:42
Default
  #148
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Alessandro,

>Now what I have to digit in the terminal to start OpenFOAM?
I just don't get that :-)

Do you mean "what do I have to type in the terminal to start OpenFOAM"? If so, you should start by having a look at the tutorial guide:

http://www.opencfd.co.uk/openfoam/do....html#x4-30002

/Mads
Thank's a lot for your help, I hope for a graphic interface for next release
__________________

83_Ale_83 is offline   Reply With Quote

Old   December 1, 2009, 16:51
Default
  #149
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Quote:
Originally Posted by 83_Ale_83 View Post
Thank's a lot for your help, I hope for a graphic interface for next release
That won't happen, but keep an eye on the development of discretizer: http://www.discretizer.org/
akidess is offline   Reply With Quote

Old   December 1, 2009, 17:04
Default
  #150
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by akidess View Post
That won't happen, but keep an eye on the development of discretizer: http://www.discretizer.org/
Wow, very usefull tool, I am a little bit scare to use OpenFOAM because I have always used Fluent but I am trying
__________________


Last edited by 83_Ale_83; December 1, 2009 at 18:43.
83_Ale_83 is offline   Reply With Quote

Old   December 1, 2009, 17:58
Default
  #151
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17
kjetil is on a distinguished road
hi,
I adopted this script to compile the 1.6.x, but there is one error that seems to keep repeating itself:
/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `std::ctype<char>::_M_widen_init() const'
and then
collect2: ld returned 1 exit status
This is on an almost fresh Ubuntu 9.10 64bit install.

Any ideas to what might be wrong? The script runs fine until the point "Compiling OpenFOAM", which is where this error occurs ...
kjetil is offline   Reply With Quote

Old   December 1, 2009, 18:33
Default
  #152
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Kjetil, please post "gcc -dumpversion". This looks like it's a regression bug in gcc 4.4. Might be caused by the mixing of libs (libs from 4.4, executables from 4.3.3) that's happening in the 9.10 script. If you know your way around linux, try editing the OpenFOAM .bash_rc and settings.sh to use the system compiler.
akidess is offline   Reply With Quote

Old   December 1, 2009, 18:43
Default
  #153
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17
kjetil is on a distinguished road
Gcc version is 4.4.1.

Isn't the settings.sh the only file I have to edit to make the Allwmake use system Gcc instead - I mean, you mentioned .bashrc too? This points to the appropriate bashrc in the OpenFOAM 1.6.x directory.

But, why do I get this error - wouldn't any Ubuntu 9.10 get this error - the new Gcc is default on all of these, and build-essentials is installed as a part of this script. This confuses me.
kjetil is offline   Reply With Quote

Old   December 2, 2009, 05:16
Default
  #154
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17
kjetil is on a distinguished road
Okay, now I get to the point of sourcing the dynamichMesh, before it fails. I have tried with both OpenFOAM and system compiler.
+ wmake libso dynamicMesh
SOURCE=attachDetach/attachDetach.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -I/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/meshTools/lnInclude -I/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/triSurface/lnInclude -IlnInclude -I. -I/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/attachDetach.o
In file included from /home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/CompactListList.H:238,
from lnInclude/polyTopoChange.H:78,
from attachDetach/attachDetach.C:37:
/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/CompactListListI.H: In static member function ‘static const Foam::CompactListList<T>& Foam::CompactListList<T>::null()’:
/home/kjetil/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/CompactListListI.H:74: error: expected type-specifier before ‘>’ token
make: *** [Make/linux64GccDPOpt/attachDetach.o] Error 1
This is then probably the reason for the later error message, that the applications dir can not be updated. Suggestions to how to fix this?
kjetil is offline   Reply With Quote

Old   December 3, 2009, 18:57
Default
  #155
New Member
 
Join Date: Jul 2009
Posts: 10
Rep Power: 17
Future Science is on a distinguished road
Hi Mads, I've followed the on-line tutorials to install OpenFOAM 1.6.x on Ubuntu 9.10 Karmic, 64 bit version.

After waiting a couple of hours to complete the Allwmake within the OpenFOAM folder, I tested the installation by executing foamInstallationTest, but I receive 2 critical errors. I have both linked the bashrc and I've created the symbolic link of the ThirdParty1.6 folder. And I've also edited the etc/settings.sh file, by tipying comiplerInstall = System.

The 2 critical errors are:

Code:
Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               mike-laptop
OS:                 Linux version 2.6.31-15-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/mike/OpenFOAM                      yes       yes
$WM_PROJECT_USER_DIR /home/mike/OpenFOAM/mike-1.6.x           yes       no
$WM_THIRD_PARTY_DIR  /home/mike/OpenFOAM/ThirdParty-1.6.x     yes       yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/mike/OpenFOAM/OpenFOAM-1.6.x       yes  yes  yes

$FOAM_APPBIN         ...6.x/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...nFOAM/site/1.6.x/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...6.x/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              /home/mike/OpenFOAM/OpenFOAM-1.6.x/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN         ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    ...nFOAM/site/1.6.x/lib/linux64GccDPOpt  no        no
$FOAM_USER_LIBBIN    ...nFOAM/mike-1.6.x/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH       ...nmpi-1.3.3/platforms/linux64GccDPOpt  yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
         Supplied version: 4.3.3
         User version    : 4.4.1
         Minimum required: 4.3.1

gcc      4.4.1    
WARNING:  Conflicting installations:
          OpenFOAM settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.3.12    /bin/gzip                                                
tar      1.22      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/mike/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam
          current path             : 
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult 
the installation guide for trouble shooting.

done.

Then I tried to run the first example case of incompressible laminar flow in a cavity, prior to installing paraView, since installing it comes later into the readme installation file.

When I try to do the execute blockMesh and icoFoam I receive for both the message "command not found".

How can I move on from here? Thanks in advance!
Future Science is offline   Reply With Quote

Old   December 4, 2009, 03:49
Default
  #156
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi Future Science.

Are you sure that Allwmake compiles without errors?

It's really wierd. As I recall, what I did was to 1) get a new computer, 2) install Ubuntu 9.10 64-bit version and then 3) install OpenFOAM with my script. As it didn't work out entirely, I applied the links that Bruno pointed out above - and now it's working. I know this helps you like a spoon when you need a fork (meaning it's not helpful to you :-/ ). The more statements of "this is working" we get though, should prove that the script is working. We have a lot of such validation of the first-gen scripts (for 8.04) but not so much for 9.10. So it might be my installation that's broke (and hence works).

Maybe other foamers could confirm installation (or give errors) with the script on 9.10-64?

Apparently installation of OpenFOAM under Linux is quite a fragile process, and small changes can have catastrophic consequences. In your case, we still have to find out what's wrong (and change the script accordingly).

I am not aware of that "comiplerInstall = System." you are talking about? Are you trying to use the system compiler instead of the one bundled with Ubuntu - if so, why?

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   December 4, 2009, 04:51
Default
  #157
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
I have had the same problem of you Future Science.
To try to resolve it I have install again ubuntu 9.10 x64 and then unistall gcc from the packet manager, finally I have use MadsR's script to install OpenFOAM.
Now all works fine, the only problem i have is that parafoam doesn't open file with .openFOAM extension, to solve this issue, I use the command foamToVTK and then use paraview to see my simulation.

Hope could be usefull

Alessandro
__________________

83_Ale_83 is offline   Reply With Quote

Old   December 4, 2009, 04:57
Default
  #158
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
Hello Mads
I am trying to modify your script so it could be used on OpenSUSE. I hope you could explain to me this line
./Allwmake >make.log 2>&1
the first argument is clear, you redirect the output of Allwmake to the make.log
but what the second argument (2>&1) is for?
In fact when I copied this line as it is, it resulted in some kind of a disaster to my OpenSUSE
, so please explain
thanks and good luck to all


------------------------------ Open Source for ever ---------------------------
Ahmed is offline   Reply With Quote

Old   December 4, 2009, 06:47
Default
  #159
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi Ahmed.

Nice - please post the modifications needed.

If ./Allwmake >make.log 2>&1 results in a disaster on an OpenSuse system it makes good reason for changing to Ubuntu :-) it's a completely valid Linux statement so I am a bit puzzled about any problems.

What it does is to redirect the "standard output" and "standard error"-streams to the make.log file. Google is your friend here.

@Alessandro is it really needed to uninstall gcc? Seems drastic.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   December 4, 2009, 07:13
Default
  #160
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 16
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Hi Ahmed.

Nice - please post the modifications needed.

If ./Allwmake >make.log 2>&1 results in a disaster on an OpenSuse system it makes good reason for changing to Ubuntu :-) it's a completely valid Linux statement so I am a bit puzzled about any problems.

What it does is to redirect the "standard output" and "standard error"-streams to the make.log file. Google is your friend here.

@Alessandro is it really needed to uninstall gcc? Seems drastic.

/Mads
I am very newbee to linux, it's not all the gcc but a compent (be careful to DON'T uninstall all gcc because in this case, linux will not recognize the monitor at next startup=black screen)
__________________

83_Ale_83 is offline   Reply With Quote

Reply


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
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 05:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 10:04


All times are GMT -4. The time now is 10:57.