CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Paraview and VTK (https://www.cfd-online.com/Forums/paraview/61108-paraview-vtk.html)

Jason J Beech-Brandt (Jasonb) October 6, 2004 09:44

Hi Henry, I've downloaded
 
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

Henry Weller (Henry) October 7, 2004 06:14

Hi Jason, It is possible t
 
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

Jason J Beech-Brandt (Jasonb) October 14, 2004 11:13

Hi Henry, Got caught up wi
 
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

Henry Weller (Henry) October 14, 2004 11:26

Hi Jason, Which version of
 
Hi Jason,

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

Henry

Jason J Beech-Brandt (Jasonb) October 15, 2004 04:07

Hi Henry, I'm running para
 
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

Mattijs Janssens (Mattijs) October 15, 2004 04:20

Hi Jason, We had this prob
 
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)

Jason J Beech-Brandt (Jasonb) October 15, 2004 04:52

Hi Mattijs, I appear to be
 
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

Jason J Beech-Brandt (Jasonb) October 21, 2004 09:10

Hi, I've compiled the shar
 
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

Mattijs Janssens (Mattijs) December 10, 2004 11:47

Hi, just 'discovered' a ne
 
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

Niklas Wikstrom (Wikstrom) December 22, 2004 04:25

I must say I quite like Parav
 
I must say I quite like Paraview, and the integration with OpenFOAM. Have mysteriously missed paraview earlier. Thank's for the introduction!

Rasmus Gjesing (Gjesing) January 7, 2005 08:41

Auto-accept In addition to
 
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

Rasmus Gjesing (Gjesing) January 7, 2005 08:47

Hi, Has anyone succeed in
 
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

Rasmus Gjesing (Gjesing) February 10, 2005 08:19

Hi, I want to visualize la
 
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

Mattijs Janssens (Mattijs) February 10, 2005 09:18

Put 'glyphs' on your points.
 
Put 'glyphs' on your points. Is one of the filters

Mattijs

Wladimyr Mattos da Costa Dourado (Mattos) March 2, 2005 12:11

paraFoam under Mandrake 10.0
 
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!)

mattos March 8, 2005 15:52

ParaFoam Crashes after accept
 
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

mattijs March 9, 2005 03:55

Try rebuilding PVFoamReader (s
 
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.

chris March 9, 2005 04:17

It could be that some entry is
 
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?

mattos March 9, 2005 12:49

Hi Mattijs and Chris I'm us
 
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 March 9, 2005 16:10

Hi Guys paraFoam continues
 
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")


All times are GMT -4. The time now is 10:15.