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

How to edit PVFoamReaderCMakeListstxt file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2007, 15:51
Default Hi Martin.. I have found th
  #1
Senior Member
 
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 166
Rep Power: 17
nishant_hull is on a distinguished road
Hi Martin..

I have found that for reading your own geometry or problem uou need to modify the file CMakeLists.txt to provide $FOAM_USER_LIBBIN in the linker search path. i wanted to know, where I need to modify the file: $HOME/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphics/PVF oamReader/PVFoamReader/CMakeLists.txt?

My file looks like this:-

1
2 # Must be defined before ADD_LIBRARY for cmake version 2.3.4-20060317
3 LINK_DIRECTORIES($ENV{FOAM_LIBBIN})
4 LINK_DIRECTORIES($ENV{FOAM_USER_LIBBIN})
5
6 # Create vtk client/server wrappers for the classes.
7 VTK_WRAP_ClientServer(${PROJECT_NAME} PVFoamReaderCS_SRCS "${PVFoamReader_SRCS}")
8
9 # Build the package as a plugin for ParaView.
10 ADD_LIBRARY(${PROJECT_NAME} MODULE ${PVFoamReader_SRCS} ${PVFoamReaderCS_SRCS})
11 LINK_DIRECTORIES($ENV{ParaView_INST_DIR}/lib)
12 TARGET_LINK_LIBRARIES(${PROJECT_NAME} vtkClientServer)
13 FOREACH(c ${PVFoamReader_LIBS})
14 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${c}CS)
15 ENDFOREACH(c)
16
17 # Place the package configuration file into the build tree.
18 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/PVFoamReader.xml.in
19 ${PROJECT_BINARY_DIR}/../${PROJECT_NAME}.xml @ONLY IMMEDIATE)
20
21 # Place the package configuration file into the build tree.
22 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/PVFoamReader.pvsm.in
23 ${PROJECT_BINARY_DIR}/../${PROJECT_NAME}.pvsm @ONLY IMMEDIATE)
24
25 TARGET_LINK_LIBRARIES(${PROJECT_NAME} OpenFOAM finiteVolume vtkFoam)
26
~


Please suggest the possible modification.

Nishant
__________________
Thanks and regards,

Nishant
nishant_hull is offline   Reply With Quote

Old   October 29, 2007, 19:24
Default > I have found that for readin
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
> I have found that for reading your own geometry or problem uou need to modify the file CMakeLists.txt to provide $FOAM_USER_LIBBIN in the linker search path.

Nope. No need to do that. Your pre-compiled version of OpenFOAM and paraView will do just fine.

Martin
mbeaudoin is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Edit GTM Blade CFX 1 December 1, 2008 08:18
Can GAMBIT edit element or nodes ? pongup FLUENT 2 July 8, 2008 09:32
edit NACA with Gambit Br FLUENT 0 July 16, 2004 17:43
edit a new material Neser CFX 1 December 25, 2003 02:53
Edit surface in Build 5.5 Bogesz CFX 1 May 2, 2002 10:15


All times are GMT -4. The time now is 18:44.