CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Could you please help me about the VTKFoam (http://www.cfd-online.com/Forums/openfoam-pre-processing/62091-could-you-please-help-me-about-vtkfoam.html)

liugx212 November 18, 2005 19:32

Dear all, Since I am a new
 
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.

wes January 13, 2006 08:29

Hi Every one, I am running th
 
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

mattijs January 13, 2006 13:54

Cannot find module "libPVFoamR
 
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.

vinodkgul January 14, 2006 12:43

Dear Wes Maru, you can use fo
 
Dear Wes Maru,
you can use foamToVTK and usr paraview to view those files.
regards

gschaider January 16, 2006 06:47

I don't know if this is the sa
 
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

wes February 13, 2008 12:31

Hi Every one, I have tried
 
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


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