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)

mattijs March 10, 2005 04:51

As you point out it seems as i
 
As you point out it seems as if the directory $ParaView_DIR points to is empty or non-existent.

It is set in .OpenFOAM-1.0.2/apps/paraview/cshrc (or baskrc)

Mattijs

mattos March 10, 2005 10:07

Hi Mattijs Tank you in adva
 
Hi Mattijs

Tank you in advance for your help. How you can see in my last message, the variable ParaView_DIR is correctly set (I suppose) :-[ and checked it again:
[wladimyr@geitt4 ~]% echo $ParaView_DIR
/home/wladimyr/OpenFOAM/linux/paraview-1.8.0/lib/paraview-1.8

I ran the prompt command "ls $ParaView_DIR" and this directory exist and contains the ParaViewConfig.cmake file, as is demanded in CMakeCache.txt file.

Could you or somebody help me?

Many Tanks anyway

Wladimyr

hemph March 12, 2005 07:02

Hi! I would like to recompi
 
Hi!

I would like to recompile the PVFoamReader utility for Paraview (linux,i686). Is that possible at all without also recompiling paraview from source?
Following the instructions in this forum I have done

md8hemra@haif~/.../graphics/PVFoamReader> wclean PVFoamReader/
md8hemra@haif~/.../graphics/PVFoamReader> wclean vtkFoam/
md8hemra@haif~/.../graphics/PVFoamReader>./Allwmake

But this gives the error message:
..
..
..

CMake Error: Error in cmake code at
/home/md8hemra/OpenFOAM/linux/paraview-1.8.5/lib/paraview-1.8/ParaViewConfig.cma ke:25:
INCLUDE Could not find include file: /home/dm2/henry/OpenFOAM/linux/paraview-1.8.5/lib/paraview-1.8/ParaViewLibraryDe pends.cmake
CMake Error: Error in cmake code at
/home/md8hemra/OpenFOAM/OpenFOAM-1.1/applications/utilities/postProcessing/graph ics/PVFoamReader/PVFoamReader/CMakeLists.txt:37:
INCLUDE Could not find include file: /home/dm2/henry/OpenFOAM/linux/paraview-1.8.5/lib/paraview-1.8/ParaViewUse.cmake
CMake Error: Error in cmake code at
/home/md8hemra/OpenFOAM/OpenFOAM-1.1/applications/utilities/postProcessing/graph ics/PVFoamReader/PVFoamReader/CMakeLists.txt:51:
Unknown CMake command "VTK_WRAP_ClientServer".
-- Configuring done
make: *** No targets specified and no makefile found. Stop.

The file "...lib/paraview-1.8/ParaViewConfig.cmake"
does contain paths to Henry's build. If I replace those paths with the ones corresponding to the OpenFoam installation, I get into more path problems later on.

I am wondering if it is of any use to keep looking to fix the path problems or if I should just give up and recompile paraview.


Best Regards
Rasmus Hemph

henry March 12, 2005 07:19

It is annoying the cmake prese
 
It is annoying the cmake preserves full paths in it's configuration files rather than relative paths which makes it difficult to transfer the builds. It should be possible for you to substitute your paths for mine in the relevant files but if that proves difficult it might be easier to compile paraview from scratch which is quite easy.

hemph March 12, 2005 07:42

Ah, got it to work. Thanks for
 
Ah, got it to work. Thanks for the help.
The problem I face at home is that compilation of Paraview takes a long time on my old computer..

Anyway, for future reference: To recompile the PVFoamReader class I had to
change the paths from /home/henry/ to /home/myUserName/ in

OpenFOAM/linux/paraview-1.8.5/lib/paraview-1.8.5/ParaViewConfig.cmake

I also needed to change

"paraview-1.8.5" to "ParaView" on line 26 in the same file.

old:
SET(VTKCS_SOURCE_DIR
"/home/myUserName/OpenFOAM/linuxSrc/paraview-1.8.5/Utilities/VTKClientServer")

new:
SET(VTKCS_SOURCE_DIR
"/home/myUserName/OpenFOAM/linuxSrc/ParaView/Utilities/VTKClientServer")

hemph March 12, 2005 12:11

Well. it is actually not worki
 
Well. it is actually not working. Got PVFoamReader to compile, with the result that ParaFoam segfaults at start. I will try recompiling Paraview instead..

//Rasmus H

mattijs March 16, 2005 12:02

Hi, does anyone know how to
 
Hi,

does anyone know how to load Ensight result files into paraview? I just get a coredump all the time (but then I did try a polyhedral mesh)

Mattijs

mattijs March 23, 2005 07:13

Is there anyone out there with
 
Is there anyone out there with some VTK experience who could help putting polyhedral support into paraFoam? I am having to postprocess meshes with lots of refinement and the automatic decomposition we use (tets and pyramids) causes much too many cells.

Mattijs

rybakov April 12, 2005 09:33

Hi all, Excuse me for dummy q
 
Hi all,
Excuse me for dummy quiston.
I can not resieve Graph in ParaView in example with Cavity becouse of Filer "Probe" is inaccesseble.
I have choose Scalar Vx, make step by step Example but no result. Does anybody now where is problem can be?

mattijs April 12, 2005 10:54

Sounds like you do not have an
 
Sounds like you do not have any results. Check in the 'Display' tab under 'Property'. It should give you a list of 'U', 'p' etc. or whatever fields you have.

Paraview will disable the filters that require fields if there are no fields.

rybakov April 12, 2005 11:19

A have made calculations and U
 
A have made calculations and Ucomponents. I have in Display all, what I choose (Ux, Uy, P), I make beutiful pictures for P, Ux, Uy, but can not make Probe.

duderino April 15, 2005 09:43

Hi I want to add the time (
 
Hi

I want to add the time (real time of actual time step) as text in into an animation in Paraview. Is there any possibility to do this?

hsieh April 18, 2005 09:37

Hi, To generate mpg movies,
 
Hi,

To generate mpg movies, I now used foamToVTK to convert all the data to VTK and then read them back using paraview.

Can someone here post the steps how to generate mpg movie when invoking the paraview using paraFoam?

When I used paraFoam, I got all the time steps, but, I cannot get animation to work properly (slide bar of time steps moves, but, no redraw of the plot).

Thanks!

Pei

eugene April 18, 2005 09:43

This sometimes happens with bi
 
This sometimes happens with big cases. Switch off "cache geometry" and "record all properties" in the animation settings dialogue.

To make mpeg movies you need to dump each timestep as a jpg and then turn those into mpegs with a 3rd party utility (mainactor or convert for example).

chris April 18, 2005 09:44

Pei, When you run the anima
 
Pei,

When you run the animation, you need to deselect all the checkboxes in the Time panel of the case module. Did you do this?

rybakov April 18, 2005 11:43

Hallo all, I can make movie w
 
Hallo all,
I can make movie with yours advise, but I still can not reсieve Probe. Do you konw possible reasons?

rybakov April 18, 2005 11:44

Hallo all, I can make movie w
 
Hallo all,
I can make movie with yours advise, but I still can not recieve Probe. Do you konw possible reasons?

hsieh April 18, 2005 18:08

Hi, Chris, Thanks! That wa
 
Hi, Chris,

Thanks! That was the problem - I had one time step selected.

Pei

luckyluke April 20, 2005 23:08

The VTK file generated by foam
 
The VTK file generated by foamToVTK untility can be read using vtkUnstructuredGridReader, right?

Can anybody show me a simple code to do this,i.e. read the VTK file with some vtk classes.

Thanks.

luckyluke April 21, 2005 05:08

Hi,all. An urgent question whi
 
Hi,all. An urgent question which I have fighted to for a few days. Who will help me?

In the 'main' function of the solver, we have defined fvMesh mesh, volscalarField gamma.
Then is it possible to convert the mesh and field to VTK format(not use an intermediate file)?It seems to be easy,but I failed to do it.

I have trying to do it. But I am not clever enough to solve it with the help provided by the source files of foamToVTK and foamReader.

Thank all.


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