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 1.6.x Installer for Ubuntu (https://www.cfd-online.com/Forums/openfoam-installation/73805-openfoam-1-6-x-installer-ubuntu.html)

wyldckat June 19, 2010 05:46

Greetings Mystix,
Quote:

Originally Posted by mystix (Post 263537)
But I have a problem with running ParaView. I used command "paraFoam" after running the cavity case and the message:
138: paraview: not found
was coming.

Can you please help me?

Hopefully yes, we can help you ;). Sorry about the build issue, it's related to you choosing to build ParaView with OSMesa, which apparently doesn't work very well if we choose the GUI option too.

So, as I've written in another post above, please try the experimental script:
Quote:

Originally Posted by wyldckat
Have you tried to use the experimental script? Please see post #68 and maybe a couple of more after that one, because I'm not sure where I explain it a bit better :(

You can use the custom mode available in the experimental script and pick the same options you've chosen before, but this time don't choose to build ParaView with OSMesa.

Best regards,
Bruno

wyldckat June 19, 2010 11:10

Hello Rickard,

Quote:

Originally Posted by SkunkWorks (Post 263310)
And it worked! But to make a stream line takes a very long time.
And still it complains about no connection to the Ibus daemon.

I've tested using the script in a newly installed KUbuntu 10.04 64bit in a VM and managed to replicate the ibus thing. Apparently it's nothing to worry about, and I quote:
Quote:

Originally Posted by http://ubuntuforums.org/showpost.php?p=9319496&postcount=4
The ibus bits are harmless.
Code:

QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/kubisch/.config/ibus/bus
Bus:pen: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon

As of lucid, Kubuntu compiles its KDE programs to use the ibus input method engine (IME) per default, and unless you're running its daemon it will complain like this. You don't need any special IMEs unless you plan to input in non-western languages, like Japanese. You can probably satisfy the first two error messages by creating the ~/.config/ibus/bus directory that it seeks.
Code:

$ mkdir -p ~/.config/ibus/bus

Now, as for the streamline issue, if you could tell us the number of cells and their types that your case has or if you know a tutorial case in OpenFOAM where you also get a very slow streamline generation, then we could try to isolate the problem and try to fix it!

Best regards,
Bruno

SkunkWorks June 20, 2010 15:19

Hi Bruno!

As you can see itś 1105378 cells.

The stream line in my only case that i have right now after the disk crash is a baling out case. with a complicated pattern. You can see the picture down here and I think itś strange accordingly to the good results with checkMesh, and itś far from the first case. (I know that itś out of this thred but have any one any idea?)

Last time a installed on a 10.04 with the experimental script, the first thing a react on was the longer time it took compared to the caelinux 8.04 compilation. I used the installation for a month before the crash. And my over all impression was that it was just the streamline function slowness.

The case can be downloaded from if it helps
http://www.tooslow.net/rattus/CFD_Pi...ojekt20100612/

Thanks for careing and for a great script! (itś in fact the best)

Regards / Rickard
__________________________________________________ ___________________________________

Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
points: 223811
faces: 2282980
internal faces: 2138532
cells: 1105378
boundary patches: 4
point zones: 0
face zones: 0
cell zones: 0

Overall number of cells of each type:
hexahedra: 0
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 1105378
polyhedra: 0

Checking topology...
Boundary definition OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces ...
Patch Faces Points Surface topology
wing 99732 49868 ok (closed singly connected)
inlet 5966 3074 ok (non-closed singly connected)
outlet 5964 3073 ok (non-closed singly connected)
channel 32786 16573 ok (non-closed singly connected)

Checking geometry...
Overall domain bounding box (-7.48 -10 -7) (7.48 10 7)
Mesh (non-empty, non-wedge) directions (1 1 1)
Mesh (non-empty) directions (1 1 1)
Boundary openness (-1.57009e-18 3.8192e-16 -1.39881e-17) OK.
Max cell openness = 2.50878e-16 OK.
Max aspect ratio = 729.32 OK.
Minumum face area = 3.23484e-10. Maximum face area = 0.247133. Face area magnitudes OK.
Min volume = 7.14046e-15. Max volume = 0.0379393. Total volume = 3289.32. Cell volumes OK.
Mesh non-orthogonality Max: 67.9315 average: 16.5219
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 1.10005 OK.

Mesh OK.

End
__________________________________________________ ________________________


http://www.tooslow.net/rattus/CFD_Pi..._1_time=8s.png

sunlight June 22, 2010 08:19

Help
 
Executing /home/xiaoguang/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: xiaoguang-desktop
OS: Linux version 2.6.31-22-generic-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/xiaoguang/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/xiaoguang/OpenFOAM/xiaoguang-1.6.x no no
$WM_THIRD_PARTY_DIR .../xiaoguang/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/xiaoguang/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...penFOAM/site/1.6.x/bin/linuxGccDPOpt no no
$FOAM_USER_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt no no
$WM_DIR ...oguang/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 ...OAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...penFOAM/site/1.6.x/lib/linuxGccDPOpt no no
$FOAM_USER_LIBBIN ...AM/xiaoguang-1.6.x/lib/linuxGccDPOpt no no
$MPI_ARCH_PATH ...penmpi-1.3.3/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


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.22 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/xiaoguang/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


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

The foam installation contains 1 critical error(s).

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

done.
I can not solve the problem (icoFoam conflicting installations). Please help me. Thank you very much.

wyldckat June 22, 2010 08:31

Greetings Sunlight and welcome to the forum!

OK, by what you posted, apparently OpenFOAM isn't built yet. We're going to need some more information in order to help you:
  1. what Linux distribution are you using? Ubuntu, openSUSE, Fedora or some other?
  2. What version of that distribution are you using?
  3. What instructions or script did you use to get to this point?
  4. What steps did you take?
Best regards,
Bruno

anders_r_r June 22, 2010 18:34

Basic installation questions
 
Hello,

The last six month I have been doing some cfd simulations using Comsol. Now I would like to try out OpenFOAM. I have Ubuntu 10.04 on my laptop, but does not have much experience with linux.

I went to the page:

http://code.google.com/p/openfoam-ubuntu/

and followed the instructions:

$ wget http://openfoam-ubuntu.googlecode.com/hg/installOF.sh
$ chmod +x installOF.sh
$ ./installOF.sh

Questions start to arise when I am asked to choose Install settings: what exactly does the five options mean? which one should I choose?

Next is ParaView settings. How do I choose among the six options? (I did read a little about ParaView on wikipedia and paraview.org - all this stuff is new to me)

Finally I am asked: Build GCC? (otherwise use pre-compiled version). Yes or no?

I believe my questions are very basic. However, I haven't been able to find the answers. Can someone help me by supplying some answers, or pointing me in the right direction.

Any help is very much appreciated.

wyldckat June 22, 2010 18:58

Greetings Anders and welcome to the forum!

We haven't had the time to get to the documentation part of the script :(
But the script itself should cover the basics on its own. In other words, even if you just keep pressing Enter and ignoring the options dialogs, it should still build a working OpenFOAM+ParaView installation!

As for a "customized" guide with options for installing and with some comments, here is a post I made sometime ago: Installing OpenFOAM 1.6 on Ubuntu 10.4 post #6

And a very quick explanation about some of your questions:
  1. building gcc 4.3.3 (OpenFOAM's version) isn't 100% necessary.... it's only needed in some scenarios when for some reason either the pre-built version or the Ubuntu's version don't work :( With Ubuntu versions above 8.10 you should be able to use Ubuntu's gcc.
  2. As for building ParaView, this is a "must" for now in Ubuntu 10.04; and you can choose all options, except the OSMesa option, which only works when not building ParaView with GUI (i.e., for servers/clusters).
In about 2 to 4 weeks from now we should have some additional documentation online... or so we hope...

Best regards,
Bruno

sunlight June 23, 2010 02:46

Quote:

Originally Posted by sunlight (Post 263999)
Executing /home/xiaoguang/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: xiaoguang-desktop
OS: Linux version 2.6.31-22-generic-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/xiaoguang/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/xiaoguang/OpenFOAM/xiaoguang-1.6.x no no
$WM_THIRD_PARTY_DIR .../xiaoguang/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/xiaoguang/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...penFOAM/site/1.6.x/bin/linuxGccDPOpt no no
$FOAM_USER_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt no no
$WM_DIR ...oguang/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 ...OAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...penFOAM/site/1.6.x/lib/linuxGccDPOpt no no
$FOAM_USER_LIBBIN ...AM/xiaoguang-1.6.x/lib/linuxGccDPOpt no no
$MPI_ARCH_PATH ...penmpi-1.3.3/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


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.22 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/xiaoguang/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
current path :
CRITICAL ERROR

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


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

The foam installation contains 1 critical error(s).

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

done.
I can not solve the problem (icoFoam conflicting installations). Please help me. Thank you very much.

I used Ubuntu 9.10. i followed the steps according to http://code.google.com/p/openfoam-ubuntu/

wyldckat June 23, 2010 14:46

Greetings Sunlight,

We are going to need the following file to figure out what happened:
Code:

$HOME/OpenFOAM/OpenFOAM-1.6.x/make.log
The script should have asked you if you wanted to make a package to post in this thread. But I suppose you didn't tell it to do so, so please run this command:
Code:

tar -czf sunlight_make_log.tar.gz $HOME/OpenFOAM/OpenFOAM-1.6.x/make.log
And then post the file "sunlight_make_log.tar.gz".
That file will give us a better view of what went wrong.

Best regards,
Bruno

wyldckat June 23, 2010 18:36

Hello Rickard,

I didn't forget about you, I just didn't get the time to get around to testing this before.
Quote:

Originally Posted by SkunkWorks (Post 263777)
As you can see itś 1105378 cells.

(...)
Last time a installed on a 10.04 with the experimental script, the first thing a react on was the longer time it took compared to the caelinux 8.04 compilation. I used the installation for a month before the crash. And my over all impression was that it was just the streamline function slowness.

The case can be downloaded from if it helps
http://www.tooslow.net/rattus/CFD_Pi...ojekt20100612/

You are correct, the built ParaView 3.6.1 with OpenFOAM's plugin PV3FoamReader is slooooow. Reason - 2 possibilities:
  1. Somewhere something didn't get properly optimized during compilation;
  2. the PV3FoamReader is know to be a bit slow... at least when compared with Takuya's OpenFOAM reader, which is now integrated into ParaView 3.8.0 :D
So, I compared it with ParaView 3.8.0 available at www.paraview.org and the 3.8.0 was about 2x faster than the 3.6.1!

Sooo... follow the instructions available here: http://www.cfd-online.com/Forums/ope...tml#post263925
It's not very detailed, but it should be simple enough to implement ;)

Best regards,
Bruno

sunlight June 24, 2010 01:43

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 264241)
Greetings Sunlight,

We are going to need the following file to figure out what happened:
Code:

$HOME/OpenFOAM/OpenFOAM-1.6.x/make.log
The script should have asked you if you wanted to make a package to post in this thread. But I suppose you didn't tell it to do so, so please run this command:
Code:

tar -czf sunlight_make_log.tar.gz $HOME/OpenFOAM/OpenFOAM-1.6.x/make.log
And then post the file "sunlight_make_log.tar.gz".
That file will give us a better view of what went wrong.

Best regards,
Bruno

Dear Bruno,
I post the file "sunlight_make_log.tar.gz" as you requested. Please help me. I used Ubuntu 9.10 system only and the system was guided by grub (not grub2). Thank you very much.
Best regards,
Xiaoguang Yang

wyldckat June 24, 2010 07:25

Dear Xiaoguang Yang,

Sorry about that problem, but we haven't tested the script with the latest Ubuntu 9.10 and hadn't come across the problem you got :(
The problem is that (for some strange reason) the OpenFOAM's gcc 4.3.3 has become even more incompatible with Ubuntu's 9.10 system libraries.
Please do the following steps:
  1. Remove the folder "$HOME/OpenFOAM/OpenFOAM-1.6.x".
  2. And now follow the steps in this post: Installing OpenFOAM 1.6 on Ubuntu 10.4 post #6
It will lead to having to download again the git repository, but at least you now get the latest version. No other files will be necessary to download, I think. And this will make OpenFOAM be built with Ubuntu's gcc 4.4.1 :)

Best regards,
Bruno

jgpeder June 24, 2010 09:20

Hi,
I've just tried running the script on Ubuntu 9.10. But it seems like all it does, is to download and untar the thirdparty files :confused: I dont see any errors or warnings.
Am I missing something obvious?
Thanks
-Jesper

wyldckat June 24, 2010 10:37

Greetings Jesper,

Without looking at the log files, I can only think that all went well... but I'm probably wrong.
Please post the file "installOF.log"... or better yet, post the compressed file:
Code:

tar -czf installOF_log.tar.gz installOF.log
Best regards,
Bruno

jgpeder June 24, 2010 11:53

1 Attachment(s)
Greetings Bruno,
I have attached the log-file.

Best regards
Jesper

wyldckat June 24, 2010 12:05

Hi Jesper,

Indeed this is very strange... does the folder $HOME/OpenFOAM/OpenFOAM-1.6.x exist in your installation? Because the next step after untaring would be to do a git clone!

By the way, what options did you choose in the script?

Did you have already tried to install OpenFOAM with some other script? If so, did you do a clean up first?

Best regards,
Bruno

jgpeder June 24, 2010 12:54

Hi Bruno,
I've tried the script a couple of times with different options. All with the same result.
The first try was just after installing Ubuntu. So it should be clean.
For the following tries I simply deleted the created files.
In the case of the previously attached log-fie I just used default options all the way through.

The $HOME/OpenFOAM/OpenFOAM-1.6.x is not created.

Thanks for the quick response!
-Jesper

wyldckat June 24, 2010 13:14

Hi Jesper,

OK, this is really strange... I'm going to have to try the script at home with an Ubuntu 9.10 x86_64 in a VM. I'll try to reproduce the error, but this is really strange.
By the way, have you now fully updated 9.10? Or are you still using a "clean with no updates" installation of Ubuntu 9.10 x86_64?

Best regards,
Bruno

jgpeder June 24, 2010 14:03

Hi Bruno,
It is fully updated 9.10.
- Jesper

wyldckat June 24, 2010 18:25

Greetings Jesper,

Saddens me to say this, but I'm somewhat stumped :confused: I know I've had a similar issue in the past, but somehow managed to fix it.

And I've just ran the script in a newly installed and it didn't lock up where it locked up with you!

Nonetheless, it didn't work 100% as I expected... so I've found out a couple of bugs and fixed them, so please remove the installOF.sh script you have and download the latest version (i.e., run the 3 command lines from the site again).
You don't need to remove the downloaded files that are now in your $HOME/OpenFOAM folder, but you might want to remove the folders inside it, i.e., the folder ThirdParty-1.6 and the link ThirdParty-1.6.x (if it exists).

And try again running the installOF.sh script!


If it jams up again in the same place... well, I'll try to give you instructions on how to isolate the error or even bypassing some steps that might be causing the issue!

Best regards,
Bruno


All times are GMT -4. The time now is 08:15.