CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   ParaFoam reader (http://www.cfd-online.com/Forums/openfoam-paraview/61049-parafoam-reader.html)

duartealbuquerque March 10, 2009 14:43

when i run ParaFOAM it appears
 
when i run ParaFOAM it appears a windows saying that a reader for the file cavity.OpenFOAM cannot be found.

In this way i cannot see the mesh or the results.

The instalation of the OpenFOAM was sucessufull

tomislav_maric March 10, 2009 14:54

Hi, you have to build PV3F
 
Hi,

you have to build PV3FoamReader.

cd ~/OpenFOAM/OpenFOAM-yourVersionHere

find . -type d -iname 'PV*FOAMReader*'

My directory is i.e.:
~/OpenFOAM/OpenFOAM-1.5-dev/applications/utilities/postProcessing/graphics/PV3Fo amReader

cd to that directory

./Allwmake

hellorishi March 18, 2009 13:00

lpqcomponents error
 
Hello,

I tried to compile paraFoam and I end up with the following error concerning lpqcomponents. I googled but I could not find an answer. Does anybody have a clue what is this about?

Here is the output of Allwmake
...
...
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- Check for working C compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/c++
-- Check for working CXX compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/c++ -- works
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.3.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt
+ make
[ 8%] Generating qrc_PV3FoamReader.cxx
[ 16%] Generating moc_PV3FoamReaderPluginImplementation.cxx
Scanning dependencies of target PV3FoamReader
[ 25%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o
[ 33%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o
[ 41%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o
Linking CXX shared library /home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/libPV3FoamReader.so
/usr/bin/ld: cannot find -lpqComponents
collect2: ld returned 1 exit status
make[2]: *** [/home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/libPV3FoamReader.so] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2
make: *** [all] Error 2

I have Qt-4.3.2 on SuSE SLED 10, 64 bit. Paraview-3.4.0 binary in installed as well.
I am using foamToVTK for now, but would like to use paraFoam.

Thanks
Rishi

janra March 21, 2009 07:25

Quote:

Originally Posted by hellorishi (Post 209910)
Hello,

I tried to compile paraFoam and I end up with the following error concerning lpqcomponents. I googled but I could not find an answer. Does anybody have a clue what is this about?

Here is the output of Allwmake
...
...
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- Check for working C compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/c++
-- Check for working CXX compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/c++ -- works
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.3.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt
+ make
[ 8%] Generating qrc_PV3FoamReader.cxx
[ 16%] Generating moc_PV3FoamReaderPluginImplementation.cxx
Scanning dependencies of target PV3FoamReader
[ 25%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o
[ 33%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o
[ 41%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o
Linking CXX shared library /home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/libPV3FoamReader.so
/usr/bin/ld: cannot find -lpqComponents
collect2: ld returned 1 exit status
make[2]: *** [/home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/libPV3FoamReader.so] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2
make: *** [all] Error 2

I have Qt-4.3.2 on SuSE SLED 10, 64 bit. Paraview-3.4.0 binary in installed as well.
I am using foamToVTK for now, but would like to use paraFoam.

Thanks
Rishi

I have the same error. I run ubuntu intrepid and get this error.

carlos May 29, 2009 12:28

lpqcomponents not found
 
Hello Rishi

I got the same error when i tried to compile paraFoam. Can you give me a hint how you have solved it? tks

Quote:

Originally Posted by hellorishi (Post 209910)
Hello,

I tried to compile paraFoam and I end up with the following error concerning lpqcomponents. I googled but I could not find an answer. Does anybody have a clue what is this about?

Here is the output of Allwmake
...
...
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- Check for working C compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/c++
-- Check for working CXX compiler: /home/cfdtest/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/c++ -- works
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.3.5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt
+ make
[ 8%] Generating qrc_PV3FoamReader.cxx
[ 16%] Generating moc_PV3FoamReaderPluginImplementation.cxx
Scanning dependencies of target PV3FoamReader
[ 25%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o
[ 33%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o
[ 41%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o
Linking CXX shared library /home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/libPV3FoamReader.so
/usr/bin/ld: cannot find -lpqComponents
collect2: ld returned 1 exit status
make[2]: *** [/home/cfdtest/OpenFOAM/OpenFOAM-1.5.x/lib/linux64GccDPOpt/libPV3FoamReader.so] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2
make: *** [all] Error 2

I have Qt-4.3.2 on SuSE SLED 10, 64 bit. Paraview-3.4.0 binary in installed as well.
I am using foamToVTK for now, but would like to use paraFoam.

Thanks
Rishi


hellorishi May 29, 2009 12:34

Hello Nurye,

Unfortunately I could not solve that error.

I am using a workaround, i.e. using foamToVTK and Paraview binary.

Regards,
Rishi

Kenny May 30, 2009 14:38

Can't compile Paraview 3.3
 
When I try to build Paraview3.3 I get a couple of error messages as follows:
gcc fails the compling test --broken
libmpfr.so.1 Cannot open shared object file: No such file or directory.

I'm using Open Suse 10.3 32 bit gcc 4.3.1 Qt 4.3.1

Kenny

hellorishi June 1, 2009 10:54

Hello Kenny,

It seems mpfr is missing from your OpenSuSE. Search the forum for OpenSuSE installation procedure & you will find the missing things for OpenSuSE10.3.
e.g.
http://www.cfd-online.com/Forums/ope...tml#post206860

Possibly gmp is also missing from your Linux.

hellorishi June 2, 2009 08:46

Hi Kenny,
If you are using OpenSuSE10.3
You can find the QT here:
http://download.opensuse.org/reposit...SUSE_10.3/src/

Can you output the result of following command.

By the way do you have a stand alone machine or a cluster? Can you play around freely with your system ? If ya then you might consider installing Ubuntu and OF script from forum or even simple download the OpenFOAM live Slax from the link in forum.

Rishi

Kenny June 2, 2009 19:47

Rishi,

Thanks. I've been pretty frustrated so far.

I am trying to run on a pentium 4 dual core at home.

What is the OF Script?
What is the OF live Slax?

How are you using OF (what applications)?

Many Thanks,

hellorishi June 3, 2009 02:01

Hi Kenny

http://www.cfd-online.com/Forums/ope...ntu-810-a.html

There is possibly another OF installation script. Search it.

There is a live OF that can be run from usb or DVD
http://www.cfd-online.com/Forums/ope...lax-based.html

I am using OF with SuSE, but that was a long story to get it working. I am using icoFoam, turbFoam, rhoSimpleFoam, etc...

Another tip:
forget paraFoam.
use foamToVTK and ParaView.

Paraview binaries are easier to install and no need to compile from source.

smart June 18, 2009 11:34

PV3FoamReader
 
Hi guys,

I have trouble with paraview. I correctly buildParaView3.3-cvs but when I do the last task in the "read me" file at the "7 Compiling ParaView 3.3 and the PV3FoamReader module".

When I do :

./Allwclean
+ rm -r PV3FoamReader/Make
rm: ne peut enlever 'PV3FoamReader/Make': Aucun fichier ou dossier de ce type
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam

./Allwmake
+ [ -d /home/sylvain/OpenFOAM/ThirdParty/ParaView-3.3-cvs/platforms/linuxcc -a -r /home/sylvain/OpenFOAM/ThirdParty/ParaView-3.3-cvs/platforms/linuxGcc ]

I think that the Allwmake must be more thing. Could you give me some examples of what it supposed to do? I cannot start paraview at all.

I downloaded the version 3.4 of paraview but I cannot start paraview just by typing paraview in a terminal. All idea is welcome...

Sylvain

smart June 29, 2009 15:38

OF-1.5-dev is ok and paraFoam too!
 
Hi all,

I finaly get the OpenFOAM-1.5-dev running perfectly. I changed my linux system to Ubuntu 8.04. I experienced problems with paraFoam and paraview under ubuntu 9.04.

I solved the problem by installing paraview 3.4.0 instead of 3.3-cvs. For this, I changed some file (buildParaView3.3-cvs, in OpenFOAM-1.5-dev/bin and in OpenFOAM-1.5-dev/bin/tools and the bashrc in OpenFOAM-1.5-dev/etc/apps to point to the ParaView-3.4.0 folder (OpenFOAM/ThirdParty/ParaView-3.4.0).

I think it should be OK too with the ubuntu 9.04 in which the qmake version 4.3.5 should be installed.

For me, I used qmake 4.3.4 and gcc 4.3.1.

Thank to all!

anger August 12, 2009 09:27

Quote:

Originally Posted by hellorishi (Post 217617)
Hello Nurye,

Unfortunately I could not solve that error.

I am using a workaround, i.e. using foamToVTK and Paraview binary.

Regards,
Rishi

Hello,

not sure whether this is still of interest - today, I ran onto the same error about missing lpqcomponents.
After checking thoroughly through the build logs, I found that while compiling paraview, errors occured (which could not be noticed because the script kept on running...). They were related to a missing Python.h which means that the development files of python were not installed.
After installing these (apt-get install python-dev on debian), compiling and building went smoothly.

best regards,
-Thomas

tikulju August 12, 2009 13:48

paraFoam success
 
I had a HUUUGE problems with paraFoam, so it all came to the chipset related problems. Mainly the situation was, that paraview vorked but paraFoam didn't. In intel integrated graphics i915 the problem haven't yet been solved, but with radeon driver the problem solved with the folllowing:

1. download qt-4.3.5 (as the README file states) unpack and install it :
2. set correct PATH and LD_LIBRARY_PATH, which points to INSTALLED Qt-4.3.5/bin and Qt-4.3.5/lib/ paths. Be sure that they are not blocked by any other libraries (such as /usr/lib64/) or binaries
3. Follow the readme step 7 first guide and all should be done

If paraFoam isn't working, make sure you have mesa-libLG*-devel installed. And also the cmake should be the correct version. I compiled it from the source.

ps. the operating system is fedora 11 in both.

torvic August 28, 2009 17:43

Hi all

I'm trying to install Paraview in OF-1.6 but I can't get rid of this error. It is related to an unrecognized format.
the "makeParaview" ends without errors, but in the PV3FoamReader step I got the error

*******
.
.
.
Make/linux64GccDPOpt/vtkPV3FoamUtilities.o
/home/foam15/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [/home/foam15/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libvtkPV3Foam.so] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
.
.
.
[ 91%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkSMPV3FoamReader_SMInstantiator.o
[100%] Building CXX object CMakeFiles/PV3FoamReader_SM.dir/vtkPVPluginInit_PV3FoamReader_SM.o
Linking CXX shared library /home/foam15/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libPV3FoamReader_SM.so
/home/foam15/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [/home/foam15/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libPV3FoamReader_SM.so] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader_SM.dir/all] Error 2
make: *** [all] Error 2
*******

I have SLED 10 SP1, 64 bits. I am using gcc 4.3.1 and compiled cmake. With the gcc 4.3.3 binary of the Thirdparty I got some "broken" messages.

Please, any hint is appreciated

best :)

Victor

torvic August 31, 2009 17:19

anyone ?

:)

best

Victor

bastil September 1, 2009 12:01

I am wondering if someone tried to install pv3Foam against an external paraview? I tried and struggled I set paraview_dir to the make install destiantion of paraview and paraview_inst_dir to build or source directory. However, none of them works as OpenFOAM neads headers from paraview sources as well as files from build directory. My final aim is to not distribute build and source of paraview over all of our system - only binaries. Has anyone tried this before? Users should be able to use same paraview than for other codes.

Thanks.

bastil September 2, 2009 03:38

Ok as a documentation what needs to be done to build all the Paraview-related stuff against a Paraview out of the ThirdParty tree of OpenFOAM:

Edit etc/apps/paraview3/bashrc:
- Point cmake to cmake-location
- Point ParaView_DIR to the location where you installed Paraview with make install (out of ThirdParty-Directory)

Copy all header files from your Paraview Source directories VTK/Common, VTK/Filtering and VTK/Rendering to Thirdparty-Paraview. Theses headers are the only files required there.
Copy Header-Files from Paraview Build-directory VTK and the folder VTK/vtkstd and ParaViewConfig.cmake to the directory where you installed paraview.

Afterwards build as usual. For me this runs.

Regards BastiL

torvic September 2, 2009 20:09

Hi Bastil

thanks for the hint.

In the meanwhile I tried to use the paraview reader I compiled for OF-1.5 to view the results of the icofoam tutorial of OF-1.6 and it worked. Have not tested in other ones, but perhaps it works.

best :)

Victor


All times are GMT -4. The time now is 21:53.