CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Help me How to include VTK library in my own solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2005, 23:16
Default I have installed VTK4.4 in my
  #1
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
I have installed VTK4.4 in my home directory,i.e. "/u1/yzheng9/VTK/". In my solver several VTK classes are used.

I do it like this. The following is my 'option' file(the old lines are removed here):

EXE_INC = \
-I$(HOME)/VTK \
$(WM_DECOMP_INC)

EXE_LIBS = \
-L$(HOME)/VTK/bin \
-lvtkIO \
-lvtkGraphics \
-lvtkCommon \
$(WM_DECOMP_LIBS) \

Then in the main file of my solve, I have:

#include "IO/vtkUnstructuredGridReader.h"
#include "Graphics/vtkCellDataToPointData.h"
#include "Graphics/vtkContourGrid.h"
#include "Common/vtkPolyData.h"
#include "Common/vtkPoints.h"
#include "Common/vtkIdType.h"
#include "Common/vtkGenericCell.h"

But when I type "wmake", many many errors come out:

could not open file IO/vtkUnstructuredGridReader.h for source file contourInterFoam.C
could not open file Graphics/vtkCellDataToPointData.h for source file contourInterFoam.C
could not open file Graphics/vtkContourGrid.h for source file contourInterFoam.C
could not open file Common/vtkPolyData.h for source file contourInterFoam.C
could not open file Common/vtkPoints.h for source file contourInterFoam.C
could not open file Common/vtkIdType.h for source file contourInterFoam.C
could not open file Common/vtkGenericCell.h for source file contourInterFoam.C

What should I do? I am confused.

Give me a hand.
luckyluke 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
DPM #include "filename" ? Sandilya Garimella FLUENT 10 February 4, 2010 00:01
How to include a crossmix in fluent Novice FLUENT 0 January 14, 2009 03:02
How to Include Exponential in UDF RL FLUENT 5 September 11, 2008 17:51
Two-way FSI include Thermal Stress Barii.Johnason CFX 1 August 13, 2007 04:38
How to include.... Sharad Dugad FLUENT 1 January 9, 2002 12:03


All times are GMT -4. The time now is 05:02.