Home

ParaView`s Comparative Viewing, XY Plot, Spreadsheet View

image

Contents

1. nbprocs servermanager ActiveConnection GetNumberOfDataParti tions drange 0 nbprocs 1 ColoredSphere parallel example It MakeBlueToRedLT drange 0 drange 1 It NumberOfTableValues nbprocs rep LookupTable It rep ColorAttributeType POINT DATA rep ColorArrayName ProcessId bar CreateScalarBar LookupTable lIt Title PID bar TitleColor 0 0 0 bar LabelColor 0 0 0 bar NumberOfLabels 6 view Representations append bar running the example with pvbatch view ResetCamera view Background 7 7 7 view CameraViewUp 0 1 0 view StillRender WriteImage coloredSphere png view view Writer vtkPNGWriter Execute with MPI o mpirun n12 which pvbatch use offscreen rendering coloredSphere py N a oO e Utilities VTKPythonWrapping servermanager py e Utilities VTKPythonWrapping simple py Use Python Shell gt Trace e Start trace trace state show edit save trace The traces are very verbose Editing is recommended 2 nn x x Cen ro Sviz ro cl alo olo Scientifico 5 Swiss National Supercomputin ing C entre Look at data fields stored in the grid OpenDataFile ParaViewData Data bluntfin vts r UpdatePipeline pd r PointData for n in range pd GetNumberOfArrays print pd GetArray n GetName pd GetArray n GetRange for n in range pd NumberOfArrays print pd n Name pd n GetRange for
2. v in pd iteritems is a python dictionary print k v GetRange Execute a script for multiple timesteps AnimateReader from simple py is a macro that takes a time aware data source a view and a filename AnimateReader reader GetRenderView tmp foo png It will step through all timesteps The execution is run on demand by the view Execute for some timesteps AnimateReader starts at the beginning and runs to the end with a fixed increment You can change that and do your own start end and time increment tsteps reader TimestepValues start 2 incr 3 end 7 for i in tsteps start end incr view ViewTime tsteps i view StillRender imgfile image 03d png 9o start i incr view Writelmage imgfile vtkPNGWriter 1 Exercise with a file can ex2 reader FindSource can ex2 view GetRenderView tsteps reader TimestepValues start 0 incr 1 end len tsteps 1 for i in tsteps start end incr view ViewTime tsteps i view StillRender AnimateReader reader view c Users jfavre foo png a cscs National Supercomputing Cet Execute a script for multiple files While running paraview get the python interface Find all files Tools gt Python Shell import glob string files glob glob scratch user file dat files sort gt Cen di Calcolo Scientifico Swi ni Al Subat omputing Cente Execute a script for multiple f
3. Use panning zooming and reset camera buttons e ValidPointMask array set to 0 if data is missing Can be done interactively in real time with the Auto Accept button View gt Settings Browse with the mouse over the line Select which fields to make visibile invisible e Exercise with naca bin case Bart Chart e Histogram vtkTable will open a Bar Chart View Use panning zooming and reset camera buttons e Can be saved as vtkTable or as CSV file Use SpreadSheet View to look at RowData CSCS S gt Centro Svizzero di Calcolo Scientifico o Swiss National Supercomputing Centre GeoPhysics example Longitudinal average 100 00 80 00 60 00 40 00 20 00 T 20 00 40 00 60 00 80 00 100 00 50000 00 0 00 50000 00 Spreadsheet View e Any dataset can be viewed in a Spreadsheet View Allows display of node cell field and row data Allows linked selection e Can be exported as CSV file Display can be reduced to Show only selected elements Allows sorting by column Exercise 1 Source gt Wavelet Filters gt PointData to CellData Select all cells above 230 Exercise 2 Use Edit gt Find Data to do the same search Manual page 108 DI cscs ROW SW Centro Svizzero di Calcolo Scientifico Ne Swiss National Supercomputing Centre Comparative Viewing Compare side by side multiple visualization pipelines e Open the 3D V
4. ata Important http paraview org Wiki ParaView EnvironmentSetup The batch oriented tool called pvbatch will run without user s interaction pvbatch will be used to repeat the same visualization for many time steps in a transient simulation different input datasets e to customize an animation pvbatch can execute a hand written python script or reload a script generated with paraview and save images to disk NZ cscs GD di Calcolo Scientifico Reloading a state file paraview can reload a state file with the option state filename pvsm paraview can reload a state with the command File gt Load State pvbatch can reload the same state file with the commands from paraview simple import Connect servermanager LoadState users jfavre state pvsm cscs D 5 Calcolo Scientifico S vizzero di Calcolo wiss National Supercomputing Centre Reloading a python script paraview can reload a python script with the option script filename py paraview can reload a python script with the command Tools Python Shell gt Run Script Try reloading lib paraview 3 98 site packages paraview demos demo1 py sph Sphere shr Shrink rep Show Render ColoredSphere parallel example from paraview simple import view GetRenderView PID Let il sphere Sphere sphere PhiResolution 100 N ha pidscal ProcessIdScalars sphere e rep Show pidscal
5. data o Idem for plot over time e Both are ideal candidates for batch mode processing CSCS S gt Centro Svizzero di Calcolo Scientifico v Swiss National Supercomputing Centre Exercise Naca dataset Load PARAVIEW_DATA _ROOT Data naca bin case e Plot density and gradient along the curvilinear contour of the airfoil Export plot as PDF 0 00 20 00 40 00 60 00 80 00 100 00 120 00 140 00 160 00 180 00 200 00 220 00 240 00 ae CSCS ETH Centro Svizzero di Calcolo Scientifico Eidgen ssische Technische Hochschule Z rich wv Swiss National Supercomputing Centre Swiss Federal Institute of Technology Zurich ParaView Python Tools Dublin March 2013 Jean M Favre CSCS cscs x Centro Svizzero di Calcolo Scientifico Swiss Nat I zz gt tional Supercomputing Centre Outline 1 Tools application scripting python traces pvpython pvserver parallel execution 2 Quantitative Analysis programmable filters python calculator cs cs 92 0 Sviz ian ntifico awd Swi se Nation iting Centre ParaView tools paraview pvbatch can run in a single or multi cpu session e pvpython can connect to a parallel server The standard version called paraview will run interactively i e with a graphics OpenGL window This is intended to do exploratory visualization and to prepare a visualization script keep interaction live might want to use lower resolution
6. db Centro Svizzero di Calcolo Scientifico Eidgen ssische Technische Hochschule Z rich awd Swiss National Supercomputing Centre Swis geg der al Institute SCH ke ology Zur ParaView s Comparative Viewing XY Plot Spreadsheet View Matrix View Dublin March 2013 Jean M Favre CSCS cscs Motivational movie puc Supercom puting 2011 Movie Gal EE cscs x Centro Svizzero di Calcolo Scientifico Swiss Nat I zz in gt tional Supercomputing Centre Agenda e 9 30 11 00 Start ParaView and show some demos Do some exercises e 11 30 13 00 Parallel and python usage More exercises http www paraview org files v3 98 ParaViewData 3 98 1 tar gz CSCS DS x Centro Svizzero di Calcolo Scientifico a I Swiss National Supercomputing Centre Quantitative and qualitative data Filters Menu Sources Menu Animation Toolbar Bar Chart view Views Configuration Buttons LoadSave Data Buttons ete e FEP An Se hee E pd E i RI Rabe Ge Common Fiterz 8 BOOS OE Toolbar E deo E KR eh me 5 mam beten Pipeline Browser or ia EE 3D view Animation Inspector D SISEERKRSESER Plot view Element Inzpector Plot Over a Line Position the line end points on the extremities of the dataset User can move them back with the p stroke two times Plot will open a Line Chart View
7. filter input self GetInputDataObject 0 0 output self GetOutputDataObject 0 With the Copy Arrays option the nn output will have all of the input arrays Example create a Sphere Source and add cscs e gt gt entro Svizzero di Calcolo Scientifico iss Nato Ci Swiss National Supercomputing Centre Example of th fnum get VTK objects pdi self GetInputDataObject 0 0 pdo self GetOutputDataObject 0 pdo ShallowCopy pdi manipulate Python objects data0 inputs 0 PointData Density datai inputs 0 PointData Energy output PointData append datal data0 minus I space ca Python Prog Source Python Prog Filter create a grid and remap it to spher Centro Svizzero di Calcolo Scientifico Swiss National Supercomputing Centre CSCS i A diy lees n de LN Lh de Source code here from paraview util import SetOutputWholeExtent SetOutputWholeExtent self 0 29 0 19 0 19 0 CSCS AS AAN Centro Svizzero di Calcolo Scientifico ry Swiss National Supercomputing Centre Example of the use of a python package import scipy from scipy import integrate And create a vtkPolyData object to view e Google for source code with e lorenz python laprise Grid to Table translation Get a Programmable filter set the output type to vtkTable table self GetTableOutput pd self GetInput GetPointData for i i
8. iew Comparative Inspector ime 0 000000 ime 0 000900 ime 0 001700 xy x e Load file can ex2 4 Pp Geet ime 0 002600 ime 0 003400 cscs DS x Centro Svizzero di Calcolo Scientifico ow Swiss National Supercomputing Centre Plot Over Time Multiple points can be tracked over time based on their ID Make a selection Copy the Active Selection bp V Q APY NZ Plotting is allowed for multiple points 025043 Produces a multi SE block dataset Time 9 000000 cscs x Centro Svizzero di Calcolo Scientifico Swiss viz gt National Supercomputing Centre Parallel Coordinates View e Points are shown in n dimensional space e Each vertical column allows subset selection http en wikipedia org wiki Parallel coordinates Load vehicle data csv 2 VEL 2 ACCL 2 GlobalNodeld cscs DS x Centro Svizzero di Calcolo Scientifico ke Swiss National Supercomputing Centre Plot Matrix View Open vehicle data CSV op P bit 3 12 0 1250 581828 9 64 Anah 2 sette A mmm 2 BB SIDE amp GAL SER DD B mo e i Representatior e o zi z 2 ot Poeine Bowser btn CB Wavelets e t Dir weight C Acceleration Summary e Plotting and Charting will use vtkTables Comparative viewing is to be done with caution or low resolution
9. iles How do we update the pipeline objects must find the names of the objects to be modified view GetRenderView you created a pipeline and read a file file 000 dat using the GUI Open menu the object called file 000 dat shows in the pipeline viewer reader FindSource file 000 dat reader can now be updated reader Filename files i view StillRender 3 CSCS b x Centro Svizzero di Calcolo Scientifico Swiss N viz v ational Supercomputing Centre Quantitative Analysis e Calculator page 90 e Python Calculator page 96 e Programmable Source Filter page 87 Ref ParaView 3 98 User Manual CSCS 2012 Lorem ipsum dolor 31 3 CSCS Y x Centro Svizzero di Calcolo Scientifico Swiss viz De National Supercomputing Centre Calculator filter Calculate derived quantities from existing attributes Use a free form text expression Example 5 RTData if condition true_expres sion false_expression Attribute Mode Point Data Coordinate Results Result Array Name Result Clear iHat jHat sin cos tan abs sqrt asin acos atan ceil floor sinh cosh tanh KAY exp vl v2 mag norm In log10 Scalars X Vectors Replace invalid results Replacement value 0 cscs X he salt See eg ntifico iting Centri Python Calculator filter Uses python and numpy Accepts multiple inputs inputs 0 inputs 1 i Expression inputs 0 PointData RTData inputs 1 Po
10. int Can access the point OF cell Array Association Data data using the PointData Name en Copy Arrays or CellData qualifiers Can access the coordinates array using the Points qualifier x CSCS Centro Svizzero di Calcolo Scientifico lt n Python Calculator filter Examples Normals 5 Normals 1 2 3 velocity 0 hstack velocity x velocity y velocity z e When the calculation is more involved and trying to do it in one expression may be difficult When you need access to a program flow construct such as if or for When you need to change the type of the mesh e gt use the programmable filter CSCS lt x Centro Svizzero di Calcolo Ke Scientifico Swiss National Supercomputing Centri Python Programmable Source Filters Creates and transforms VTK grids Examples Output Data Set Type Same as Input Script Have a Python code to read data ee input self GetInputDataObject 0 0 and you may re use IT instead of output self GetOutputDataObject 0 writing a C reader output ShallowCopy input Prototype a filter without a GUI Import one of many python packages Extract the data arrays of a Grid and show them as a Table CSCS E Sic di Calolo Senn ting Python Programmable Source Filters In it simplest form the input is copied to the output Output Data Set Type Script It is a pass thru
11. n range pd GetNumberOfArrays table AddColumn pd GetArray i NZ cs cs 9 Centro Sviz d olo Scientifico Swi ss Nation mputing Centre Summary e Python scripts are a much better representation of the pipeline than the older state files pvsm e I recommend you learn at least the basics to reload a given configuration in a more portable manner e Python is the only interface to run ParaView in batch mode

Download Pdf Manuals

image

Related Search

Related Contents

Servo user and installation manual  SBS-2, SBS-4 Fluidised Bath    Phonix S7000SP2 screen protector    Halo H272RICAT Instructions / Assembly  2013 Dodge Dart User`s Guide  Luce LCTV-2201A User's Manual  Tacens Mars Gaming MIH2  www.silverlinetools.com  

Copyright © All rights reserved.
Failed to retrieve file