|
[Sponsors] |
October 29, 2007, 14:51 |
Hi Martin..
I have found th
|
#1 |
Senior Member
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 166
Rep Power: 17 |
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 |
|
October 29, 2007, 18:24 |
> I have found that for readin
|
#2 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
> 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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Edit GTM | Blade | CFX | 1 | December 1, 2008 07:18 |
Can GAMBIT edit element or nodes ? | pongup | FLUENT | 2 | July 8, 2008 08:32 |
edit NACA with Gambit | Br | FLUENT | 0 | July 16, 2004 16:43 |
edit a new material | Neser | CFX | 1 | December 25, 2003 01:53 |
Edit surface in Build 5.5 | Bogesz | CFX | 1 | May 2, 2002 09:15 |