580 likes | 785 Views
Tutorial / Practice Session. Randy Hudson hudson@mcs.anl.gov Argonne National Laboratory Flash Center, University of Chicago. Tutorial / practice. Sample dataset Tutorial: ParaView 2.4.4. Sample dataset. 3d Rayleigh-Taylor instability Scalar data set Vector data set
E N D
Tutorial / Practice Session Randy Hudson hudson@mcs.anl.gov Argonne National Laboratory Flash Center, University of Chicago
Tutorial / practice • Sample dataset • Tutorial: ParaView 2.4.4
Sample dataset • 3d Rayleigh-Taylor instability • Scalar data set • Vector data set • Components as scalars
ParaView • For this talk: single, local process • Often in practice: client-server mode • Built upon VTK • VTK is built upon OpenGL
ParaView • About • Using
About ParaView • Free, open-source • Documentation • Features • Architectures • Support
ParaView: documentation • Book • URL: http://www.kitware.com/products/paraviewguide.html • Current version: 2.4 • $76 • Tutorials • How to extend ParaView • User and developer guides • Wiki • http://paraview.org/Wiki/ParaView • Can be helpful
ParaView: features • 2d & 3d • Meshes • Structured & unstructured • Directly: Paramesh-like AMR • Regular grids • Client-server…if you want • Data processing, rendering, UI can all be on different machines • Rendering: parallel-remote or singular-local, as needed or demanded • Also singular and local • Everything local • Rendering done by whatever graphics hardware is available on client
ParaView: architectures • Windows • Linux - x86 • OSX • Or, try building from source
ParaView: support • Mailing list • ParaView users: paraview@paraview.org • URL: http://public.kitware.com/mailman/listinfo/paraview • Archived at http://public.kitware.com/pipermail/paraview/ • Searchable at http://www.kitware.com/search.html
ParaView • Starting ParaView • Settings • Opening files • Reading data • Visualizing data • Colormapping • Quantitative analysis • Writing output • Client-server
Starting ParaView (GUI) • OSX, Linux, Unix • Set PATH to paraview directory • Run paraview (unless client-server) where you want • However • ParaView usually remembers its last directory • ParaView has failed to find init.tcl if I start it just anywhere • Windows • Click on ParaView icon • Non-GUI alternate: Tcl batch scripts
Some settings • General • My recommendations (what works for me) • Annotation • Camera • Application settings • Keyframe animation
General • Menu: View 3D View Properties • Generaltab
General • General panel • I recommend beginning with these settings. • I usually get better performance • Caveat: your experience may vary
Annotation • Menu: View 3D View Properties • Annotatetab
Camera • Menu: View 3D View Properties • Cameratab
Application settings • Menu: View Application Settings
Keyframe animation • Menu: View Keyframe Animation
Opening files - with extension • Menu: File Open file … • In Open ParaView File panel • Choose directory • Double-click file name
Opening files - no extension • Menu: File Open file … • In Open ParaView File panel • Choose directory • Choose a FLASH file type • Double-click file name
Opening files - no extension • InOpen Error panel • Click OK button • InOpen Data With… panel • Double-click the FLASH file type
Opening files - note • ParaView 2.4.4 does not read FITS files. One might read a FITS file in VisIt, export the database to a format ParaView can read (VTK, e.g.) and read that. • It might be that another “binary + header” format could be used for the data…perhaps the “brick of values” (BOV) format.
Reading data • Select variables • Click on Accept
Filters Transformations applied to data sets Data sets Input files or the output of filters Visualizing data
Visualizing data • Scalar data • Cut Plane • Isosurface • Colored by same variable • Colored by other variable
Scalar data - cut plane • Click cut plane button • Select plane settings • Click Accept
Click Display tab Select variable Check Scalar bar and Cube Axes Scalar data - cut plane
Scalar data - isosurface • Click contour button • Select variable • Select contour settings • Click Accept
Click Display tab Select same variable Check Scalar bar and Cube Axes Isosurface - same variable
Click Display tab Select different variable Check Scalar bar and Cube Axes Isosurface -other variable
Visualizing data • Vector data • (Define vector from input scalars) • Glyphs • Streamlines • As lines • As tubes
Menu: Filter Calculator Define <vectorvarname> with expression ClickAccept Vector data - define vector
Menu: Filter Glyph Select glyph settings Click Accept Vector data - glyphs
Menu: Filter Stream Tracer Select streamline settings Click Accept Streamlines - as lines
Streamlines - as tubes • Create streamlines as lines • Menu: Filter Tube
Colormapping • You can change the mapping of the data to the given color table, but can only change the table in limited ways
Data analysis • Probe filter: interpolate data to world coordinates • Pick filter: nearest data cell or point • Data analyis filter • Samples at points • Probe filter: world point • Pick filter: nearest data set point • Samples in cells • Pick filter: nearest data set cell • Samples along lines • Probe filter: world points
Data analysis - Probe filter • Point • Menu: Filter Probe • SelectPointin Probe Object panel • Center the point • ClickAccept • Data appears below • (Can also plot point)
Data analysis - Probe filter • Line • Menu: Filter Probe • SelectLinein Probe Object panel • Place the line • ClickShow X-Y Plot • ClickAccept • Data appears in plot
Data analysis - Pick filter • Cell • Menu: Filter Pick • Select Cell • SelectWorld Pointin Pick Method panel • Center the sample point • ClickAccept • Data appears below • (Can also plot point)
Data analysis - Pick filter • Point • Menu: Filter Pick • Select Point • SelectWorld Pointin Pick Method panel • Center the sample point • ClickAccept • Data appears below • (Can also plot point)
Data analysis • Alternate placement of probe • Move mouse pointer over data (the isosurface, here) • Press P key
Data analysis filter • Combines Pick & Probe filters
Mesh analysis • Information panel • Memory use • Number of graphical elements • Data ranges
Mesh analysis • Filters • Curvature • Mesh quality