|
[Sponsors] |
November 9, 2009, 16:18 |
paraFoam reader for OpenFOAM 1.6
|
#1 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
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 |
|
November 10, 2009, 10:08 |
Compile PV3FoamReader module
|
#3 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
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 |
|
November 10, 2009, 11:13 |
The QT version
|
#4 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
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. |
|
November 10, 2009, 21:13 |
|
#5 | |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
Quote:
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 |
||
November 11, 2009, 00:14 |
|
#6 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
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 |
|
November 11, 2009, 04:32 |
|
#7 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
In any case, you should also compile the library-based reader that is included in the OpenFOAM distribution. |
||
November 12, 2009, 00:07 |
|
#8 | |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
Quote:
I have 4.5 installed and according to the web site in README it should be ok Stephen Ubuntu 9.10 karmic koala |
||
November 12, 2009, 01:57 |
|
#9 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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 |
|
November 12, 2009, 10:10 |
|
#10 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
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 |
|
November 12, 2009, 11:05 |
|
#11 |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
Thanks all for the replies , I will try this tomorrow and report back
Stephen |
|
November 13, 2009, 01:14 |
|
#12 |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
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 |
|
November 13, 2009, 09:36 |
|
#13 |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
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 |
|
November 16, 2009, 22:41 |
|
#14 |
Member
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17 |
Gave up
thanks for the support though much appreciated I Just convert to VTK and view in Paraview Stephen |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] ParaFoam reader | duartealbuquerque | ParaView | 21 | December 24, 2009 00:29 |
Can't run paraFoam with OpenFOAM 1.6 | Fed11 | OpenFOAM Installation | 1 | October 30, 2009 20:54 |
[OpenFOAM] Segmentation fault with paraFoam and paraview 3.6.1 on Fedora 11 32 and 64 bit | nanes | ParaView | 2 | September 11, 2009 10:12 |
[OpenFOAM] Parafoam basic questions | qtian | ParaView | 0 | July 20, 2007 12:52 |
[OpenFOAM] Building Paraview with reader builtin instead of parafoam script | tj22 | ParaView | 2 | April 7, 2006 13:55 |