CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Paraview & paraFoam (
-   -   ParaFoam with OF-1.6-ext (

kanuk October 12, 2012 18:53

ParaFoam with OF-1.6-ext
Hi all, I'm having a bit of a problem getting paraFoam to work with 1.6-ext.

I followed the build instructions on a fresh Ubuntu 12.04 install (the ones located in /doc/buildInstructions/Ubuntu/12.04) for several 64-bit machines, several times. Each time, the installations go smoothly (no errors) and apart from some warning about different gcc compilers, foamInstallationTest seems to think things are OK.

The problem is, whenever I call paraFoam from a case directory (for example, the mixer2D tutorial in icoDyMFoam), it opens with the message:

"A reader for '....../mixer2D.OpenFOAM' could not be found. Please choose one:"
And when I choose OpenFOAM from the list, it spits out the following after trying to view results:


$ paraFoam
created temporary 'mixer2D.OpenFOAM'
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Warning: In /home/me/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 4728
vtkOpenFOAMReaderPrivate (0x27d0aa0): Numbers of faces in faces 2416 and owner 2380 does not match

ERROR: In /home/me/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.12.0/VTK/Filtering/vtkExecutive.cxx, line 756
vtkPVCompositeDataPipeline (0x1e89f00): Algorithm vtkPOpenFOAMReader(0x2807160) returned failure for request: vtkInformation (0x2a8a790)
  Debug: Off
  Modified Time: 133628
  Reference Count: 1
  Registered Events: (none)

I have been searching around for a solution for awhile, and it *appears* as of the problem is with qt, but I am hesitant to play around with that.

Any thoughts?

wyldckat October 12, 2012 20:29

Greetings Kanuk,

If I'm not mistaken, the fix should be an old one... so I'll quote myself :D:

Originally Posted by wyldckat (Post 255919)
With OpenFOAM's environment active, edit the file "$WM_PROJECT_DIR/bin/paraFoam" and insert somewhere before it calls paraview, the following line:

export LC_ALL=C
This will force the english standard language settings to be used by Paraview and it's plugins. It will only affect them and not the whole system.

edit: As for ".OpenFOAM" not being detected automatically, try the instructions on this post: post #6

Best regards,

kanuk October 12, 2012 21:16

Hello Bruno,

Thanks very much for your response. I rebuilt the PV3FoamReader as per your suggestion, but that didn't change anything - nor did editing the $WM_PROJECT_DIR/bin/paraFoam file...

I have no idea what the problem may be, but I think I'll try and resolve my gcc problem first (start with the easy stuff) by uncommenting the


line in etc/

Hopefully this works... I will report back in a few hours :)


kanuk October 15, 2012 16:07

So, I tried compiling again the system compilers, but alas paraFoam didn't get built.

It's not the best situation, but I suppose I can live with foamToVTK for now. I was hoping that the build instructions for a stock ubuntu 12.04 would work - but I can't complain. I'll keep trying and post back if I find a solution.

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