|
[Sponsors] |
July 6, 2009, 14:04 |
|
#21 |
Member
Sebastian
Join Date: Mar 2009
Location: Munich, Germany
Posts: 30
Rep Power: 17 |
Thanks hansel, that sounds hopefull! After days (and nights) of reinstall Ubuntu and OpenFoam, I will try this last way!
One stupid question: You are using Paraview 3.3. Do you know the way to get a working PV3.4-Installation including working paraFoam? Thank for your longsome work ff23 |
|
July 6, 2009, 14:10 |
|
#22 |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
||
July 13, 2009, 18:37 |
|
#23 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Hi!
Thanks for this tutorial, I think I managed to get my OF setup pretty much working, despite a few errors during compilation. The OF-1.5 compilation will stop after some errors, just as you mentioned. Paraview compiled just fine, but I have a problem when I run paraFoam. I get the error message: (home dir)/OpenFOAM/OpenFOAM-1.5/bin/paraFoam: 103: paraview: not found when trying to run a case file. I haven't installed paraview via a debian package, instead it now sits compiled in the ThirdParty/ParaView.. folder. Any ideas how to make paraFoam see paraview? Regards, - pm |
|
July 13, 2009, 18:40 |
|
#24 |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
The first thing I'd check is make sure that the ThirdParty/ParaView folder is in your path.
|
|
July 14, 2009, 06:23 |
|
#25 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Hi,
thanks for the fast response! The /bin is in the path, where the pv(*)server executables are also. I did try to symlink the .pvserver as 'paraview' in OpenFOAM /bin folder, which did something but didn't run the case file - I guess that's not the way to go either. I omitted the last step in your how-to about compiling PV3FoamReader, because that resulted in an error and I noticed I had the paraFoam executable as a result of OF compilation. Maybe the problem is because of this (some script didn't run) ? |
|
July 14, 2009, 10:57 |
|
#26 | |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
Quote:
Did you add the lines that have to do with Paraview to your .bashrc file (step 10) Remember to sub in your location for OpenFOAM. There are 3 components to this viewer system: 1) paraview - the main program for doing the graphical display. 2) FoamReader - this is a library (I think) that paraview loads, that lets it understand the openfoam file formats. 3) paraFoam - this is a script, that does a little preparation of your case directory and then starts paraview with the options to use the FoamReader library. If you are going to use paraFoam you need to compile the foamreader. Steve |
||
July 14, 2009, 17:22 |
|
#27 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
There is a slightly less comprehensive guide to a OpenFOAM installation on Ubuntu on http://ubuntuforums.org/showthread.php?t=156298. It seems to be maintained as new versions are released. At least this worked for me.
(Though, I'm having severe problems with the PV3 readerplugin :P ) |
|
July 15, 2009, 07:38 |
|
#28 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Hi,
I went around the whole compilation stuff and simply downloaded the 64 bit binary of Paraview which runs Ok. However, its OpenFOAM reader seems to be broken - it just crashes the whole Paraview when trying to open a case file. Apparently this is a common problem. I thought I'd look into compiling the PV3FoamReader, if that'd fix this, but this in turn lead to another error.. : [compilation stuff here..] CMake Error at /home/pamakela/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/VTK/VTKConfig.cmake:158 (INCLUDE): include could not find load file: /home/pamakela/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/VTK/VTKConfigQt.cmake I'm wondering if there's a (64 bit) binary version of PV3FoamReader to simply download? The binary PV was version 3.4.0. |
|
July 15, 2009, 07:43 |
|
#29 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
So you download the 64bit version of Paraview from their website? I thought the directory structure was different ... can you get the paraView to open using paraFoam from case dir?
Last edited by kjetil; July 15, 2009 at 08:12. |
|
July 15, 2009, 07:53 |
|
#30 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Yes I copied the 64 bit version bluntly to the dir structure where the original paraview executable should've been.
When I run 'paraFoam -case $FOAM_RUN/tutorials/icoFoam/cavity', paraview 3.4.0 opens and a dialog pops up, where you can select a reader for the case file. After selecting 'OpenFOAM files' reader, whole paraview dies. There is a patch to fix this, but that route means compiling paraview itself, which resulted in issues with my Jaunty package setup (synaptic won't install necessary dependencies). I'd really prefer some binary PV3FoamReader if there is one to try with. (For the record: this is a very fresh jaunty install with all updates applied) |
|
July 15, 2009, 08:15 |
|
#31 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Well, I compiled both paraView and PV3 reader plugin in 64bit Jaunty two days ago. In a sense this works - the reader dialog does not appear - but opening a geometry has never worked in any way on my computer, and I don't know the reason for that. What dependencies isn't working? Have you installed the build-essentials?
|
|
July 15, 2009, 09:15 |
|
#32 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Actually I tried to remedy my compilation issues by installing (to make sure) a big bunch of Qt4 packages, but they won't install because there's some dependency mismatch. So in other words, I don't know exactly what those packages are
Build-essentials is and was there. Are you saying the build-essentials is all you would need to compile PV3FoamReader succesfully? |
|
July 15, 2009, 10:11 |
|
#33 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
I did the buildParafoam script first, and that one checks if the dependencies are ok and gives feedback on which it needs. The only thing I remember editing was commenting out the Qt error message (given you have version >4.3).
When compiling CVS snapshot from paraview, I also had to disable one or two paraview plugins in the cmake textfiles in the directory tree - I think it was one called pointSprite which failed continuously. So that is solved by just choosing 'OFF' in the dir tree. That being said, paraFoam/paraView has not worked on either of my Ubuntu installations so far |
|
July 15, 2009, 10:36 |
|
#34 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
Ok, I got past the previous PV3FoamReader issue.
But now this: [ 9%] Generating qrc_PV3FoamReader.cxx [ 18%] Generating moc_PV3FoamReaderPluginImplementation.cxx Scanning dependencies of target PV3FoamReader [ 27%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o [ 36%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o [ 45%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o Linking CXX shared library /home/pamakela/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libPV3FoamReader.so /usr/bin/ld: cannot find -lpqComponents collect2: ld returned 1 exit status make[2]: *** [/home/pamakela/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libPV3FoamReader.so] Error 1 make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2 make: *** [all] Error 2 ld can't see this 'pqComponents'. I added the pqComponents.dir into LD_LIBRARY_PATH but of course it didn't work. Any ideas for this? (open source seems to be quite free in terms of money. What about in terms of time?) |
|
July 15, 2009, 11:19 |
|
#35 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
There is a brief guide to the paraView compilation in the bundled openFoam readme, I think it's in section 7. After successfully having compiled the paraView, I didn't experience any problems compiling the PV3 reader. Did you use the ./Allwclean first? (Though I don't know if this would help in this case). I remember I got one of these "ld" errors, but I didn't do any fancy tricks to get this work like adding paths or anything - I think I just added libraries (which for the most happend during the paraView compilation itself).
|
|
July 15, 2009, 13:00 |
|
#36 |
New Member
Paavo Mäkelä
Join Date: Jul 2009
Posts: 10
Rep Power: 17 |
I now did a clean compilation with the proper Qt/VTK packages and all went Ok now. This of course reverts me from the binary Paraview 3.4 to 3.3, but running the 'paraFoam -case $FOAM_RUN/tutorials/icoFoam/cavity' works now.
The solution in my case was to remove some packages which prevented the installation of the right Qt packages. It seems the method described in the beginning of this thread is indeed a valid one, but maybe the required packages list part could be more informative. |
|
July 19, 2009, 07:03 |
|
#37 |
New Member
Igor Galdona
Join Date: Jun 2009
Posts: 14
Rep Power: 17 |
Hi all, dear Hansel
Thank you very much for your detailed tutorial to install OpenFOAM on this version of Ubuntu (mine is 32 bits). I run the ‘foamInstallationTest’ script and there was no mistake. Does this mean everyting is all right? I'm very new user of ubuntu (and OpenFOAM of course). Thanks a lot!!! |
|
July 21, 2009, 22:28 |
|
#38 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
hi,
once the foamtestInstallation does not give any errors it means ur installation is OK. Trying running some of the examples given in the tutorials |
|
July 22, 2009, 19:44 |
|
#39 |
Senior Member
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 17 |
Are you sure there is an error? I don't see one in the lines you posted and I can't find the string 'rror;' in the full file. What line or words trouble you?
|
|
July 23, 2009, 03:50 |
|
#40 | ||
New Member
Igor Galdona
Join Date: Jun 2009
Posts: 14
Rep Power: 17 |
Quote:
hi, Quote:
If somebody could help me with this... Thank you very much!! |
|||
Tags |
9.04, installing openfoam, ubuntu 9.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 04:14 |
qt4.3.4 with ubuntu 9.04 "jaunty jackalope"? | sven | OpenFOAM | 4 | May 30, 2009 19:22 |
OpenFOAM Install problem | masb | OpenFOAM | 3 | May 25, 2009 12:32 |
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 |