CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Paraview3 tree and OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 13, 2007, 09:31
Default I am using OpenFOAM-1.4.1 whic
  #1
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 8
jens_klostermann is on a distinguished road
I am using OpenFOAM-1.4.1 which also seems to be compatible with Paraview3 since there is also a setup file in
OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/ParaView3 available. So I compiled Paraview-3.1.0 without any problems. If I compile vtkFoam I get the following error:

vtkFoamAddInternalMesh.C:154: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int*)'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:163: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int*)'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:172: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int*)'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:186: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int [6])'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:202: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int [8])'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:211: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int*)'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:261: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int [5])'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
vtkFoamAddInternalMesh.C:286: error: no matching function for call to 'vtkUnstructuredGrid::InsertNextCell(VTKCellType, int, int [4])'
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:81: note: candidates are: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdType, vtkIdType*)
/home/klosterm/OpenFOAM/linux64/paraview-3.1.0/include/vtkUnstructuredGrid.h:82: note: vtkIdType vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*)
make: *** [Make/linux64GccDPOpt/vtkFoamAddInternalMesh.o] Fehler 1

Any help is appreciated!

Jens

PS Right now I am not interested to use the "native" (not by paraview supported) OpenFOAM reader as described here http://www.cfd-online.com/OpenFOAM_D...tml?1180564218
jens_klostermann is offline   Reply With Quote

Old   August 16, 2007, 15:33
Default Hi Jens! I have the same pr
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Jens!

I have the same problem:
Naivly (without checking for the definition of tkIdType) I replaced all the
const_cast<int*>(f.begin())
with something like
const_cast<vtkidtype*>((vtkIdType*)(f.begin()))
(plus some int-arrays have to be replaced with vtkIdType-arrays)


Now it compiles, but I couldn't get it to load as a plugin because it needs a different GLIBCXX_ (the problem might be that ParaView and OF were built with different versaions of g++)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 21, 2007, 16:29
Default Hello, A Good day to everyo
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello,

A Good day to everyone :-)!

A quick question.... I would like to know, if anyone is actively working on porting the OpenFOAM paraview postprocessing tools (PVFoamReader and vtkFoam) to the new ParaView 3.x.x family??

Over the last two days, I was able to modify the existing code to an extent, where ParaView 3.1.1 can be used without any problems for the "Internal Mesh" visualisation.

As for individual patches, the VTK pipeline in ParaView 3.1.1 handles data differently from the versions in the ParaView 2.4.x series, and as of now (with as little modification to existing code as possible), I can visualise individual patches as separate "output ports", which is not the way I would like it to be.

As far as I can see, in order to utilise the capabilities and features of the new VTK, and ParaView 3.x.x, a more extensive rewrite of the two OpenFOAM libraries is required.

If anyone is already working on it, then I would be interested in getting involved.... if not, I would like to go ahead and try my hand at it.

Have a nice evening!

Philippose
philippose is offline   Reply With Quote

Old   August 21, 2007, 17:48
Default We are working on moving to Pa
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
We are working on moving to Paraview3.2 for a next version. Unfortunately 3.2 still changing too much.
mattijs is offline   Reply With Quote

Old   August 22, 2007, 14:01
Default Hello Mattijs, A Good eveni
  #5
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello Mattijs,

A Good evening to you!

Do you have any working code for an OpenFOAM post-processing tool using the OpenFOAM libraries, which runs on the current CVS release of Paraview?

Or, maybe... some "back of the envelope" ideas of the various features you would like to incorporate into a library, and the kind of "user interface" you have in mind?

It would be nice to have a look at some preliminary stuff, because I was thinking of getting a little deeper into the VTK/ParaView tools using the OpenFOAM post-processor as a concrete "project" :-)! (Just something to keep my mind busy after the normal work in a day)

Now that Qt-4 is the interface, there seem to be more possibilities for a more interactive user interface for a plugin, so I was wondering what kind of features would be interesting for OpenFOAM.

Regards,
Philippose
philippose is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview3 python scripting tomislav_maric OpenFOAM Paraview & paraFoam 1 October 6, 2008 16:47
Internal Error: Number of tree levels exceeded ahlo CFX 0 March 4, 2008 14:45
tree levels error message Pedro CFX 0 December 24, 2007 22:17
Number of tree levels exceeded ahlo CFX 0 August 29, 2007 10:26
Tree of the openfoam code mhuening OpenFOAM Installation 3 January 29, 2007 19:06


All times are GMT -4. The time now is 01:50.