CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   paraFoam reader for OpenFOAM 1.6 (http://www.cfd-online.com/Forums/openfoam-installation/69929-parafoam-reader-openfoam-1-6-a.html)

smart November 9, 2009 16:18

paraFoam reader for OpenFOAM 1.6
 
Hi all,

I am installing OF 1.6 and all seem OK. I try the case cavity of icoFoam solver and when I try to use paraFoam, the following message occurs:

"A reader for "/home/sylvain/OpenFOAM/sylvain-1.6/run/tutorials/icoFoam/cavity/cavity.OpenFOAM" could not be found. Please choose one:

...
OpenFOAM files
...
"
But when I choose this reader, paraview crashes

"terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Aborted

I would like to have information to know how solving this problem.

Thank you very much.

I use :
Ubuntu 8.04
Qt 4.3.5
QMake 2.01a


Sylvain

gwierink November 10, 2009 06:14

Hi Sylvain,

Have you recompiled the PV3FoamReader as explained in Section 7 of the README file?

Cheers, Gijs

smart November 10, 2009 10:08

Compile PV3FoamReader module
 
Hi Gijs,

I recompiled the PV3FoamReader module as explained in the readme file and all seem to be OK since no error was shown. Paraview works good and I can launch it by typing paraview in a terminal. ParaFoam open paraview but the reader cannot be found.

Other idea? Thank you for your answer...

Sylvain

smart November 10, 2009 11:13

The QT version
 
I finally found the problem. I was using QT4.3.5 and I switch to the original Ubuntu 8.04 QT version 4.3.4 with:

sudo update-alternatives --config qmake

The reader works good now. Thank you all.

basilwatson November 10, 2009 21:13

Quote:

Originally Posted by smart (Post 235730)
I finally found the problem. I was using QT4.3.5 and I switch to the original Ubuntu 8.04 QT version 4.3.4 with:

sudo update-alternatives --config qmake

The reader works good now. Thank you all.

Hi there

I have the exact same problem but I am using QMake version 2.01a
Using Qt version 4.5.2 in /usr/lib

I assume its a Qt problem , but I unsure how to get an earlier version installed
when i try the above i get
There is only one alternative in link group qmake: /usr/bin/qmake-qt4
Nothing to configure.


Can you point me in the right direction?

Stephen

smart November 11, 2009 00:14

Hi, First of all, try to follow the Read Me file. A section about Qt version is available. Try to install Qt-4.3.5 and let me know what's happen.

Sylvain

olesen November 11, 2009 04:32

Quote:

Originally Posted by smart (Post 235631)
But when I choose this reader, paraview crashes

"terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Aborted

Just for completeness. This error is an indication that the buggy VTK builtin OpenFOAM reader has been selected (uses the "*.foam" extension). There is a much better version of this reader from Takuya OSHIMA that can be found on the wiki http://openfoamwiki.net/index.php/Co...r_for_ParaView

In any case, you should also compile the library-based reader that is included in the OpenFOAM distribution.

basilwatson November 12, 2009 00:07

Quote:

Originally Posted by smart (Post 235782)
Hi, First of all, try to follow the Read Me file. A section about Qt version is available. Try to install Qt-4.3.5 and let me know what's happen.

Sylvain

I unsure of how to do that.. is there a link?

I have 4.5 installed and according to the web site in README it should be ok

Stephen

Ubuntu 9.10 karmic koala

gwierink November 12, 2009 01:57

You can get the source package qt-x11-opensource-src-4.3.5.tar.gz here. First unpack it, then configure it ("./configure"), then "make" and "make install". For the last two you may have to be root.

Cheers, Gijs

smart November 12, 2009 10:10

Hi Stephen,

you can found on the following web page some indications about how to switch Qt version in Ubuntu but you have to install other version of Qt before that:
http://jpnurmi.kapsi.fi/blog/2008/03...ion-in-ubuntu/

Follow the point 2.1 Qt to install other versions of Qt and do the switch... Let me know the results.

Initially, I tried to install OF-1.5 on Ubuntu 9.04 and the paraview didn't work good. I tried a lot of thing without success. I finally installed Ubuntu 8.04 and Qt 4.3.5 and paraview with parafoam was OK. For OF-1.6, to make parafoam working good, I changed the Qt version to the original Qt version of my Ubuntu (Qt-4.3.4) and, now, parafoam is perfect.

Try installing some older Qt-Version and switch them and reinstall the third party paraview and foam reader (VT3FoamReader).

Sylvain

basilwatson November 12, 2009 11:05

Thanks all for the replies , I will try this tomorrow and report back

Stephen

basilwatson November 13, 2009 01:14

Ok uninstalled Paraview

in a separate Directory

/home/s/OpenFOAM/ThirdParty-1.6/paraview4.3.5

Downloaded the source file

/home/s/OpenFOAM/ThirdParty-1.6/paraview4.3.5/qt-x11-opensource-src-4.3.5

then ./configure

sudo su

make

make install

Paraview installs ok ..

in a terminal type paraview and it runs ok ,,,still I cannot view openfoam output files

in the cavities directory

Blockmesh runs ok
reating block offsets

Creating merge list .

Creating points with scale 0.1

Creating cells

Creating patches

Creating mesh from block mesh

Default patch type set to empty

Writing polyMesh



icoFoam runs ok

Courant Number mean: 0.116925 max: 0.852134
DILUPBiCG: Solving for Ux, Initial residual = 1.89493e-07, Final residual = 1.89493e-07, No Iterations 0
DILUPBiCG: Solving for Uy, Initial residual = 4.14522e-07, Final residual = 4.14522e-07, No Iterations 0
DICPCG: Solving for p, Initial residual = 1.06665e-06, Final residual = 3.39604e-07, No Iterations 1
time step continuity errors : sum local = 5.25344e-09, global = -9.50761e-19, cumulative = 8.05678e-18
DICPCG: Solving for p, Initial residual = 5.36118e-07, Final residual = 5.36118e-07, No Iterations 0
time step continuity errors : sum local = 6.86432e-09, global = 4.62063e-19, cumulative = 8.51884e-18
ExecutionTime = 0.19 s ClockTime = 0 s

in the same terminal typing Paraview i get

s@s-desktop:~/OpenFOAM/s-1.6.x/myOpenFoamCases/cavity$ paraview
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libpqComponents.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libpqCore.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libQVTK.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkViews.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkPVServerManager.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkPVFilters.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkVolumeRendering.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkXdmf.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libXdmf.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkPVServerCommon.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkInfovis.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkWidgets.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libKWCommon.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkPVCommandOptions.so)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkGenericFiltering.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkHybrid.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkParallel.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkRendering.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkGraphics.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkImaging.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkIO.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkFiltering.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkCommon.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkDICOMParser.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtkmetaio.so.pv3.4)
paraview: /home/s/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/paraview/libvtksys.so.pv3.4)





So the compiled paraview is in the wrong place ?? why does it run but not read the openFoam files?

Ill clean and try to compile again ... but I am a bit lost .....

Stephen

basilwatson November 13, 2009 09:36

GNU/Linux version
The 32bit and 64bit binary packs of the OpenFOAM release were compiled on
a machine running openSUSE GNU/Linux version 11.1 and also tested on
Ubuntu 9. We recommend that users run OpenFOAM on one of these, or on a
similarly recent version of GNU/Linux. This release has also been
successfully compiled and tested on older GNU/Linux releases, but this
requires the installation of Qt 4.3.? (the sources for which are supplied
with OpenFOAM-1.6, see README) for ParaView-3 to run.

So I did this

INSTALLING Qt/X11 Version 4.3.5.


cd /tmp
gunzip qt-x11-opensource-src-4.3.5.tar.gz # uncompress the archive
tar xvf qt-x11-opensource-src-4.3.5.tar # unpack it

This creates the directory /tmp/qt-x11-opensource-src-4.3.5 containing the files


3. Building

To configure the Qt library for your machine type, run the
./configure script in the package directory.


I assume openFoam??? is the directory ??? ( or Paraview ??)

By default, Qt is configured for installation in the
/usr/local/Trolltech/Qt-4.3.5 directory, but this can be
changed by using the -prefix option. Alternatively, the
-prefix-install option can be used to specify a "local"
installation within the source directory.

cd /tmp/qt-x11-opensource-src-4.3.5
./configure

Type "./configure -help" to get a list of all available options.


make
"

and enter the root password.


make confclean

before running the configure script again.


The oly thing I can think of doing now is sourcing paraview 3

making a directory called paraview and unpack QT4.3 into it and then compile inside the paraview directory ?

I don't know this is all beyond me ,,,I am more comfortable with me gas torch !!!

Stephen

basilwatson November 16, 2009 22:41

Gave up

thanks for the support though much appreciated

I Just convert to VTK

and view in Paraview

Stephen


All times are GMT -4. The time now is 02:40.