CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Paraview and VTK

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2005, 09:55
Default Hi, I am not able to take a
  #81
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,

I am not able to take a look at the results and grid with paraview/paraFoam anymore. It worked before and I don't know what I changed.
If I choose the 'normal' way by the utilities-menu to postprocess the data with parafoam, paraview opens up normal, but pressing the 'accept' button it seems that paraview wants to load the data and closes the environment afterwards. OpenFoam than tells me that the 'Application parafoam (pid ...) did finish successfully', but I don't want to finish it before I can see anything...

Does anybody have an idea what went wrong?

Greetings!
Fabian
braennstroem is offline   Reply With Quote

Old   May 11, 2005, 11:13
Default Hi, I just tested it from the
  #82
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,
I just tested it from the console with

'paraFoam OpenFOAM/fab-1.1/run/tutorials/buoyantFoam/ hotRoom'

I get as error message:
'/home/fab/OpenFOAM/OpenFOAM-1.1/bin/paraFoam: line 57: 7023 Segmentation fault paraview paraFoam.pvs'


Does anybody understand this?

Greetings!
Fabian
braennstroem is offline   Reply With Quote

Old   May 11, 2005, 15:32
Default Well, reading the error messag
  #83
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Well, reading the error message tells me:

Segmentation fault paraview

0) try running paraview on its own (this will check the installation

1) get rid of the trailing "/" in the root entry on the command line:

'paraFoam OpenFOAM/fab-1.1/run/tutorials/buoyantFoam hotRoom'

2) Try deleting all old paraview files in the case directory and try again.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 12, 2005, 01:40
Default Hi, thanks for the suggesti
  #84
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,

thanks for the suggestions, unfortunately it does not help...
I checked paraview on his own, which works fine, got rid of the trailing '/' and deleted old paraview files. Strange!

Fabian
braennstroem is offline   Reply With Quote

Old   May 12, 2005, 01:56
Default Hi, it works fine for a diffe
  #85
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi,
it works fine for a different problem 'turboFoam cavity'; from command line and gui

Fabian
braennstroem is offline   Reply With Quote

Old   May 12, 2005, 02:48
Default Your probably have NaN-s or si
  #86
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Your probably have NaN-s or similar garbage in one of your result files. I have seen this before.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 12, 2005, 06:54
Default Yes, I have some NaN-s... T
  #87
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Yes, I have some NaN-s...

Thanks.

Fabian
braennstroem is offline   Reply With Quote

Old   May 12, 2005, 06:55
Default :-) Nans are good in an Indian
  #88
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
:-) Nans are good in an Indian restaurant, but not in a CFD solution... I hope all will be wlel when you get rid of them.


Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 12, 2005, 06:55
Default :-) Nans are good in an Indian
  #89
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
:-) Nans are good in an Indian restaurant, but not in a CFD solution... I hope all will be well when you get rid of them.


Enjoy,

Hrv
sharonyue likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 18, 2005, 03:31
Default Hi all, Does anybody know i
  #90
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 76
Rep Power: 17
adorean is on a distinguished road
Hi all,

Does anybody know if it is possible to mirror the geometry in Paraview; if yes, how?

Thanks

Ervin
adorean is offline   Reply With Quote

Old   May 18, 2005, 03:44
Default Filter->Reflection (have ne
  #91
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Filter->Reflection

(have never tried it though)

Or use OpenFOAM utility mirrorMesh to build a symmetric mesh (not sure if it does fields as well)
mattijs is offline   Reply With Quote

Old   May 18, 2005, 04:04
Default Thanks Mattijs, It did work
  #92
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 76
Rep Power: 17
adorean is on a distinguished road
Thanks Mattijs,

It did work with Filter -> Reflection
adorean is offline   Reply With Quote

Old   July 14, 2005, 09:35
Default Hi All, I have been trying
  #93
kanishka
Guest
 
Posts: n/a
Hi All,

I have been trying to do the lid-driven cavity flow tutorial.Post-processing with paraFoam shows the following error:

[kanishka@fedora1 ~]$ paraFoam $FOAM_RUN/tutorials/icoFoam cavity
ErrorMessage
# Error or warning: ERROR: In /home/amy/ParaViewReleaseRoot/paraview-2.0.2/Utilities/VTKClientServer/vtkClient ServerInterpreter.cxx, line 882
vtkClientServerInterpreter (0x8973a48): Cannot load module "PVFoamReader" from "/home/kanishka/OpenFOAM/OpenFOAM-1.1/lib/linuxOpt/libPVFoamReader.so".


ERROR: In /home/amy/ParaViewReleaseRoot/paraview-2.0.2/Utilities/VTKClientServer/vtkClient ServerInterpreter.cxx, line 886
vtkClientServerInterpreter (0x8973a48): /home/kanishka/OpenFOAM/OpenFOAM-1.1/lib/linuxOpt/libPVFoamReader.so: undefined symbol: _ZN9vtkObject8RegisterEP13vtkObjectBase


ERROR: In /home/amy/ParaViewReleaseRoot/paraview-2.0.2/GUI/Client/vtkPVXMLPackageParser.cx x, line 675
vtkPVXMLPackageParser (0x9116ab0): Error loading Library component PVFoamReader



ErrorMessage end
/home/kanishka/OpenFOAM/OpenFOAM-1.1/bin/paraFoam: line 57: 4039 Segmentation fault paraview paraFoam.pvs
[kanishka@fedora1 ~]$

...in this the ParaFoam window shuts down as soon as it opens up!
Although there is no such problem with paraview
which i had separately installed after downloading it from paraview.org.

Any ideas???can this problem be sorted out by some means...Do i install OpenFoam to the system again?

Cheers
Kanishka
  Reply With Quote

Old   July 14, 2005, 09:42
Default The PVFoamReader is compiled f
  #94
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
The PVFoamReader is compiled for ParaView-1.8.5 not for ParaView-2.0.2. Your options are:

1) install the ParaView-1.8.5 we supply with OpenFOAM-1.1

2) recompile PVFoamReader for ParaView-2.0.2 (but it probably won't work due to changes in ParaView)

3) use the foamToVTK converter and run paraview rather than paraFoam.
henry is offline   Reply With Quote

Old   July 27, 2005, 11:35
Default Hi, I want to do parts of my
  #95
Member
 
Rolando Maier
Join Date: Mar 2009
Posts: 89
Rep Power: 17
rolando is on a distinguished road
Hi,
I want to do parts of my postprocessing on a windows machine. I installed a binary version of "paraview" there.
I intend to convert my simulation data into VTK format with "foamToVTK", put it on my windows machine and doing the visualization.
Will it be identical to calling "paraFoam" with the corresponding case?

Rolando
rolando is offline   Reply With Quote

Old   July 27, 2005, 12:24
Default Hi Henry, Please tell me ho
  #96
kanishka
Guest
 
Posts: n/a
Hi Henry,

Please tell me how to install ParaView-1.8.5 over ParaView-2.0.2.I am struggling with 'rpm -e' command to do so,not having much knowledge of commandline interface.How to use 'foamToVTK' converter?

And how to do post-processing with dxFoam.
'dxFoam postFoam' shows the following message:
Executing: /home/kanishka/OpenFOAM/OpenFOAM-1.1/.bashrc
Executing: /home/kanishka/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/apps/dxFoam/bashrcExecuting: /home/kanishka/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/apps/ensightFoam/bashrc
Executing: /home/kanishka/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/apps/paraview/bashrc
[kanishka@fedora1 ~]$ dxFoam postFoam
Checking path to dx ...
Checking path to dxFoamExec executable ...
Can't find dxFoamExec executable. Please check your path.

I have downloaded the installer files of OpenDX from http://www.opendx.org/dlBinary.php
While installing it shows:
[kanishka@fedora1 ~]$ rpm -Uvh opendx-4.3.2-1.rh9.rpm
error: can't create transaction lock

how to install and work with it??
..please suggest something.

Kanishka
  Reply With Quote

Old   July 27, 2005, 15:30
Default To install ParaView-1.8.5 avai
  #97
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
To install ParaView-1.8.5 available from the OpenFOAM download site follow the instructions supplied.

Use foamToVTK in the same manner as all the other OpenFOAM utilities. Usage is described in the documentation.

dxFoam is no longer supported.
henry is offline   Reply With Quote

Old   August 27, 2005, 18:37
Default I am trying to use foamToVTK o
  #98
New Member
 
Ales Alajbegovic
Join Date: Mar 2009
Posts: 3
Rep Power: 17
alajbegovic is on a distinguished road
I am trying to use foamToVTK on the buoyantFoam case. I get the error shown below when using it after the simulation. What do I have to do?

Time constant
volScalarFields :
volVectorFields :
pointScalarFields :
pointVectorFields :

Internal : "/home/ales/OpenFOAM/ales-1.2/run/tutorials/buoyantFoam/hotRoom/VTK/hotRoom_0.vt k"
Original cells:4000 points:4851 Additional cells:0 additional points:0

Patch : "/home/ales/OpenFOAM/ales-1.2/run/tutorials/buoyantFoam/hotRoom/VTK/floor/floor_ 0.vtk"
Patch : "/home/ales/OpenFOAM/ales-1.2/run/tutorials/buoyantFoam/hotRoom/VTK/ceiling/ceil ing_0.vtk"
Patch : "/home/ales/OpenFOAM/ales-1.2/run/tutorials/buoyantFoam/hotRoom/VTK/fixedWalls/f ixedWalls_0.vtk"
Time 0


--> FOAM FATAL IO ERROR :
Cannot find 'value' entry which is required to set the values of the default patch field.

Please add the 'value' entry to the write function of the user-defined boundary-condition
or link the boundary-condition into libfoamUtil.so

file: /home/ales/OpenFOAM/ales-1.2/run/tutorials/buoyantFoam/hotRoom/0/p::floor from line 34 to line 34.

From function defaultFvPatchField<type>::defaultFvPatchField(con st fvPatch&, const Field<type>&, const dictionary&)
in file fields/fvPatchFields/basicFvPatchFields/default/defaultFvPatchField.C at line 127.

FOAM exiting
alajbegovic is offline   Reply With Quote

Old   August 27, 2005, 18:47
Default Bug in tutorial setup, maybe a
  #99
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Bug in tutorial setup, maybe also in FoamX config, but I'm not checking. Edit the file:

OpenFOAM-1.2/tutorials/buoyantFoam/hotRoom/0/p and for all patches of type wallBuoyantPressure add the "default" value for post-processing, e.g.:

floor
{
type wallBuoyantPressure;
value uniform 100000;
}


Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 16, 2005, 13:50
Default Dear all: I have a VTK file
  #100
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 17
liugx212 is on a distinguished road
Dear all:

I have a VTK file in which includes the MESH and Geometry. But I do not know how to import to openfoam or how to use this VTK file in openfoam. Could you help me.

Thanks deeply,
Guoxiang
liugx212 is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Paraview problem: loading the VTK cellSets changes the time anon_q ParaView 1 November 3, 2018 20:53
[General] How to relate tensor data in vtk file to Paraview awa5114 ParaView 0 March 7, 2017 04:56
[General] Creating VTK image compatible to Paraview Visualizer het ParaView 0 January 7, 2016 08:20
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? jaffar ParaView 0 November 27, 2012 09:36


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