mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- Allows generation of images (currently PNG files) during the run - ... or afterwards by invoking the execFlowFunctionObjects utility - Wrapper around VTK functionality - Support for objects: - text - points (glyphs: sphere, arrow) - lines (tubes) - surfaces (wireframe, shaded, combination) - Colour using: - user-defined - field values (several colour maps availale) - For image sequences: - dynamic views (camera movement) - objects can appear/disappear using opacity - Building - VTK dependency v6+ - satisfied using ParaView from ThirdParty directory - or separate VTK installation
85 lines
1.8 KiB
Plaintext
85 lines
1.8 KiB
Plaintext
include(${VTK_USE_FILE})
|
|
|
|
if(VTK_LIBRARIES)
|
|
message("Found VTK LIBRARIES: " ${VTK_USE_FILE})
|
|
endif()
|
|
|
|
if(${VTK_VERSION} VERSION_GREATER "6")
|
|
message("VTK version: " ${VTK_VERSION})
|
|
else()
|
|
message(FATAL_ERROR " VTK6 required")
|
|
endif()
|
|
|
|
include_directories(
|
|
$ENV{WM_PROJECT_DIR}/src/OpenFOAM/lnInclude
|
|
$ENV{WM_PROJECT_DIR}/src/OSspecific/$ENV{WM_OSTYPE}/lnInclude
|
|
$ENV{WM_PROJECT_DIR}/src/triSurface/lnInclude
|
|
$ENV{WM_PROJECT_DIR}/src/finiteVolume/lnInclude
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
link_directories(
|
|
$ENV{FOAM_LIBBIN}
|
|
$ENV{FOAM_EXT_LIBBIN}
|
|
)
|
|
|
|
add_definitions(
|
|
-DWM_$ENV{WM_PRECISION_OPTION} -DNoRepository
|
|
-DWM_LABEL_SIZE=$ENV{WM_LABEL_SIZE}
|
|
)
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG
|
|
"-g -O0 -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual"
|
|
)
|
|
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE
|
|
"-O3 -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wno-overloaded-virtual")
|
|
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
|
|
|
# Set output library destination to plugin directory
|
|
set(LIBRARY_OUTPUT_PATH $ENV{FOAM_LIBBIN}
|
|
CACHE INTERNAL
|
|
""
|
|
)
|
|
|
|
file(GLOB SOURCE_FILES
|
|
fieldVisualisationBase.C
|
|
functionObjectCloud.C
|
|
functionObjectLine.C
|
|
functionObjectSurface.C
|
|
geometryBase.C
|
|
geometrySurface.C
|
|
pathline.C
|
|
pointData.C
|
|
runTimePostProcessing.C
|
|
runTimePostProcessingFunctionObject.C
|
|
scene.C
|
|
surface.C
|
|
text.C
|
|
)
|
|
|
|
set(OPENFOAM_LIBRARIES
|
|
OpenFOAM
|
|
triSurface
|
|
finiteVolume
|
|
)
|
|
|
|
add_library(
|
|
runTimePostProcessing
|
|
SHARED
|
|
${SOURCE_FILES}
|
|
)
|
|
|
|
target_link_libraries(
|
|
runTimePostProcessing
|
|
${VTK_LIBRARIES}
|
|
${OPENFOAM_LIBRARIES}
|
|
)
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|