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   March 10, 2005, 04:51
Default As you point out it seems as i
  #41
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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
mattijs is offline   Reply With Quote

Old   March 10, 2005, 10:07
Default Hi Mattijs Tank you in adva
  #42
Member
 
Wladimyr Mattos da Costa Dourado
Join Date: Mar 2009
Location: Sao Jose dos Campos, SP, Brazil
Posts: 36
Rep Power: 9
mattos is on a distinguished road
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
mattos is offline   Reply With Quote

Old   March 12, 2005, 07:02
Default Hi! I would like to recompi
  #43
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 9
hemph is on a distinguished road
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
hemph is offline   Reply With Quote

Old   March 12, 2005, 07:19
Default It is annoying the cmake prese
  #44
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 14
henry is on a distinguished road
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.
henry is offline   Reply With Quote

Old   March 12, 2005, 07:42
Default Ah, got it to work. Thanks for
  #45
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 9
hemph is on a distinguished road
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 is offline   Reply With Quote

Old   March 12, 2005, 12:11
Default Well. it is actually not worki
  #46
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 9
hemph is on a distinguished road
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
hemph is offline   Reply With Quote

Old   March 16, 2005, 12:02
Default Hi, does anyone know how to
  #47
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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 is offline   Reply With Quote

Old   March 23, 2005, 07:13
Default Is there anyone out there with
  #48
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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
mattijs is offline   Reply With Quote

Old   April 12, 2005, 08:33
Default Hi all, Excuse me for dummy q
  #49
New Member
 
Andriy Rybakov
Join Date: Mar 2009
Posts: 9
Rep Power: 9
rybakov is on a distinguished road
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?
rybakov is offline   Reply With Quote

Old   April 12, 2005, 09:54
Default Sounds like you do not have an
  #50
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   April 12, 2005, 10:19
Default A have made calculations and U
  #51
New Member
 
Andriy Rybakov
Join Date: Mar 2009
Posts: 9
Rep Power: 9
rybakov is on a distinguished road
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.
rybakov is offline   Reply With Quote

Old   April 15, 2005, 08:43
Default Hi I want to add the time (
  #52
Member
 
Duderino
Join Date: Mar 2009
Posts: 40
Rep Power: 9
duderino is on a distinguished road
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?
duderino is offline   Reply With Quote

Old   April 18, 2005, 08:37
Default Hi, To generate mpg movies,
  #53
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 10
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   April 18, 2005, 08:43
Default This sometimes happens with bi
  #54
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 13
eugene is on a distinguished road
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).
eugene is offline   Reply With Quote

Old   April 18, 2005, 08:44
Default Pei, When you run the anima
  #55
New Member
 
Chris Greenshields
Join Date: Mar 2009
Posts: 28
Rep Power: 9
chris is on a distinguished road
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?
chris is offline   Reply With Quote

Old   April 18, 2005, 10:43
Default Hallo all, I can make movie w
  #56
New Member
 
Andriy Rybakov
Join Date: Mar 2009
Posts: 9
Rep Power: 9
rybakov is on a distinguished road
Hallo all,
I can make movie with yours advise, but I still can not reсieve Probe. Do you konw possible reasons?
rybakov is offline   Reply With Quote

Old   April 18, 2005, 10:44
Default Hallo all, I can make movie w
  #57
New Member
 
Andriy Rybakov
Join Date: Mar 2009
Posts: 9
Rep Power: 9
rybakov is on a distinguished road
Hallo all,
I can make movie with yours advise, but I still can not recieve Probe. Do you konw possible reasons?
rybakov is offline   Reply With Quote

Old   April 18, 2005, 17:08
Default Hi, Chris, Thanks! That wa
  #58
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 10
hsieh is on a distinguished road
Hi, Chris,

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

Pei
hsieh is offline   Reply With Quote

Old   April 20, 2005, 22:08
Default The VTK file generated by foam
  #59
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 9
luckyluke is on a distinguished road
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 is offline   Reply With Quote

Old   April 21, 2005, 04:08
Default Hi,all. An urgent question whi
  #60
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 9
luckyluke is on a distinguished road
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.
luckyluke 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 20:52.