CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OF1.6+paraviw3.6.2 on ubuntu 8.1 (https://www.cfd-online.com/Forums/openfoam-installation/72626-of1-6-paraviw3-6-2-ubuntu-8-1-a.html)

shirazbj February 12, 2010 05:55

OF1.6+paraviw3.6.2 on ubuntu 8.1
 
Hi,

I tried to installed paraview3.6.2 on OF1.6. It worked a little, but still have problem.

OF1.6 has paraview3.6.1 included, but it doesn't work on my unbutu 8.1. Since I haven't worked out how to connect to internet with my dial-up under ubuntu, I have to download under window. I tried to install the qt4.3.5, but with no luck. So I decide to try paraview 3.6.2.

1. I downloaded paraview-3.6.2-linux32-x86.tar.gz and extracted it under the ThirdParty-1.6\paraview-3.6.2-linux32-x86 folder.
2. I edited the bashrc file under OpenFOAM-1.6\etc\apps\paraview3
* changed the ParaView-VERSION to 3.6.2
* changed ParaView_INST-DIR to the paraview-3.6.2-linux32-x86 folder
* changed the ParaView_DIR=ParaView_INST-DIR
3. After reboot (or maybe just execute the bashrc), I tried the cavity demo project. When run paraFoam, paraview started, but popup a "Open data with" window. I choose the "OpenFoam files", paraview aborted. It shows some error:
Read float past end of buffer
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create.

It seems I need a FoamReader.
I haven't succeded in compliling PV3FoamReader.

I'll keep try.

Cean

wyldckat February 12, 2010 06:08

Greetings Cean,

Might I suggest trying the other foam reader, the "Parallelized Native OpenFOAM Reader for ParaView", available here.

Best regards,
Bruno Santos

shirazbj February 14, 2010 04:54

use foamToVTK
 
Hi Bruno,

I tried that Reader, but have erroe during ccmake. It need the paraview.cmake file. The paraview3.6.2 file I downloaded does not include the sources.

Anyway, I tryied to use foamToVTK and finally I can see mesh and result in paraview.

For the cavity project, before running paraFoam, I run foamToVTK to convert foam data into VTK format.

So for a clean Ubuntu installation (8.1 or 9.04), install the OF1.6 and extract paraview 3.6.2 anywhere. Run foamToVTK before run paraview.

Thanks

Cean


All times are GMT -4. The time now is 10:39.