ParaView s Comparative Viewing, XY Plot, Spreadsheet View, Matrix View



Similar documents
Facts about Visualization Pipelines, applicable to VisIt and ParaView

VisIt Visualization Tool

Introduction to Visualization with VTK and ParaView

MicroStrategy Desktop

Processing Data with rsmap3d Software Services Group Advanced Photon Source Argonne National Laboratory

Why are we teaching you VisIt?

Visualization with ParaView

Scientific Visualization with ParaView

DataPA OpenAnalytics End User Training

DiskPulse DISK CHANGE MONITOR

TIBCO Spotfire Business Author Essentials Quick Reference Guide. Table of contents:

Introduction to Paraview. H.D.Rajesh

Introduction... 1 Welcome Screen... 2 Map View Generating a map Map View Basic Map Features... 4

PyRy3D: a software tool for modeling of large macromolecular complexes MODELING OF STRUCTURES FOR LARGE MACROMOLECULAR COMPLEXES

How is EnSight Uniquely Suited to FLOW-3D Data?

CHAPTER FIVE RESULT ANALYSIS

Viewing and Troubleshooting Perfmon Logs

imc FAMOS 6.3 visualization signal analysis data processing test reporting Comprehensive data analysis and documentation imc productive testing

imc FAMOS 6.3 visualization signal analysis data processing test reporting Comprehensive data analysis and documentation imc productive testing

Paraview scripting. Raffaele Ponzini SuperComputing Applications and Innovation Department

Visualization and Post Processing of OpenFOAM results a Brie. a Brief Introduction to VTK

Analysis Programs DPDAK and DAWN

Tutorial 2 Online and offline Ship Visualization tool Table of Contents

Distributed Visualization Parallel Visualization Large data volumes

Visualizing molecular simulations

SonicWALL GMS Custom Reports

DiskBoss. File & Disk Manager. Version 2.0. Dec Flexense Ltd. info@flexense.com. File Integrity Monitor

InfiniteInsight 6.5 sp4

Visualization Plugin for ParaView

Top 10 Oracle SQL Developer Tips and Tricks

Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1

MicroStrategy Analytics Express User Guide

Visualization with ParaView. Greg Johnson

OpenFOAM postprocessing and advanced running options

LAMBDA CONSULTING GROUP Legendary Academy of Management & Business Development Advisories

Compute Cluster Server Lab 3: Debugging the parallel MPI programs in Microsoft Visual Studio 2005

Using SPSS, Chapter 2: Descriptive Statistics

Virto Pivot View for Microsoft SharePoint Release User and Installation Guide

VX Search File Search Solution. VX Search FILE SEARCH SOLUTION. User Manual. Version 8.2. Jan Flexense Ltd.

NaviCell Data Visualization Python API

Ovation Operator Workstation for Microsoft Windows Operating System Data Sheet

Reporting Manual. Prepared by. NUIT Support Center Northwestern University

Using Net2 Timesheet. Net2 AN1029. Timesheet software. Configuring Clocking In and Clocking Out readers

COGNOS 8 Business Intelligence

version 3.0 tutorial - Turbulent mixing in a T-junction with CFDSTUDY in SALOME contact: saturne-support@edf.fr

Applying a circular load. Immediate and consolidation settlement. Deformed contours. Query points and query lines. Graph query.

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

Gephi Tutorial Visualization

Material for tutorial. Twitter: prabhu_r. Slides: Demos:

CASA Analysis and Visualization

Excel Companion. (Profit Embedded PHD) User's Guide

Getting Started With SPSS

James Ahrens, Berk Geveci, Charles Law. Technical Report

Audit TM. The Security Auditing Component of. Out-of-the-Box

RVA: RESERVOIR VISUALIZATION AND ANALYSIS

Evaluator s Guide. PC-Duo Enterprise HelpDesk v5.0. Copyright 2006 Vector Networks Ltd and MetaQuest Software Inc. All rights reserved.

Integrated Sensor Analysis Tool (I-SAT )

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

CURRICULUM MAP. Web Design II Mr. Gault

Parallel Large-Scale Visualization

XCal-View user manual

Navigator Software. Contents 1. NAVIGATOR SOFTWARE 2. INSTALLATION 3. USING NAVIGATOR SOFTWARE 3.1 STARTING THE PROGRAM 3.


JustClust User Manual

SAS/GRAPH Network Visualization Workshop 2.1

Visualization of Semantic Windows with SciDB Integration

CE 504 Computational Hydrology Computational Environments and Tools Fritz R. Fiedler

Scientific data formats and visualization of large datasets

OECD.Stat Web Browser User Guide

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH:

Charts for SharePoint

LICENSE4J FLOATING LICENSE SERVER USER GUIDE

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices.

Using the ihistorian Excel Add-In

Integrated Open-Source Geophysical Processing and Visualization

Chapter 16. Using Dynamic Data Exchange (DDE)

Analyzing Network Servers. Disk Space Utilization Analysis. DiskBoss - Data Management Solution

Data Analysis and Statistical Software Workshop. Ted Kasha, B.S. Kimberly Galt, Pharm.D., Ph.D.(c) May 14, 2009

Consumption of OData Services of Open Items Analytics Dashboard using SAP Predictive Analysis

Team Members: Christopher Copper Philip Eittreim Jeremiah Jekich Andrew Reisdorph. Client: Brian Krzys

Sisense. Product Highlights.

Assignment 5: Visualization

Exploratory Climate Data Visualization and Analysis

Cassandra 2.0: Tutorial

Gephi Tutorial Quick Start

Advanced Visualization for Chemistry

ARIZONA DEPARTMENT OF TRANSPORTATION. Presented by Lonnie D. Hendrix, P.E. Assistant State Engineer, Maintenance

FreeForm Designer. Phone: Fax: POB 8792, Natanya, Israel Document2

Parallel Analysis and Visualization on Cray Compute Node Linux

64 Bits of MapInfo Pro!!! and the next BIG thing. March 2015

Instruction Manual. Applied Vision is available for download online at:

3D Data visualization with Mayavi

FreeFem++-cs, the FreeFem++ Graphical Interface

from Microsoft Office

Microsoft Office 2010: Access 2010, Excel 2010, Lync 2010 learning assets

Generating a Custom Bill of Materials

Transcription:

ParaView s Comparative Viewing, XY Plot, Spreadsheet View, Matrix View Dublin, March 2013 Jean M. Favre, CSCS

Motivational movie Supercomputing 2011 Movie Gallery Accepted at Supercomputing 11 Visualization Contest http://www.youtube.com/watch?v=b-xa4suurm&feature=youtu.be

Agenda 9:30 11:00 Start ParaView and show some demos. Do some exercises 11:30 13:00 Parallel and python usage. More exercises http://www.paraview.org/files/v3.98/paraviewdata-3.98.1.zip http://www.paraview.org/files/v3.98/paraviewdata-3.98.1.tar.gz 3

Quantitative and qualitative data visualization 13/5/2009

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 Use panning, zooming and reset camera buttons ValidPointMask array set to 0 if data is missing Can be done interactively, in real-time with the Auto- Accept button (View->Settings) Browse with the mouse over the line Select which fields to make visibile/invisible Exercise with naca.bin.case

Bart Chart Histogram (a vtktable) will open a Bar Chart View Use panning, zooming and reset camera buttons Can be saved as vtktable, or as CSV file Use SpreadSheet View to look at RowData

GeoPhysics example: Longitudinal average

Spreadsheet View Any dataset can be viewed in a Spreadsheet View Allows display of node-, cell-, field- and row-data Allows linked-selection Can be exported as CSV file Display can be reduced to Show only selected elements Allows sorting by column Exercise 1: Source->Wavelet Filters->PointData to CellData Select all cells above 230 Exercise 2: Use Edit->Find Data to do the same search (Manual page 108)

Comparative Viewing Compare, side-by-side, multiple visualization pipelines Open the 3D View (Comparative) Inspector Load file can.ex2

Plot Over Time Multiple points can be tracked over time (based on their ID) Make a selection Copy the Active Selection Apply Plotting is allowed for multiple points Produces a multiblock dataset

Parallel Coordinates View Points are shown in n-dimensional space Each vertical column allows subset selection http://en.wikipedia.org /wiki/ Parallel_coordinates Load vehicle_data.csv

Plot-Matrix View Open vehicle_data.csv 12

Summary http://paraview.org/wiki/paraview/displaying_data Plotting and Charting will use vtktables Comparative viewing is to be done with caution (or low-resolution data) Idem for plot over time Both are ideal candidates for batch-mode processing

Exercise: Naca dataset Load ${PARAVIEW_DATA _ROOT}/Data/ naca.bin.case Plot density and gradient along the curvilinear contour of the airfoil Export plot as PDF

ParaView Python Tools Dublin, March 2013 Jean M. Favre, CSCS

Outline 1.Tools, application scripting, python traces pvpython, pvserver parallel execution 2. Quantitative Analysis programmable filters, python calculator

ParaView tools paraview, pvbatch can run in a single or multi-cpu session 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. To keep interaction live, you might want to use lower-resolution data Important: http://paraview.org/wiki/paraview/environmentsetup

pvbatch 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 to customize an animation pvbatch can execute a hand-written python script, or reload a script generated with paraview, and save images to disk.

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->Load State pvbatch can reload the same state file with the commands: from paraview.simple import * () Connect (' servermanager.loadstate('/users/jfavre/state.pvsm

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->Run Script Try reloading lib/paraview-3.98/sitepackages/paraview/demos/demo1.py sph = Sphere() shr = Shrink() rep = Show() Render()

ColoredSphere (parallel) example from paraview.simple import * view = GetRenderView() sphere = Sphere() sphere.phiresolution = 100 pidscal = ProcessIdScalars(sphere) rep = Show(pidscal) nbprocs = servermanager.activeconnection.getnumberofdataparti tions() drange = [0, nbprocs-1]

ColoredSphere (parallel) example lt = MakeBlueToRedLT(drange[0], drange[1]) lt.numberoftablevalues = nbprocs rep.lookuptable = lt rep.colorattributetype = 'POINT_DATA' rep.colorarrayname = "ProcessId" bar = CreateScalarBar(LookupTable=lt, 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 mpirun n12 `which pvbatch` \ --use-offscreen-rendering \ coloredsphere.py

How to get started with Python commands? http://paraview.org/wiki/paraview/python_scripting Utilities/VTKPythonWrapping/servermanager.py Utilities/VTKPythonWrapping/simple.py Use Python Shell -> Trace Start trace, trace state, show/edit/save trace The traces are very verbose. Editing is recommended.

Look at data fields stored in the grid r = 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 k, v in pd.iteritems(): print k, v.getrange() # pd is a python dictionary

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 % (start+i*incr) ( 1 vtkpngwriter, view.writeimage(imgfile,

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 )

Execute a script for multiple files While running paraview, get the python interface. Find all files Tools-> Python Shell import glob, string ( glob.glob( /scratch/user/file*.dat files = () files.sort

Execute a script for multiple files How do we update the pipeline objects? must find the names of the objects to be modified () GetRenderView view = #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 (' FindSource('file.000.dat reader = # reader can now be updated reader.filename = files[i] () view.stillrender

Quantitative Analysis Calculator (page 90) Python Calculator (page 96) Programmable Source/Filter (page 87) Ref. ParaView 3.98 User Manual CSCS 2012 - Lorem ipsum dolor 31

Calculator filter Calculate derived quantities from existing attributes Use a free-form text expression Example: 5 * RTData if(condition,true_expres sion,false_expression) 32

Python Calculator filter Uses python and numpy Accepts multiple inputs. inputs[0], inputs[1], Can access the point or cell data using the.pointdata or.celldata qualifiers. Can access the coordinates array using the.points qualifier: inputs[0].pointdata[ Normals'] inputs[0].points[:,0] 33

Python Calculator filter Examples: Normals + 5 Normals + [1,2,3] velocity[:, 0] hstack([velocity_x, velocity_y, velocity_z]) 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 => use the programmable filter 34

Python Programmable Source/Filters Creates and transforms VTK grids Examples: Have a Python code to read data, and you may re-use it instead of writing a C++ reader. 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

Python Programmable Source/Filters In it simplest form, the input is copied to the output. It is a pass-thru filter With the Copy Arrays option, the output will have all of the input arrays Example: # create a Sphere Source and add normals = inputs[0].pointdata['normals'] output.pointdata.append(normals[:,0], "Normals_x")

Example of the use of numpy #get VTK objects pdi = self.getinputdataobject(0,0) pdo = self.getoutputdataobject(0) pdo.shallowcopy(pdi) #manipulate Python objects data0 = inputs[0].pointdata['density'] data1 = inputs[0].pointdata['energy'] output.pointdata.append(data1-data0, 'minus')

Example : create a grid and remap it to spherical space Python Prog. Source Python Prog. Filter Source code here http://www.paraview.org/pipermail/paraview /2010-August/018495.html from paraview.util import SetOutputWholeExtent SetOutputWholeExtent(self, [0, 29, 0, 19, 0, 19])

Example of the use of a python package import scipy from scipy import integrate And create a vtkpolydata object to view Google for source code with 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 in range(pd.getnumberofarrays()): table.addcolumn(pd.getarray(i))

Summary Python scripts are a much better representation of the pipeline than the older state files (*.pvsm) I recommend you learn at least the basics, to reload a given configuration, in a more portable manner Python is the only interface to run ParaView in batch mode