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)

braennstroem May 11, 2005 09:55

Hi, I am not able to take a
 
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 May 11, 2005 11:13

Hi, I just tested it from the
 
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

hjasak May 11, 2005 15:32

Well, reading the error messag
 
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

braennstroem May 12, 2005 01:40

Hi, thanks for the suggesti
 
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 May 12, 2005 01:56

Hi, it works fine for a diffe
 
Hi,
it works fine for a different problem 'turboFoam cavity'; from command line and gui

Fabian

hjasak May 12, 2005 02:48

Your probably have NaN-s or si
 
Your probably have NaN-s or similar garbage in one of your result files. I have seen this before.

Hrv

braennstroem May 12, 2005 06:54

Yes, I have some NaN-s... T
 
Yes, I have some NaN-s...

Thanks.

Fabian

hjasak May 12, 2005 06:55

:-) Nans are good in an Indian
 
:-) 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

hjasak May 12, 2005 06:55

:-) Nans are good in an Indian
 
:-) 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

adorean May 18, 2005 03:31

Hi all, Does anybody know i
 
Hi all,

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

Thanks

Ervin

mattijs May 18, 2005 03:44

Filter->Reflection (have ne
 
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)

adorean May 18, 2005 04:04

Thanks Mattijs, It did work
 
Thanks Mattijs,

It did work with Filter -> Reflection

kanishka July 14, 2005 09:35

Hi All, I have been trying
 
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

henry July 14, 2005 09:42

The PVFoamReader is compiled f
 
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.

rolando July 27, 2005 11:35

Hi, I want to do parts of my
 
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

kanishka July 27, 2005 12:24

Hi Henry, Please tell me ho
 
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

henry July 27, 2005 15:30

To install ParaView-1.8.5 avai
 
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.

alajbegovic August 27, 2005 18:37

I am trying to use foamToVTK o
 
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

hjasak August 27, 2005 18:47

Bug in tutorial setup, maybe a
 
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

liugx212 November 16, 2005 13:50

Dear all: I have a VTK file
 
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

mattijs March 30, 2006 13:40

Interesting but not in release
 
Interesting but not in release notes: 1.3 foamToVTK runs in parallel. Produces one VTK directory per processor. Has got some new useful command line options as well (e.g. -allPatches)

cauneau April 20, 2006 08:26

Using release 1.3: test on lau
 
Using release 1.3: test on launching paraview-2.4.2 from inside FoamX (testcase is tutorial icoFoam/cavity). Everything fine, except on calculating streamlines. Error Message is:

ErrorMessage
# Error or warning: There was a VTK Error in file: ../../../../../paraview-2.4.2/VTK/Filtering/vtkDemandDrivenPipeline.cxx (661)
vtkCompositeDataPipeline (0x92c4200): Input port 0 of algorithm vtkDistributedStreamTracer(0x92c5be8) has 4 connections but is not repeatable.
ErrorMessage end

Other glyphs and 3D objects display quite normally...

I shall try to hack a little to know more.

NB1: Host system is a linux-mandriva (kernel 2.6.12), running on a laptop dell latitude (i586).

NB2: For the X server, "DRI" is off, as it is not compatible vith some calls of the PatchTool interface. Switching it on doesn't fix the present VTK problem.

NB3: Everything works fine with the couple OpenFOAM-1.2/paraview-2.2.0 on the same machine.

François Cauneau

mattos May 14, 2006 10:36

Hello Foam Guys I experimen
 
Hello Foam Guys

I experiment the same troubles that Francois Cauneau, both in my house machine (amd 32 bits) as well in my job (amd 64) using openfoam 1.3 + paraview 2.4.2.

Somebody can help us?

Many tanks in advance

Wladimyr

sreekanth July 15, 2006 07:00

the following is the error mes
 
the following is the error message i get when i try to open paraview. My aim is to plot stream lines for backward facing step flow. can some one tell how to do that with lines/points/ribbons instead of tubes.

also i need help regarding this error. i tried reinstalling but still ended up with same error. so, plzzzzz help me as soon as u can



newton{skolan,53}% ErrorMessage
# Error or warning: ERROR: In ../../../../../paraview-2.4.2/Utilities/VTKClientServer/vtkClientServerInterpret er.cxx, line 866
vtkClientServerInterpreter (0x80664b8): Cannot find module "libPVFoamReader.so". The following paths were searched:
/home/reynolds/skolan/OpenFOAM/linux/paraview-2.4.2/lib/paraview-2.4
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/lam-7.1.1
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linuxGcc4DPOpt/l ib
/home/user/skolan/OpenFOAM/linux/gcc-4.1.0/lib
/home/user/skolan/OpenFOAM/skolan-1.3/lib/linuxGcc4DPOpt
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt
/usr/local/lib
/home/user/skolan/OpenFOAM/linux/paraview-2.4.2/lib
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linuxGcc4DPOpt/b in
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxGcc4DPOpt /bin
/home/user/skolan/OpenFOAM/linux/j2sdk1.4.2_05/bin
/home/user/skolan/OpenFOAM/linux/gcc-4.1.0/bin
/home/user/skolan/OpenFOAM/skolan-1.3/applications/bin/linuxGcc4DPOpt
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/wmake
/home/user/skolan/OpenFOAM/OpenFOAM-1.3/bin
/usr/X11/bin
/usr/local/bin
/usr/bin
/bin
/etc
/local/Tecplot10.0//bin
/home/user/skolan/OpenFOAM/linux/paraview-2.4.2/bin
/usr/lib
/usr/lib/vtk
/usr/local/lib
/usr/local/lib/vtk



ERROR: In ../../../../../paraview-2.4.2/GUI/Client/vtkPVXMLPackageParser.cxx, line 677
vtkPVXMLPackageParser (0x88475d8): Error loading Library component PVFoamReader



ErrorMessage end

sreekanth July 15, 2006 07:03

forgot to tell u guys that i a
 
forgot to tell u guys that i am working on inux machine

dmoroian September 21, 2006 02:50

Hello, I tried the conjugateF
 
Hello,
I tried the conjugateFoam7 solver and it went well after I got the help from you to compile the source. Now I want to see the results.
Having multiple regions seems to enforce the usage of foamToVTK.
Well, I tried it, and I can see the temperature field for instance, but no velocity. It is obvious that when I ran it, the program complains about something:

dragosm@casp02:~/OpenFOAM/dragosm-1.3/run/conjugateHeat> foamToVTK ./ Conjugate_pipe -mesh region1 -latestTime
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : foamToVTK ./ Conjugate_pipe -mesh region1 -latestTime
Date : Sep 21 2006
Time : 09:05:11
Host : casp02
PID : 13723
Root : /fsd/soft/OpenFOAM/dragosm-1.3/run/conjugateHeat/
Case : Conjugate_pipe
Nprocs : 1
Create time

--> FOAM Warning :
From function objectRegistry::checkIn(regIOobject&)
in file db/objectRegistry/objectRegistry.C at line 51
Registering object 'region1' with objectRegistry 'time'
This is only appropriate for registering the regions of a multi-region computation
or in other special circumstances.
Otherwise please register this object with it's region (mesh)
Time 19
volScalarFields : rho p T
volVectorFields : U
pointScalarFields :
pointVectorFields :

Internal : "/fsd/soft/OpenFOAM/dragosm-1.3/run/conjugateHeat//Conjugate_pipe/VTK/region1/Co njugate_pipe_381.vtk"
Original cells:400 points:861 Additional cells:0 additional points:0



--> FOAM FATAL ERROR : Not implemented

From function void CyclicPointPatchField<patchfield,>::evaluate()
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/CyclicPointPatchFie ld.C at line 187.

FOAM aborting

Foam::error::printStack(Foam:: Ostream&)
Foam::error::abort()
Foam::GeometricField<double,>::GeometricBoundaryFi eld::evaluate()
void Foam::volPointInterpolation::interpolate<double>(F oam::GeometricField<double,> const&, Foam::GeometricField<double,>&
) const
Foam::tmp<foam::geometricfield<double,> > Foam::volPointInterpolation::interpolate<double>(F oam::GeometricField<double,> c
onst&) const
foamToVTK [0x41a70c]
foamToVTK [0x437dc9]
__libc_start_main
__gxx_personality_v0
Aborted


Can you give me a hint in the right direction to solve this problem?

Regards,
Dragos

mattijs September 21, 2006 05:01

Use the search facility. Look
 
Use the search facility. Look for CyclicPointPatchField.

http://www.cfd-online.com/cgi-bin/Op...=7286#POST7286

dmoroian September 21, 2006 06:59

Hi Mattijs, The solution work
 
Hi Mattijs,
The solution worked immediately. Thanks!

By the way, I always search first the forum, before I add my question. My fault is that I searched for the wrong key ("foamToVTK" instead for the actual error).

Regards,
Dragos

shawn December 20, 2006 18:16

Hi, I was wondering if anyone
 
Hi,
I was wondering if anyone could give me a pointer on what a foamToVTK error message means. I am running twoLiquidMixingFoam without any problems in the simulation, but when I run foamToVTK it spits out.

--> FOAM FATAL IO ERROR : size 6000 is not equal to the given value of 10400

file: /home/shp/OpenFOAM/shp-1.3/run/interFoam//tmix/0.01/gamma_0 from line 25 to line 6121.

From function Field<type>::Field(const word& keyword, const dictionary& dict, const label s)
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/Field.C at line 223.

FOAM exiting

I looked at the data file and their are 6000 data points for gamma but I don't know where this other number 10400 is defined. I am a little bit of a newbie still, so I have to apologize for my lack of error message knowledge.

Shawn

hjasak December 20, 2006 18:38

Take a look at the file: 0.
 
Take a look at the file:

0.01/gamma_0

and swee what the field size is. It should be the same as the number of cells in the mesh. If it is not, delete it. Do that with all other fields if the error appears again.

You can find the number of cells in the comment (under nCells) in constant/polyMesh/owner

Enjoy,

Hrv

atsushi September 6, 2007 00:25

Hi, When I save view image,
 
Hi,

When I save view image, suddenly paraview is terminated and error occurs&darr;&darr;&darr;


×Erroe of failed request:GLXBadContext
 Major opcode of failed request:143(GLX)
 Minor opcode of failed request:5(X_GLXMakeCurrent)
 Serial number of failed request:72026
 Current serial number in output sream72026


What kind of error is this??

msrinath80 September 6, 2007 01:25

I have solved this irritating
 
I have solved this irritating problem before. Here you go -> http://www.cfd-online.com/OpenFOAM_D...es/1/4438.html

atsushi September 7, 2007 03:21

Thank you. I'll check it.
 
Thank you.
I'll check it.

Atsu

armin_h October 25, 2007 02:30

Dear All would you please a
 
Dear All

would you please any one let me know, which kind of problem has my paravies which shows the following error?
and what should i do with that?
i use OpenFoam 1.4 , with paraview 2.4.4.

# Error or warning: There was a VTK Error in file: /home/dm2/henry/OpenFOAM/linuxSrc/paraview-2.4.4/VTK/Filtering/vtkDemandDrivenPi peline.cxx (651)
vtkStreamingDemandDrivenPipeline (0x99c8b00): Input port 0 of algorithm vtkAppendFilter(0x99c81a8) has 0 connections but is not optional.


MANY THANKS
ARMIN

nikhilmadduri June 25, 2008 21:51

hi everyone, i need to gene
 
hi everyone,

i need to generate a mesh around a cylnder. i have started with quarter of it. now how to complete it? i tried with filter>Reflection in paraview. it was working but i have a doubt that paraview being just a viewing tool, if i take the reflection, is it really going to change my computational domain physically??

this is a kind of urgent. reply will be greatly appreciated.

regards,
nike

ngj June 26, 2008 03:57

You just need to do what you h
 
You just need to do what you have done already three more times to end the circle, i.e. you have to generate the mesh around the entire cylinder using whatever meshing-tool you are comfortable with.

ParaView is "merely" a postprocessing tool.

/ Niels

nikhilmadduri June 26, 2008 04:28

thanq Niels, I am able to d
 
thanq Niels,

I am able to do it by inputting all the other 3 parts too again and was able to generate the whole cylinder using blockmesh. but since rest 3 parts are just symmetric along either x or z axes, do i have any tool which can just take the mirror image such that my tedious job of inputting all again will be reduced?

regards,
nike.

mgz1985 July 20, 2008 05:57

hi Henry, I was reading yo
 
hi Henry,

I was reading your post above and would like to ask you regarding a problem of pre-installed paraveiw.

I am unable to execute the command paraFoam correctly. i get the following error

mayank-guptas-macbook:icoFoam mayankgupta$ paraFoam ~/openfoam/mayankgupta-1.4.1/run/icoFoam cavity
/Users/mayankgupta/OpenFOAM/OpenFOAM-1.4.1/bin/paraFoam: line 75: paraview: command not found


can u help me fix this problem. I have installed paraview as a disk image and i am completely new to linux and no nothing about computers. secondy i was trying ur solutions of setting the environment for paraview but i could not find the paraview directory in the applications directory of openfoam-1.4.1

please help.

thanx

musahossein August 25, 2008 06:39

Dear All: The following opt
 
Dear All:

The following options are given for suitable Qt for different versions of SuSE:

The default versions of Qt used by some GNU/Linux releases are as follows.

* ubuntu-7.10: Version 4.3.2
* ubuntu-8.04: Version 4.3.4
* openSuSE-10.2: Version 4.2.1 - too old
* openSuSE-10.3: Version 4.3.1
* openSuSE-11.0: Version 4.4.0 - too new

I am running SuSE 10.0 Does this mean I will need to upgrade to 10.3, or is there something availabe for 10.0
Thanks
Musa

annikagram October 3, 2008 15:11

Dear All: just managed to s
 
Dear All:

just managed to start paraView for OF1.5. It looks wonderful! However: it seems like running a case does not produce any files for paraView to read, that is, I can see the mesh doing the cavity tutorial. But there is no way I can get any additional info after running icoFoam. The same goes for the damBreak after running interFoam (looks ok while running). What could be wrong? My OS is Ubuntu 8.04.
Thanx,
Annika


All times are GMT -4. The time now is 17:30.