CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Troubles with compiled version of paraviewparafoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2008, 12:24
Default Hi everybody ! I am new on
  #1
New Member
 
Thomas Gazzola
Join Date: Mar 2009
Posts: 1
Rep Power: 0
tgazz is on a distinguished road
Hi everybody !

I am new on this forum, and as a new comer, I must ask question on compilation troubles and bugs with paraFoam !

I did download everything for the 1.4.1 openFoam version.
I did compile it using the wiki tutorial.

The installation of third party softwares went smoothly. (gcc, java, cmake, paraview...). I also had to use foamFlex instead of my flex version.

My issud concerns paraFoam, but before I had a small trouble, that may be of interest:
During the big ./Allwmake in $HOME/OpenFOAM/OpenFOAM-1.4.1, I faced this compilation error. This is my first trouble.

#### begin ####

make[3]: Entering directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/da taConversion/foamToVTK'
SOURCE=foamToVTK.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/lagrangian/basic/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam/lnInclude -IlnInclude -I. -I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/foamToVTK.o
Dans le fichier inclus à partir de writeFuns.H:244,
à partir de foamToVTK.C:90:
writeFunsTemplates.C:30:36: erreur: interpolatePointToCell.H : Aucun fichier ou répertoire de ce type
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = double]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = double, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:518: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::Vector<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::Vector<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:519: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::SphericalTensor<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::SphericalTensor<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:520: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::SymmTensor<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:521: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
writeFunsTemplates.C: In static member function 'static void Foam::writeFuns::write(std::ostream&, bool, const Foam::GeometricField<type,>&, const Foam::vtkMesh&) [with Type = Foam::Tensor<double>]':
internalWriterTemplates.C:40: instantiated from 'void Foam::internalWriter::write(const Foam::PtrList<foam::geometricfield<type,> >&) [with Type = Foam::Tensor<double>, PatchField = Foam::pointPatchField, GeoMesh = Foam::pointMesh]'
foamToVTK.C:522: instantiated from here
writeFunsTemplates.C:123: erreur: 'interpolatePointToCell' was not declared in this scope
make[3]: *** [Make/linuxGccDPOpt/foamToVTK.o] Erreur 1
make[3]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/da taConversion/foamToVTK'
make[2]: *** [foamToVTK] Erreur 2
make[2]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/da taConversion'
make[1]: *** [dataConversion] Erreur 2
make[1]: Leaving directory `/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing'
make: *** [postProcessing] Erreur 2
+ '[' 0 = 1 -a '' = doc ']'

#### end ####

I could fix it by doing this:

In the directory $HOME/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphics/PVF oamReader, I do :

wmake libso vtkFoam

And then ./Allwmake again in the $HOME/OpenFOAM/OpenFOAM-1.4.1 directory, and everything compiles fine...

Solvers now seem to work fine. For example, the dambreak example runs OK.

My issue concerns paraFoam. The command `paraFoam . damBreak` in the directory ~/OpenFOAM/OpenFOAM-1.4.1/tutorials/interFoam gives the following error message

#### begin ####

ErrorMessage
# Error or warning: ERROR: In /home/openfoam/OpenFOAM/linux/paraview-2.4.4/Utilities/VTKClientServer/vtkClient ServerInterpreter.cxx, line 882
vtkClientServerInterpreter (0x8069968): Cannot load module "PVFoamReader" from "/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libPVFoamReader.so".


ERROR: In /home/openfoam/OpenFOAM/linux/paraview-2.4.4/Utilities/VTKClientServer/vtkClient ServerInterpreter.cxx, line 886
vtkClientServerInterpreter (0x8069968): libstdc++.so.6: cannot handle TLS data


ERROR: In /home/openfoam/OpenFOAM/linux/paraview-2.4.4/GUI/Client/vtkPVXMLPackageParser.cx x, line 678
vtkPVXMLPackageParser (0x88aac20): Error loading Library component PVFoamReader



ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in file: /home/openfoam/OpenFOAM/linux/paraview-2.4.4/GUI/Client/vtkPVWindow.cxx (2366)
vtkPVWindow (0x827bab0): Cannot read file information when no reader is specified. This probably means that the reader for the file with name: /home/openfoam/OpenFOAM/OpenFOAM-1.4.1/tutorials/interFoam/damBreak/damBreak.foa m cannot be found
ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in file: /home/openfoam/OpenFOAM/linux/paraview-2.4.4/GUI/Widgets/vtkKWApplication.cxx (1335)
vtkPVApplication (0x80f34a8):
Script:
paraFoam.pvs
Returned Error on line 11:
invalid command name ""
ErrorMessage end
called Tcl_FindHashEntry on deleted table
/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/bin/paraFoam: line 76: 27746 Abandon /home/openfoam/OpenFOAM/linux/paraview-2.4.4/bin/paraview paraFoam.pvs

#### end ####

There seems to be 2 problems in 1 there.

First, the Cannot load module "PVFoamReader" from ".../.../libPVFoamReader.so" thing.
Then, the "There was a VTK Error in file" trouble.

I did include the "wmake libso vtkFoam" trick in the begining, because I don't know what to think about it. It _may_ be source of the VTK issue.

It is interesting to note that the I can visualize my datas with a precompiled version of paraview. Also, my compiled paraview launches and seems to work well.

I found some similar messages in the forum, but I could not go through my answer.

So if anyone has ideas to solve my problems, I would be very glad!
tgazz is offline   Reply With Quote

Old   April 17, 2008, 11:42
Default I managed to cope with that by
  #2
New Member
 
Benoit Legrand
Join Date: Mar 2009
Location: Dorking, Surrey, UK
Posts: 12
Rep Power: 17
zoune is on a distinguished road
I managed to cope with that by making the symlinks of the includes "a la mano":
writeFunsTemplates.C:30:36: erreur: interpolatePointToCell.H : Aucun fichier ou répertoire de ce type

>> search for this file and you will find it in ...
/OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam

>> let's have a look in the includes stuff :
-I/home/openfoam/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam/lnInclude

>> ok, so we have to create the lnInclude directory under this path:
cd OpenFOAM-1.4.1/applications/utilities/postProcessing/g raphics/PVFoamReader/vtkFoam
mkdir lnInclude

>> and symlink the file inside:
ln interpolate* lnInclude/

Et voilou !
zoune is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ParaViewParafoam on SUSE 11 tkoz OpenFOAM Installation 6 July 24, 2008 00:54
UDF troubles Rachel FLUENT 1 June 30, 2008 00:02
[OpenFOAM] Exoprt eps from paraviewparaFoam kyubi ParaView 5 March 31, 2008 08:46
AMG troubles - help? Stephanie Siemens 1 September 22, 2007 15:03
3d VOF troubles... Mac FLUENT 0 March 12, 2007 09:41


All times are GMT -4. The time now is 09:20.