VTK   ParaView tutorial
16 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
16 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

ParaView Visualization CourseCompiling, testing, adding custom functionalityDr. Jean M. FavreChief ScientistVisualization Group LeaderOfficial release Version 3.4.0 binaries can be downloaded from www.paraview.org No MPI is provided, but paraview can be connected to a remote parallel server No pluggins can be added13/5/2009 Compiling the source codeVersion 3.4.0 source code can be downloaded from www.paraview.org/filesParaView must be compiled out-of-source, i.e. inside a directory with a different nameI suggest having two directories called: ParaView3 ParaView3Build13/5/2009 cmake www.cmake.org You must install and use cmake to compile ParaViewCMake was developed to enable:  Develop an open source, cross-platform tool to manage the build process,  Allow the use of native compilers and systems,  Simplify the build process,  Optionally provide a user-interface to manage the build system,  Create an extensible framework,  Grow a self-sustaining community of software users and developers. 13/5/2009 cmake 2.6 C:\CMake 2.6\doc\cmake.html cmake is the obligatory first step to compile anything ctest is for developers (and the more curious folks) C:\CMake 2.6\doc\ctest.html ctest is the test driver program. cmake-generated build trees created for projects that use the ENABLE_TESTING and ADD_TEST commands have testing support.  467 tests are available for version 3.4.013/5/2009 cmake iterative set-up ...

Informations

Publié par
Nombre de lectures 138
Langue English

Extrait

ParaView Visualization Course
Compiling, testing, adding custom functionality
Dr. Jean M. Favre
Chief Scientist Visualization Group Leader
Official release
Version 3.4.0 binaries can be downloaded from www.paraview.org
No MPI is provided, but paraview can be connected to a remote parallel server
No pluggins can be added
13/5/2009
Compiling the source code
Version 3.4.0 source code can be downloaded from www.paraview.org/files
ParaView must be compiled out-of-source, i.e. inside a directory with a different name
I suggest having two directories called:
ParaView3
ParaView3Build
13/5/2009
cmake www.cmake.org
You must install and use cmake to compile ParaView
CMake was developed to enable: Develop  tahne  obpueilnd source, cross-platform tool to manage process, Allow the use of native compilers and systems, Simplify the build process, al vide a user-interface to manage the bOupiltido snysltye pmr,o Create an extensible framework, aGnrod wd eav seleolfp-seurss.t aining community of software users 
13/5/2009
cmake 2.6
C:\CMake 2.6\doc\cmake.html cmake is the obligatory first step to compile anything
ctest is for developers (and the more curious folks) C:\CMake 2.6\doc\ctest.html
ctest is the test driver program. cmake-generated build trees created for projects that use the ENABLE_TESTING and ADD_TEST commands have testing support.
467 tests are available for version 3.4.0
13/5/2009
cmake iterative set-up
Set variables or boolean flags
Configture, correc
Once done, generate the makefiles
13/5/2009
ctest is run from the build directory
ctest
-V,--verbose -VV,--extra-verbose --debug -Q,--quiet -O <file>, --output-log <file> -N,--show-only -R <regex>, --tests-regex <regex> -E <regex>, exclude-regex <regex> --
13/5/2009
_ _ PARAVIEW DATA ROOT
A repository of test files used by ctest Available from the paraview website Optional
/local/ParaViewData3.4/Data/can.ex2
_ _ ccmake -DPARAVIEW DATA ROOT= /local/ParaViewData3.4
13/5/2009
.1.2
13/5/2009
Running other tests
ctest searches all Testing sub-directories for name matches, then run the test and [optionally] compare the image with a “valid” image previously generated. Command: "C:/ParaView3Build/bin/Debug/GraphicsCxxTests.exe" "BoxClipPolyData" "-D" "C:/Program Files/VTKData" "-T"   "C:/ParaView3Build/VTK/Testing/Temporary" "-V" "Baseline/Graphics/BoxClipPolyData.png"
ctest –R FrustumClip -V GraphicsCxxTests FrustumClip –I
Testing with Python
With paraview: Get a Python Shell from the Tools menu Type “servermanager.demo4(“/filepath/can.ex2”)”
With pvpython: pvpython < demo4.py
With pvbatch: pvbatch –use-offscreen-rendering demo4.py
13/5/2009
Testing with Python: demo4()
from paraview import servermanager def demo4(fname="/Users/berk/Work/ParaViewData/Data/can.ex2"): if not servermanager.ActiveConnection: servermanager.Connect() reader = servermanager.sources.ExodusIIReader(FileName=fname) view = servermanager.CreateRenderView() repr = servermanager.CreateRepresentation(reader, view) view.StillRender(); view.ResetCamera(); view.StillRender(); c = view.GetActiveCamera() c.Elevation(95) servermanager.AnimateReader(reader, view, "/tmp/foo.mpg")
demo4("/local/ParaViewData3.4/Data/can.ex2")
13/5/2009
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents