CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Paraview does not show any images (https://www.cfd-online.com/Forums/openfoam/74250-paraview-does-not-show-any-images.html)

Thriceguy March 28, 2010 06:49

Paraview does not show any images
 
Dear all,

I am fairly new and just started working with openFoam. I installed the newest version, but I've got some problems with paraview. When I run it (even without opening any previously performed calculations) I only can see something in the main window when I click in the window with my left mouse button and move the mouse. If I don't do anything, it is simply a white window. When I close the window and try to open a 2D view, I get the following error message:
X Error: GLXBadContextTag 172
Extension: 154 (Uknown extension)
Minor opcode: 5 (Unknown request)
Resource id: 0x40010f9
X Error: GLXBadContextTag 172
Extension: 154 (Uknown extension)
Minor opcode: 1 (Unknown request)
Resource id: 0x1
X Error: GLXBadDrawable 170 Extension: 154 (Uknown extension)
Minor opcode: 11 (Unknown request)
Resource id: 0x40010f9

If I try to open a 3d-View, paraview shuts down and my command window gives a "Segmentation fault".

I found an old thread reporting a similar problem and first thought, it may be due to my graphic-card (ATI Radeon, X1200 series). This is a very old one and it seems that ATI is not supporting this one anymore for Ubuntu 9.1. Since everything else works fine (including all fancy compiz stuff) I am not sure, if it is really a graphic-cards issue. I would be grateful, if anyone could provide me with a hint, what I could do to fix the problem.

Cheers,
David

wyldckat March 28, 2010 17:55

Greetings David and welcome to the forum!

OK, as a quick solution, install Paraview from Synaptic in Ubuntu (System->Synaptic Software Manager, or something like that), or run:
Code:

sudo apt-get install paraview
Note: to avoid clashing with the other Paraview that came with OpenFOAM, you should remove the platforms folder from paraview's folder. I'm not typing the commands here, because I don't remember the whole path by heart.

And now, open a new terminal and run paraview. If all is OK, then you can use the command foamToVTK in you foam case folder to convert foam's data to .vtk and open the files available in the new folder named VTK.


If you wanna go hardcore, you'll need to rebuild Paraview! On OpenFOAM's website you have instructions on how to build it. For more detailed instructions, you can follow the ones available on this thread.
If rebuilding Paraview didn't work out for you, then build Paraview with the mesa driver on. If I'm not mistaken, type
Code:

./makeParaView -help
to get a list of options of what you can build with Paraview.
Ah, as for the mesa driver, it's a driver that provides software driven OpenGL. To install it, search in Synaptic for mesa and install it. This way you won't be dependent of the graphic card nor its drivers... although it'll be slower :(

Best regards,
Bruno

sebware March 29, 2010 04:31

maybe a solution for the paraview problem
 
Hey, i had the same problem with paraView and ubuntu karmic in former times.

paraView opens the files but don't show something in the 3d view.

the solution is very easy.

1. you must open the file
Quote:

$/HOME/OpenFoam/OpenFoam-1.6/bin/paraFoam
2. you must add the following line to the the begin of the file. I put it after the header comments in the file.
Quote:

export LC_ALL=C
I don't know the effect of this codeline, but it works.

have fun with paraFoam

Sebastian



gfoam April 17, 2011 20:20

thanks
 
Thanks Sebastian this solution works for me. I had the following error message when i trying to edit the color map:
X Error: GLXBadContextTag 173
Extension: 155 (Uknown extension)
Minor opcode: 5 (Unknown request)
Resource id: 0x400031d
then, when i add that line in the file .../bin/paraFoam, parawiew worked.
:D
I wrote this answer if anyone looks for the same error and wants to solve it.
My configuration is:
Ubuntu 10.10 maverick
OpenFOAM 1.6
Paraview 3.6.1
PD: sorry for my bad english


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