CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Could you please help me about the VTKFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2005, 19:32
Default Dear all, Since I am a new
  #1
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 17
liugx212 is on a distinguished road
Dear all,

Since I am a newer of OpenFoam, There is a question about using VTKFoam. When I complier, ther are some error. Could you please help me this?

Thanks deeply.

Errors paste as follows:
make: Nothing to be done for `allFiles'.
make: `lnInclude/uptodate' is up to date.
make: `Make/linuxGcc4Opt/dependencies' is up to date.
libso
SOURCE_DIR=.
SOURCE=vtkFoam.C ; g++ -m32 -Dlinux -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/home/liu/util/VTK/VTK-4.2.0/Filtering -I/home/liu/util/VTK/VTK-4.2.0/Common -I/home/liu/util/VTK/VTK-4.2.0/ -I/home/liu/OpenFOAM/linux/paraview-2.2.0/include -I../PVFoamReader -I/home/liu/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4Opt/vtkFoam.o
In file included from /home/liu/util/VTK/VTK-4.2.0/Common/vtkSystemIncludes.h:33,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkIndent.h:27,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkObjectBase.h:46,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkObject.h:44,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h:52,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h:48,
from /home/liu/util/VTK/VTK-4.2.0/Filtering/vtkDataSetSource.h:25,
from ../PVFoamReader/vtkFoamReader.h:40,
from vtkFoam.C:38:
/home/liu/util/VTK/VTK-4.2.0/Common/vtkWin32Header.h:30:26: error: vtkConfigure.h: No such file or directory
In file included from /home/liu/OpenFOAM/linux/gcc-4.0.1/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../ ../../include/c++/4.0.1/backward/iostream.h:31,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkIOStream.h:61,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkSystemIncludes.h:49,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkIndent.h:27,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkObjectBase.h:46,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkObject.h:44,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h:52,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h:48,
from /home/liu/util/VTK/VTK-4.2.0/Filtering/vtkDataSetSource.h:25,
from ../PVFoamReader/vtkFoamReader.h:40,
from vtkFoam.C:38:
/home/liu/OpenFOAM/linux/gcc-4.0.1/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/../../ ../../include/c++/4.0.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <x> header for the <x.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from /home/liu/util/VTK/VTK-4.2.0/Common/vtkSystemIncludes.h:49,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkIndent.h:27,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkObjectBase.h:46,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkObject.h:44,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h:52,
from /home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h:48,
from /home/liu/util/VTK/VTK-4.2.0/Filtering/vtkDataSetSource.h:25,
from ../PVFoamReader/vtkFoamReader.h:40,
from vtkFoam.C:38:
/home/liu/util/VTK/VTK-4.2.0/Common/vtkIOStream.h:65:58: error: strstream.h: No such file or directory
/home/liu/util/VTK/VTK-4.2.0/Common/vtkIndent.h:33: warning: 'class vtkIndent' has virtual functions but non-virtual destructor
/home/liu/util/VTK/VTK-4.2.0/Common/vtkTimeStamp.h:32: warning: 'class vtkTimeStamp' has virtual functions but non-virtual destructor
/home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h: In member function 'virtual void vtkProcessObject::AbortExecuteOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h:91: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h: In member function 'virtual void vtkProcessObject::AbortExecuteOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkProcessObject.h:91: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h: In member function 'virtual void vtkSource::ReleaseDataFlagOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h:94: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h: In member function 'virtual void vtkSource::ReleaseDataFlagOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkSource.h:94: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h:97: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h: In member function 'virtual void vtkDataObject::ReleaseDataFlagOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h:97: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h:256: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h: In member function 'virtual void vtkDataObject::RequestExactExtentOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataObject.h:256: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyScalarsOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:207: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyScalarsOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:207: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyVectorsOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:221: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyVectorsOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:221: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyNormalsOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:235: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyNormalsOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:235: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTCoordsOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:249: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function /home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTCoordsOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:249: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTensorsOn()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:263: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h: In member function 'virtual void vtkDataSetAttributes::CopyTensorsOff()':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkDataSetAttributes.h:263: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkFloatArray.h: In member function 'virtual void* vtkFloatArray::GetVoidPointer(vtkIdType)':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkFloatArray.h:144: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkFloatArray.h: In member function 'virtual void vtkFloatArray::SetVoidArray(void*, vtkIdType, int)':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkFloatArray.h:161: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkCharArray.h: In member function 'virtual void* vtkCharArray::GetVoidPointer(vtkIdType)':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkCharArray.h:145: warning: use of old-style cast
/home/liu/util/VTK/VTK-4.2.0/Common/vtkCharArray.h: In member function 'virtual void vtkCharArray::SetVoidArray(void*, vtkIdType, int)':
/home/liu/util/VTK/VTK-4.2.0/Common/vtkCharArray.h:161: warning: use of old-style cast
make: *** [Make/linuxGcc4Opt/vtkFoam.o] Error 1
./Allwmake: line 2: cmake: command not found
make: *** No targets specified and no makefile found. Stop.
liugx212 is offline   Reply With Quote

Old   January 13, 2006, 08:29
Default Hi Every one, I am running th
  #2
wes
Guest
 
Posts: n/a
Hi Every one,
I am running the lid cavity tutorial. But, I am having a problem with the postprocessing paraview (paraFoam). I can run paraview alone, and it seems to work fine. But, when I do as described in the manual and as shown below, it creates a segmentation fault. Is there any one to help in this regard.
Regards

[wam@localhost run]$ paraFoam tutorials/icoFoam cavity
ErrorMessage
# Error or warning: ERROR: In ../../../../../paraview-2.2.0/Utilities/VTKClientServer/vtkClientServerInterpret er.cxx, line 866
vtkClientServerInterpreter (0x91e8d50): Cannot find module "libPVFoamReader.so". The following paths were searched:
/home/wam/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt/lam-7.1.1
/home/wam/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/linuxGcc4Opt/lib
/home/wam/OpenFOAM/linux/gcc-4.0.1/lib
/home/wam/OpenFOAM/wam-1.2/lib/linuxGcc4Opt
/home/wam/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt
/home/wam/OpenFOAM/linux/paraview-2.2.0/lib
/home/wam/OpenFOAM/OpenFOAM-1.2/src/lam-7.1.1/platforms/linuxGcc4Opt/bin
/home/wam/OpenFOAM/OpenFOAM-1.2/src/mico-2.3.11/platforms/linuxGcc4Opt/bin
/home/wam/OpenFOAM/linux/j2sdk1.4.2_05/bin
/home/wam/OpenFOAM/linux/gcc-4.0.1/bin
/home/wam/OpenFOAM/wam-1.2/applications/bin/linuxGcc4Opt
/home/wam/OpenFOAM/OpenFOAM-1.2/applications/bin/linuxGcc4Opt
/home/wam/OpenFOAM/OpenFOAM-1.2/wmake
/home/wam/OpenFOAM/OpenFOAM-1.2/bin
/usr/kerberos/bin
/usr/local/bin
/usr/bin
/bin
/usr/X11R6/bin
/home/wam/OpenFOAM/linux/paraview-2.2.0/bin
/usr/lib
/usr/lib/vtk
/usr/local/lib
/usr/local/lib/vtk



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



ErrorMessage end
/home/wam/OpenFOAM/OpenFOAM-1.2/bin/paraFoam: line 57: 5261 Segmentation fault paraview paraFoam.pvs
  Reply With Quote

Old   January 13, 2006, 13:54
Default Cannot find module "libPVFoamR
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Cannot find module "libPVFoamReader.so"

That module is the OpenFOAM supplied paraview reader. Check your directories and if you deleted it restore it from the OpenFOAM .tgz packs.
mattijs is offline   Reply With Quote

Old   January 14, 2006, 12:43
Default Dear Wes Maru, you can use fo
  #4
New Member
 
Vinod Kumar
Join Date: Mar 2009
Location: kerala, tvm, india
Posts: 2
Rep Power: 0
vinodkgul is on a distinguished road
Dear Wes Maru,
you can use foamToVTK and usr paraview to view those files.
regards
vinodkgul is offline   Reply With Quote

Old   January 16, 2006, 06:47
Default I don't know if this is the sa
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
I don't know if this is the same problem (just a guess):

Do you have a non-OpenFOAM-paraview installation on your machine? The scripts provided with the OpenFOAM-paraview-binary append to the PATH and the LD_LIBRARY_PATH-variable. Because of this paraFoam tries to access the paraview it was not compiled to work with.

Either
- remove the old paraview installation
- rewrite the init-scripts
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 13, 2008, 12:31
Default Hi Every one, I have tried
  #6
wes
Guest
 
Posts: n/a
Hi Every one,

I have tried to use OpenFOAM few years ago, but drifted away on other matters - so, you could call me one of the new bees.

I have interest to model a Steam Injector using OpenFOAM. However, I am not sure if it has that capability.

The steam injector is a passive jet pump (with no moving parts) that has various applications, and currently, widely investigated in the nuclear industry (see its historical development http://en.wikipedia.org/wiki/Injector).

Essentially, a motive fluid (steam) from a high pressure vessel is released and passes through a nozzle supersonically and expands into a mixing chamber while entraining a working fluid (water or slurry) in the form of a jet before it breaks up and vaporises due to momentuum and heat energy transfer - forming a two-phase or dispered flow.
The two-phase system (condensing steam, vaporising water) finally passes through a diffuser throat as liquid.

The process involves both compressible flow (supersonic steam) and incompresible fluids (water), a water jet breakup, phase change of both water and steam.

Does OpenFOAM has such supersonic two-phase flow modelling capability at present? or
Is it potentially extendable to address such problems (for example, including scramjet fuel injection under cross flow ?)

I will appreciate your advice, specially commenting past experiences and more importantly the best place to start in investigating OpenFOAM so that I can spend some time on it.

Many thanks in advance

Wes
  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
Using vtkFoam miliante OpenFOAM 2 July 22, 2008 17:24
Please help about the VTKFoam liugx212 OpenFOAM Running, Solving & CFD 0 November 18, 2005 19:27


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