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

OpenFoam 2.0.0 installation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2011, 05:12
Default
  #61
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hi everyone,
during the installation of OF 2.0.1 I face the same error fivos met some times ago:
Quote:
Originally Posted by fivos View Post
During ./Allwmake I face errors. The first one (and I believe the most important) is the following :

/home/fivos/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fvMatrixSolve.C:152: error: no matching function for call to 'max(Foam::lduMatrix::solverPerformance&, Foam::lduMatrix::solverPerformance&)'

Then more errors emerge, but I believe the root is the error I already mentioned. Has anyone else encountered this error? Any ideas?
how can this be solved? Fivos concluded that it was not a gcc problem, thus what should I do?
Please note the following:
  • configure complains, see here, but this should be not a problem;
  • I have ggc 4.3.2 installed on a Gnome Debian;
  • flex is 2.5.35.
anyone can help? thank you in advance!


mad



EDIT: this error can be solved using gcc-4.5.1, see post #66

Last edited by maddalena; September 28, 2011 at 09:37. Reason: Link for how to fix
maddalena is offline   Reply With Quote

Old   September 27, 2011, 09:23
Default
  #62
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
One step more (and one question more...)
I wanted to update my gcc, just in the case that this solve my problem. I followed steps described by Bernard here, from 1 to 5, thus now I should have the following installed on my workstation:
  • gmpPACKAGE=gmp-5.0.2 #changed from 5.0.1
  • mpfrPACKAGE=mpfr-2.4.2
  • mpcPACKAGE=mpc-0.8.1
  • gccPACKAGE=gcc-4.5.1
  • cmakePACKAGE=cmake-2.8.3
Indeed:
Code:
tail makeGcc.log --> Built: gcc-4.5.1
However:
Code:
gcc --version --> gcc (Debian 4.3.2-1.1) 4.3.2.
It seems like nothing has changed...

Any clue of what is happening here?


mad
maddalena is offline   Reply With Quote

Old   September 28, 2011, 08:40
Default
  #63
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16
Anne Lincke is on a distinguished road
Hey Maddalena,
try to insert the line

HTML Code:
alias of20x-linux64='. $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc foamCompiler=ThirdParty WM_COMPILER=Gcc45'
to your .bashrc and source it.
In my case it worked.
It is also described in Bruno's post, here
http://www.cfd-online.com/Forums/ope...llation-3.html
Anne Lincke is offline   Reply With Quote

Old   September 28, 2011, 08:51
Default hello every one
  #64
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 15
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
anybody used bouyantBoussineqSimpleFoam solver?
i have some query because streamFunction is not running in that solver
jignesh_thaker2007 is offline   Reply With Quote

Old   September 28, 2011, 08:53
Default
  #65
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16
Anne Lincke is on a distinguished road
Hey,
yes I use this solver.
Does it have something to do with the installation of OpenFOAM-2.0.0?
Anne Lincke is offline   Reply With Quote

Old   September 28, 2011, 09:34
Default Solved!
  #66
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hey Anne,
Quote:
Originally Posted by Anne Lincke View Post
try to insert the line

HTML Code:
alias of20x-linux64='. $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc foamCompiler=ThirdParty WM_COMPILER=Gcc45'
to your .bashrc and source it.
In my case it worked.
Indeed it was something connected with gcc: my foamCompiler and WM_COMPILER were not defined in $HOME/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc and $HOME/OpenFOAM/OpenFOAM-2.0.1/etc/config/settings.sh accordingly. therefore, ./Allwmake was looking for gcc on the standard Debian folder, in place of $HOME/OpenFOAM/ThirdParty-2.0.1/platforms/linux64/gcc-4.5.1/bin/gcc.
I fixed that, and now I have a brand new OpenFOAM 2.0.1 version to test! Problem reported here is fixed in this way.

Thank you for your interest.

mad
maddalena is offline   Reply With Quote

Old   September 28, 2011, 10:01
Default hi
  #67
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 15
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
Quote:
Originally Posted by Anne Lincke View Post
Hey,
yes I use this solver.
Does it have something to do with the installation of OpenFOAM-2.0.0?
hey i dont know when i run that solver its gave me all values but when i type streamFunction then it will give me error like


Time: 0
--> FOAM Warning :
From function streamFunction
in file streamFunction.C at line 456
Flux field does not exist. Stream function not calculated

Time: 100

Reading field phi
Zero face: patch: 0 face: 0
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3
in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/streamFunction"
#4 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#5
in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/streamFunction"
Floating point exception
jigsmoksh@ubuntu:~/Desktop/hotRoom$


so tel me how can i write the data of stream function with this solver
actally StreamFunction command work for another solver like icoFoam SimpleFoam but in buoyantB...SimpleFoam it cant work it gave me error so what can i do?

hey can anybody solve my problem?

Last edited by jignesh_thaker2007; September 28, 2011 at 10:17.
jignesh_thaker2007 is offline   Reply With Quote

Old   September 28, 2011, 10:59
Default
  #68
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16
Anne Lincke is on a distinguished road
Hey,

I do not know the function "streamFunction" but I know the tutorial case "hotRoom" and in my opinion this test case is not usable.
It converges very bad as the mesh is much too coarse.
When I run "streamFunction" in the test case "hotRoom" i get the same error as you get.
When I run it in another test case, it is fine.

I assume the reason for streamFunction not working is the bad convergence behaviour of the test case.

That is all that I can say.
Anne Lincke is offline   Reply With Quote

Old   September 28, 2011, 11:29
Angry
  #69
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
jignesh,
this is not the right thread where to post your questions! This has nothing to do with OpenFoam installation! Please, open your own thread.

mad

Quote:
Originally Posted by jignesh_thaker2007 View Post
hey i dont know when i run that solver its gave me all values but when i type streamFunction then it will give me error like


Time: 0
--> FOAM Warning :
From function streamFunction
in file streamFunction.C at line 456
Flux field does not exist. Stream function not calculated

Time: 100

Reading field phi
Zero face: patch: 0 face: 0
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3
in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/streamFunction"
#4 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#5
in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/streamFunction"
Floating point exception
jigsmoksh@ubuntu:~/Desktop/hotRoom$


so tel me how can i write the data of stream function with this solver
actally StreamFunction command work for another solver like icoFoam SimpleFoam but in buoyantB...SimpleFoam it cant work it gave me error so what can i do?

hey can anybody solve my problem?
Anne Lincke likes this.
maddalena is offline   Reply With Quote

Old   February 16, 2012, 09:02
Default
  #70
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
hey all,

i 've a problem compiling the third party (paraview).
I did everything correctly listed in the openfoam.com introduction how to install the git respository.

OF is compiled with no serious errors. After that i started compiling paraview

Code:
./makeParaView
After a while i get an error:
Code:
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/Partition.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/ParticleDistribute.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/ParticleExchange.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/Message.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/CosmoHaloFinder.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/CosmoHaloFinderP.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/FOFHaloProperties.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/ChainingMesh.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/HaloCenterFinder.cxx.o
[ 12%] Building CXX object VTK/Utilities/Cosmo/CMakeFiles/Cosmo.dir/SODHalo.cxx.o
Linking CXX shared library ../../../bin/libCosmo.so
[ 12%] Built target Cosmo
make[2]: *** Keine Regel vorhanden, um das Target »/usr/lib/libGL.so«, 
  benötigt von »bin/libvtkftgl.so.pv3.12«, zu erstellen.  Schluss.
make[1]: *** [VTK/Utilities/ftgl/CMakeFiles/vtkftgl.dir/all] Fehler 2
make: *** [all] Fehler 2
    ---
    Installation complete for paraview-3.12.0
    Set environment variables:

        export ParaView_DIR=/home/shor-ty/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12
    ---

Done
After the first time, i set the enviroment variables listed in the code and tried it again. unfortunately with the same error.

Did i forget to install a tool / lib or something like that?

Tobi
Tobi is offline   Reply With Quote

Old   February 16, 2012, 09:42
Default
  #71
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Is it possible that this problem is caused by my graphiccard?
/usr/lib/libGL.so
I 'd some problems to install the driver. :/
Its a nvidia GTX 560 but there are no drivers coming from ubuntu, so i downloaded the driver from nivida.com and installed it. but i remember that there was a message with an script error.

Tobi
Tobi is offline   Reply With Quote

Old   February 17, 2012, 05:50
Default
  #72
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Tobi,

Yes, it's possible that the problem is related to a bad installation of the graphics card drivers. Nonetheless, it might not be or just be the tip of the iceberg!

So, let's go through the check list:
  1. Are you able to see those neat animations and transparencies that Ubuntu has? You know, the ones that need a 3D accelerated graphics card.
  2. Check if the file "/usr/lib64/libGL.so" exists. Sometimes things get placed in the right place, but the wrong place is where things usually are and where they are searched for
  3. Which OpenFOAM and Ubuntu versions are you using? This is just to try and replicate the issue you are getting.
  4. Did you install all of the packages indicated on the page where you followed the installation instructions? Because ParaView needs a few more packages that OpenFOAM doesn't need.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 17, 2012, 11:49
Default
  #73
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Greetings Tobi,

Yes, it's possible that the problem is related to a bad installation of the graphics card drivers. Nonetheless, it might not be or just be the tip of the iceberg!

So, let's go through the check list:
  1. Are you able to see those neat animations and transparencies that Ubuntu has? You know, the ones that need a 3D accelerated graphics card.
  2. Check if the file "/usr/lib64/libGL.so" exists. Sometimes things get placed in the right place, but the wrong place is where things usually are and where they are searched for
  3. Which OpenFOAM and Ubuntu versions are you using? This is just to try and replicate the issue you are getting.
  4. Did you install all of the packages indicated on the page where you followed the installation instructions? Because ParaView needs a few more packages that OpenFOAM doesn't need.
Best regards,
Bruno

Hey,

i am useing Ubuntu 10.04 and want to work with OpenFOAM 2.1.x.
After a bad crash in Linux I reinstalled Ubuntu yesterday. The first problem is, that there are no graphics driver supported with my card. So i decided to download the driver from nvidia.com and installed it in runlvl 3 like the introductions file says.


I just installed the packages for OpenFOAM. Which other packs do i need for paraview?

I 'll have a look at the files you listed and report it later.

Thx
Tobi
Tobi is offline   Reply With Quote

Old   February 18, 2012, 07:20
Default
  #74
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Tobi,
Quote:
Originally Posted by Tobi View Post
I just installed the packages for OpenFOAM. Which other packs do i need for paraview?
These, where in bold are the important ones for ParaView:
Quote:
Originally Posted by http://www.openfoam.org/download/source.php
Code:
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libxt-dev
Ah ha! And if you are using Ubuntu 10.04, then you need this post: http://www.cfd-online.com/Forums/ope...tml#post337103 - post #9

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 19, 2012, 09:39
Default
  #75
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Greetings Tobi,
  1. Check if the file "/usr/lib64/libGL.so" exists. Sometimes things get placed in the right place, but the wrong place is where things usually are and where they are searched for
Hi Bruno,

i looked for the libGL.so file, and it exists but i think with errors. If i click on it there is coming a error message that the aim -- "»mesa/libGL.so«" -- does not exist.


Quote:
  1. Are you able to see those neat animations and transparencies that Ubuntu has? You know, the ones that need a 3D accelerated graphics card.
I can make my terminal transparent and can see everything very good. Did you mean sth. like that?



Quote:

Did you install all of the packages indicated on the page where you followed the installation instructions? Because ParaView needs a few more packages that OpenFOAM doesn't need.
The line you posted with the packs are on my computer.
I tried to compile paraview with the Post #9 without success :/

I think that the problem is caused by my graphics card. but i dont know how i can fix it. I 'll try to install the drivers again and hope that the error is fixed then.

I add the makePV. error file.

Tobi
Tobi is offline   Reply With Quote

Old   February 19, 2012, 09:59
Default
  #76
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey Bruno,

i refreshed my graphics driver and now it seems that paraview could be compiled
At least i added the nvidia driver installation log - there are some errors too.

But i think my problem is solved, for the moment.

Tobi
Attached Files
File Type: txt nvidia-installer.log.txt (42.6 KB, 4 views)
Tobi is offline   Reply With Quote

Old   February 19, 2012, 15:57
Default
  #77
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Tobi,

Quote:
Originally Posted by Tobi View Post
But i think my problem is solved, for the moment.
I'm glad you've got it working! I've quickly seen the attached log file and in spite of error it shows, it looks like everything else is working... so, I guess that if it looks like it is working, then it's because it is working at least until it stops working...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 22, 2012, 14:09
Default
  #78
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
Hello everyone!

I start saying that I'm new of this forum, and I'm also new of Linux.

I am trying to install OF 2.0.1 since at least 3 days but without success.
I'm using Debian Squeeze. I installed the packages required for Ubunto listed in http://www.openfoam.org/download/source.php

After first problems (apparently solved in the thread http://www.cfd-online.com/Forums/ope...ath-error.html
where I posted also the output of foamInstallationTest), now it seems I'm in the same (or similar) situation of Jan in the 1st post of this thread. Only that I'm not able to find where is/are the error/s.

I am attaching the output of ./Allwmake > make.log 2>&1

Thank you!

Claudio
Attached Files
File Type: gz make.log.tar.gz (18.4 KB, 1 views)
Claudio87 is offline   Reply With Quote

Old   March 22, 2012, 16:48
Default
  #79
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Claudio,

I saw your posts earlier today, but only now did I get around to look into this and reply.

The first error usually is the one that tells the whole story In your case, it's this chunk of output:
Code:
wmake libso mpi
/usr/bin/ld: skipping incompatible /usr/lib/openmpi/lib/libmpi.so when searching for -lmpi
/usr/bin/ld: skipping incompatible /usr/lib/openmpi/lib/libmpi.a when searching for -lmpi
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../libmpi.so when searching for -lmpi
/usr/bin/ld: skipping incompatible /usr/lib/libmpi.so when searching for -lmpi
/usr/bin/ld: cannot find -lmpi
Apparently it looks like you are trying to use the system's MPI, but you also seem have a double architecture working on your machine, namely both i486 and x86_64 as it seems.
The solution should be for you to install the correct MPI for x86_64.
The other possibility is to switch to compiling the 32bit version of OpenFOAM.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 22, 2012, 17:14
Default
  #80
Member
 
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14
Claudio87 is on a distinguished road
Hi Bruno,
thanks for your answer!

I think that you understood what is my problem, but sincerely I didn't. Or better: what exactly I have to do to install OF? or better again: which is this "correct MPI for x86_64" ??
And also for the second alternative, how I can compile the 32bit version of OpenFOAM? Because on the website I found only one version (I think...) to download!

Thank you!

Best regards,
Claudio
Claudio87 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
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 07:28
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 16:42.