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

Paraview and VTK

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   October 6, 2004, 09:44
Default Hi Henry, I've downloaded
  #21
Jason J Beech-Brandt (Jasonb)
Guest
 
Posts: n/a
Hi Henry,

I've downloaded and compiled paraview-1.6.3 and that went OK. However when I start paraview I get the following error
>paraview
ErrorMessage
# Error or warning: ERROR: In /deptpc/scratch/jbbrand1/packages/paraview-1.6.3/Utilities/VTKClientServer/vtkClientServerInterpreter.cxx, line 882
vtkClientServerInterpreter (0x114ac8): Cannot load module "PVFoamReader" from "/home/jbbrand1/foam/foam2.3/lib/solarisGcc34OptLAM/libPVFoamReader.so".

ERROR: In /deptpc/scratch/jbbrand1/packages/paraview-1.6.3/GUI/Client/vtkPVXMLPackageParser.cxx, line 661
vtkPVXMLPackageParser (0x7aef18): Error loading Library component PVFoamReader

ErrorMessage end

Despite the error message, paraview appears to work OK on its own.
I have recompiled the libPVFoamReader.so library, so I don't know why I'm getting this error. To be honest with you, I'm not really sure I'm using this in the way is intended, so if I'm missing something I'd appreciate any pointers you could give me.

Thanks

Jason
  Reply With Quote

Old   October 7, 2004, 06:14
Default Hi Jason, It is possible t
  #22
Henry Weller (Henry)
Guest
 
Posts: n/a
Hi Jason,

It is possible that this problem is due to changes in the module load mechanism between 1.6.2 and 1.6.3 (they are changing the xml stuff very frequently). But it might also be that the xml files weren't rebuilt when you built the reader module so for starters try this:

cd foam2.3/applications/utilities/postProcessing/graphics/PVFoamReader
rm -rf PVFoamReader/solarisGcc34OptLAM
wclean vtkFoam
Allwmake

and see if that helps. If not I will have to build ParaView 1.6.3 here on our linux machine to see if the module loading stuff has changed again

Henry
  Reply With Quote

Old   October 14, 2004, 11:13
Default Hi Henry, Got caught up wi
  #23
Jason J Beech-Brandt (Jasonb)
Guest
 
Posts: n/a
Hi Henry,

Got caught up with other stuff, but have tried what you suggested above, and am having the same problem as before. Specifically, if I enter

>paraview

I get the error message as before, but paraview continues to work.

However, if use the script

>paraFoam -root- -case-

I get the above message followed by a Segmentation Fault.

I'm quite happy using OpenDx for the time being, so there is no rush to get this working on my account.

Thanks,

Jason
  Reply With Quote

Old   October 14, 2004, 11:26
Default Hi Jason, Which version of
  #24
Henry Weller (Henry)
Guest
 
Posts: n/a
Hi Jason,

Which version of paraview do you have running? Does the FOAM reader work OK?

Henry
  Reply With Quote

Old   October 15, 2004, 04:07
Default Hi Henry, I'm running para
  #25
Jason J Beech-Brandt (Jasonb)
Guest
 
Posts: n/a
Hi Henry,

I'm running paraview-1.6.3.

The FOAM reader you refer to is the PVFoamReader.so library? If so, no, as I get the message that "Cannot load module PVFoamReader" when I try and start paraview.

Jason
  Reply With Quote

Old   October 15, 2004, 04:20
Default Hi Jason, We had this prob
  #26
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
Hi Jason,

We had this problem before as well and it turned out the $FOAM_LIBBIN/libPVFoamReader.so
did not link in liblam.so.0. Unfortunately Paraview's error message is not very helpful (should be fixed though in latest paraview)

Have a look at my linux ldd output and see if you have the foam related libraries at least.

linux-gate.so.1 => (0xffffe000)
libvtkClientServer.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/libvtkClientServer.so (0x40012000)
libvtkGraphicsCS.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/libvtkGraphicsCS.so (0x4005b000)
libfoam.so => /home/pinky2/mattijs/foam/foam2.3/lib/linuxGcc34OptLAM/libfoam.so (0x40143000)
libvtkFoam.so => /home/pinky2/mattijs/foam/foam2.3/lib/linuxGcc34OptLAM/libvtkFoam.so (0x40934000)
libvtkGraphics.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/vtk/libvtkGraphics.so (0x409b2000)
libvtkFilteringCS.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/libvtkFilteringCS.so (0x40bd5000)
libvtkFiltering.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/vtk/libvtkFiltering.so (0x40c13000)
libvtkCommonCS.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/libvtkCommonCS.so (0x40c95000)
libvtkCommon.so => /home/pinky2/mattijs/foam/linux/paraview-1.6.2/lib/vtk/libvtkCommon.so (0x40d9f000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4105e000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x410b2000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x410bb000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x410d3000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x411cf000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x411de000)
libdl.so.2 => /lib/libdl.so.2 (0x411ee000)
libm.so.6 => /lib/tls/libm.so.6 (0x411f2000)
libstdc++.so.6 => /home/pinky2/mattijs/foam/linux/gcc-3.4.2/lib/libstdc++.so.6 (0x41214000)
libgcc_s.so.1 => /home/pinky2/mattijs/foam/linux/gcc-3.4.2/lib/libgcc_s.so.1 (0x412e6000)
libc.so.6 => /lib/tls/libc.so.6 (0x412ef000)
libfoamUser.so => /home/pinky2/mattijs/foam/foam2.3/lib/linuxGcc34OptLAM/libfoamUser.so (0x41404000)
libz.so => /usr/lib/libz.so (0x41407000)
libmpi.so.0 => /home/pinky2/mattijs/foam/foam2.3/src/lam-7.0.6/platforms/linuxGcc34OptLAM/lib/libmpi.so.0 (0x41418000)
liblam.so.0 => /home/pinky2/mattijs/foam/foam2.3/src/lam-7.0.6/platforms/linuxGcc34OptLAM/lib/liblam.so.0 (0x41477000)
libutil.so.1 => /lib/libutil.so.1 (0x414bc000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
  Reply With Quote

Old   October 15, 2004, 04:52
Default Hi Mattijs, I appear to be
  #27
Jason J Beech-Brandt (Jasonb)
Guest
 
Posts: n/a
Hi Mattijs,

I appear to be missing a couple of foam libraries, specifically

liblam.so.0
libmpi.so.0

If I go to $LAM_ARCH_PATH/lib there are no shared versions of these libraries, only static versions. So I guess I will have to build these shared libraries and then make the PVFoamReader library linking these in?

Jason
  Reply With Quote

Old   October 21, 2004, 09:10
Default Hi, I've compiled the shar
  #28
Jason J Beech-Brandt (Jasonb)
Guest
 
Posts: n/a
Hi,

I've compiled the shared versions of the lam-mpi libraries and then compiled the libvtkFoam library, linking in these shared lam-mpi libraries. This appears to have fixed the problem I was getting when trying to use Paraview for the Solaris installation.

Jason
  Reply With Quote

Old   December 10, 2004, 12:47
Default Hi, just 'discovered' a ne
  #29
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
Hi,

just 'discovered' a neat trick of Paraview: if you type in a number in a field and type ctrl-enter instead of just enter and it will automatically 'accept' the new data so you don't have to press the Accept button.

Mattijs
  Reply With Quote

Old   December 22, 2004, 05:25
Default I must say I quite like Parav
  #30
Niklas Wikstrom (Wikstrom)
Guest
 
Posts: n/a
I must say I quite like Paraview, and the integration with OpenFOAM. Have mysteriously missed paraview earlier. Thank's for the introduction!
  Reply With Quote

Old   January 7, 2005, 09:41
Default Auto-accept In addition to
  #31
Rasmus Gjesing (Gjesing)
Guest
 
Posts: n/a
Auto-accept

In addition to Mattijs trick with ctrl-enter, you can also rigth-click on the accept-button, and choose Auto-accept. This way all changes will occur straight away, like dxFoams Update on changes-function.

Rasmus
  Reply With Quote

Old   January 7, 2005, 09:47
Default Hi, Has anyone succeed in
  #32
Rasmus Gjesing (Gjesing)
Guest
 
Posts: n/a
Hi,

Has anyone succeed in making streamlines in paraFoam?
I can choose all the settings but no streamlines appears...

Can anyone give me a hint?

/Rasmus
  Reply With Quote

Old   February 10, 2005, 09:19
Default Hi, I want to visualize la
  #33
Rasmus Gjesing (Gjesing)
Guest
 
Posts: n/a
Hi,

I want to visualize lagrangian particles in paraview. So I searched the forum and found Mattijs explanation.

However, after converting the fields using foamToVTK, I can see the labels and properties of the particles in paraview, but I would also like to be able to see them represented as spheres scaled with their diameters. Anyone how can help me with this?

/Rasmus
  Reply With Quote

Old   February 10, 2005, 10:18
Default Put 'glyphs' on your points.
  #34
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
Put 'glyphs' on your points. Is one of the filters

Mattijs
  Reply With Quote

Old   March 2, 2005, 13:11
Default paraFoam under Mandrake 10.0
  #35
Wladimyr Mattos da Costa Dourado (Mattos)
Guest
 
Posts: n/a
paraFoam under Mandrake 10.0

Hi Guys!

I have a problem and I ask if somebody can help me.

I tried to run paraFoam such as the following command line:

[wladimyr@geitt4 testcases]% paraFoam icoFoam cavity_gmsh

and the paraview opens the first screen whitout problem, waiting to press accept key to read the data. Then, when I press accept key it crashes and no addition message is printed in any place (I think so :-\ ), only that core file was generated and stored in the case directory. I did use convertion of foam data to paraview using foamToVTK utility and after I can read tha data using paraview without problem. What I must to do in order to use paraFoam directly? If I'm right, some capabilities of paraview I can use only if I run it from paraFoam, is it correct?


It is the cavity tutorial case where the mesh was generated by gmsh (www.geuz.org) and converted by gmshToFoam (nice converter! once more, congratulations!) If someone want it I can send. I suggest that discussion board may offer a repository of test cases and tutorias offered by users.

Tanks in advace for all (and for any!)
  Reply With Quote

Old   March 8, 2005, 16:52
Default ParaFoam Crashes after accept
  #36
Member
 
Wladimyr Mattos da Costa Dourado
Join Date: Mar 2009
Location: Sao Jose dos Campos, SP, Brazil
Posts: 36
Rep Power: 8
mattos is on a distinguished road
ParaFoam Crashes after accept key pressed

Hi Guys

I have yet a problem with paraFoam in my installation. It craches when I press accept key in paraview source window. (see March, 02). Someone know if it has a solution?

Wladimyr
mattos is offline   Reply With Quote

Old   March 9, 2005, 04:55
Default Try rebuilding PVFoamReader (s
  #37
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Try rebuilding PVFoamReader (since your paraview already works ok)

Which paraview are you using? It should be the one that comes with OpenFOAM.


Make sure the $ParaView_DIR environment variable is set correctly (set in .OpenFOAM-1.0.2/apps/paraview/cshrc) and go to $FOAM_UTILITIES/postProcessing/graphics/PVFoamReader/
and go ./Allwmake.

This should rebuild the paraFoam reader module.
mattijs is offline   Reply With Quote

Old   March 9, 2005, 05:17
Default It could be that some entry is
  #38
New Member
 
Chris Greenshields
Join Date: Mar 2009
Posts: 28
Rep Power: 8
chris is on a distinguished road
It could be that some entry is missing in the case files. How do the files of your cavity_gmsh case differ from those in the cavity example case?
chris is offline   Reply With Quote

Old   March 9, 2005, 13:49
Default Hi Mattijs and Chris I'm us
  #39
Member
 
Wladimyr Mattos da Costa Dourado
Join Date: Mar 2009
Location: Sao Jose dos Campos, SP, Brazil
Posts: 36
Rep Power: 8
mattos is on a distinguished road
Hi Mattijs and Chris

I'm using the paraview version which comes with OpenFoam distribution (v1.8.0). I also tried with newer version of paraview and the samething happes. I tried either with my cavity_gmsh case as cavity original case and other one without success. As I said before, I can use paraview with translated data given by foamToVTK utility.

The setup (cshrc files) are correctly set and now I will try Allwmake command.

My cavity_gmsh case is simply a study case to lear how can I use gmsh mesh generator with openfoam. In terms of geometry and conditions it is equal to cavity tutorial case.

Anyway, tank you for your helps!

Regards,

Wladimyr
mattos is offline   Reply With Quote

Old   March 9, 2005, 17:10
Default Hi Guys paraFoam continues
  #40
Member
 
Wladimyr Mattos da Costa Dourado
Join Date: Mar 2009
Location: Sao Jose dos Campos, SP, Brazil
Posts: 36
Rep Power: 8
mattos is on a distinguished road
Hi Guys

paraFoam continues biting me! Or should I say that I continue to fight against paraFoam? Anyway, these are the output of some commands. I believe that some of them I hope can be used to be used as patch file to correct some mistakes in script and config files. Or my installation is completely wrong!

Can somebody help me? After many blue eyes (see diff comands output), the following lines from Allmake seems very strange:
.
.
.
ParaView is required. Set ParaView_DIR.
.
.
.
make: *** No targets specified and no makefile found. Stop.

I tried to found where I must change to avoid it but I have no idea!

Tanks in advance for any and for all!

Waiting...

Wladimyr


================================
[wladimyr@geitt4 PVFoamReader]% ./Allwmake
make: Nothing to be done for `allFiles'.
make: `lnInclude/uptodate' is up to date.
make: `Make/linuxOpt/dependencies' is up to date.
libso
`/home/wladimyr/OpenFOAM/OpenFOAM-1.0.2/lib/linuxOpt/libvtkFoam.so' is up to date.
-- Check for working C compiler: gcc -- works
-- Check for working CXX compiler: c++ -- works
ParaView is required. Set ParaView_DIR.
-- Configuring done
make: *** No targets specified and no makefile found. Stop.

================================


[wladimyr@geitt4 PVFoamReader]% echo $ParaView_DIR
/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8

================================

[wladimyr@geitt4 PVFoamReader]% echo $ParaView_VERSION
1.8.0

================================

[wladimyr@geitt4 PVFoamReader]% diff CMakeCache.txt.ori CMakeCache.txt
143c143,145
< PARAVIEW_DIR:PATH=PARAVIEW_DIR-NOTFOUND
---
> // PARAVIEW_DIR:PATH=PARAVIEW_DIR-NOTFOUND
> PARAVIEW_DIR:PATH=/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8
>

================================

[wladimyr@geitt4 linuxOpt]% diff CMakeCache.txt.ori CMakeCache.txt
32c32
< CMAKE_CXX_FLAGS:STRING=' '
---
> CMAKE_CXX_FLAGS:STRING=
53c53
< CMAKE_C_FLAGS:STRING=' '
---
> CMAKE_C_FLAGS:STRING=
129c129
< CMAKE_SKIP_RPATH:BOOL=NO
---
> CMAKE_SKIP_RPATH:BOOL=OFF
134c134
< CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
---
> CMAKE_VERBOSE_MAKEFILE:BOOL=OFF
142,143c142,143
< //The directory containing ParaViewConfig.cmake.
< PARAVIEW_DIR:PATH=PARAVIEW_DIR-NOTFOUND
---
> //The directory containing ParaViewConfig.cmake.
> PARAVIEW_DIR:PATH=/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8


================================

[wladimyr@geitt4 paraview-1.8]% diff ParaViewConfig.cmake.ori ParaViewConfig.cmake
4a5,6
> #/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8
>
6,7c8,9
< SET(PARAVIEW_USE_FILE "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/ParaViewUse.cmak e")
< SET(PARAVIEW_VTK_DIR "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/vtk")
---
> SET(PARAVIEW_USE_FILE "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/ParaViewUse.cmake ")
> SET(PARAVIEW_VTK_DIR "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/vtk")
9c11
< SET(VTKCS_SOURCE_DIR "/home/dm2/henry/OpenFOAM/linuxSrc/paraview-1.8.0/Utilities/VTKClientServer")
---
> SET(VTKCS_SOURCE_DIR "/home/wladimyr/OpenFOAM/linuxSrc/paraview-1.8.0/Utilities/VTKClientServer")
12,15c14,17
< "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/CMake/vtkWrapCli entServer.cmake")
< SET(VTK_WRAP_ClientServer_EXE "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/vtkWrapClientSer ver")
< SET(PARAVIEW_INCLUDE_DIRS "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/include/paraview-1.8")
< SET(PARAVIEW_LIBRARY_DIRS "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8")
---
> "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/CMake/vtkWrapClie ntServer.cmake")
> SET(VTK_WRAP_ClientServer_EXE "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/vtkWrapClientServ er")
> SET(PARAVIEW_INCLUDE_DIRS "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/include/paraview-1.8")
> SET(PARAVIEW_LIBRARY_DIRS "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8")
17,18c19,20
< SET(PARAVIEW_GUI_INCLUDE_DIRS "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/include/paraview-1.8")
< SET(PARAVIEW_KWSYS_INCLUDE_DIRS "/home/dm2/henry/OpenFOAM/linuxSrc/paraview-1.8.0/platforms/linuxOpt/Utilities/K WSys")
---
> SET(PARAVIEW_GUI_INCLUDE_DIRS "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/include/paraview-1.8")
> SET(PARAVIEW_KWSYS_INCLUDE_DIRS "/home/wladimyr/OpenFOAM/linuxSrc/paraview-1.8.0/platforms/linuxOpt/Utilities/KW Sys")
20,21c22,23
< SET(PARAVIEW_GUI_CLIENT_EXECUTABLE "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/bin/paraview")
< SET(PARAVIEW_SERVER_MANAGER_RESOURCES_DIRECTORY "/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/ServerManager/Re sources")
---
> SET(PARAVIEW_GUI_CLIENT_EXECUTABLE "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/bin/paraview")
> SET(PARAVIEW_SERVER_MANAGER_RESOURCES_DIRECTORY "/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/ServerManager/Res ources")
25c27
< INCLUDE("/home/dm2/henry/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/ParaView LibraryDepends.cmake")
---
> INCLUDE("/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8/ParaViewL ibraryDepends.cmake")
mattos 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
Paraview 34 hsieh OpenFOAM Paraview & paraFoam 4 January 26, 2009 15:31
Paraview 300 vinz OpenFOAM Paraview & paraFoam 12 October 6, 2007 09:46
Paraview peter ParaView 0 November 29, 2006 02:47
Paraview jojo ParaView 4 June 25, 2006 19:01
HI all I cant find display button in paraview when i execute cavity tutorial there is only parameter button in the paraview chan OpenFOAM Paraview & paraFoam 2 February 13, 2006 08:37


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