in situ data analysis and visualization
play

In-Situ Data Analysis and Visualization: ParaView, Calalyst and - PowerPoint PPT Presentation

In-Situ Data Analysis and Visualization: ParaView, Calalyst and VTK-m GTC, San Jose, CA March, 2015 Robert Maynard Marcus D. Hanwell 1 Agenda Introduction to ParaView Catalyst Run example Catalyst Script Creating your own Catalyst


  1. In-Situ Data Analysis and Visualization: ParaView, Calalyst and VTK-m GTC, San Jose, CA March, 2015 Robert Maynard Marcus D. Hanwell 1

  2. Agenda • Introduction to ParaView Catalyst • Run example Catalyst Script • Creating your own Catalyst Script • Rendering grid and field information from live simulation 2

  3. Going From Data to Visualization 3

  4. The Visualization Pipeline • A sequence of algorithms that operate on data objects to generate geometry Filter Mapper Actor Source Render on Data Data screen Mapper Actor Filter Data Data 4

  5. Data Types Uniform Rectilinear Non-Uniform Rectilinear Curvilinear (vtkImageData) (vtkRectilinearData) (vtkStructuredData) Multi-block Hierarchical Adaptive Mesh Refinement (AMR) Polygonal Unstructured Grid Hierarchical Uniform (vtkPolyData) (vtkUnstructuredGrid) AMR

  6. Why In Situ ? Need a supercomputer to analyze results from a hero run 2 orders of magnitude difference between each level 6

  7. Access to More Data Dump Times Post-processing In situ processing CTH (Sandia) simulation with roughly equal data stored at simulation time Reflections and shadows added in post-processing for both examples 7

  8. Quick and Easy Run-Time Checks MPAS-O (LANL) simulation

  9. Faster Time to Solution CTH (Sandia) simulations comparing different workflows 9

  10. Small Run-Time Overhead 25 data generation annotations write render 20 cell to point contour Seconds per Time Step 15 10 5 0 16 32 64 128 256 512 1024 2048 Cores 10 XRAGE (LANL) simulation

  11. Reduced File IO Costs Time of Type of File Size per File Size per 1000 time Time per File to Processing steps Write at Simulation Post Restart 1,300 MB 1,300,000 MB 1-20 seconds Post Ensight 200 MB 200,000 MB > 10 seconds Dump In Situ PNG .25 MB 250 MB < 1 second XRAGE (LANL) simulation 11

  12. What is ParaView Catalyst? 12

  13. ParaView Catalyst Architecture ParaView Catalyst Python Wrappings ParaView Server Parallel Abstractions and Controls VTK Core Visualization Algorithms 13

  14. ParaView User Interface Menu Bar Toolbars Pipeline Browser Properties Panel Advanced Toggle 3D View

  15. Geometry Representations Toggle Color Reset Scalar Mapped Vector Legend Range Variable Component Representation Edit Custom Scalar Colors Range Points Wireframe Surface Surface Volume with Edges

  16. Running Simulation with Catalyst Simulation Simulation Separate MPI Disk Disk Storage Storage Visualization Visualization In Situ In Transit 16

  17. Running Simulation with Catalyst Today we are going to be running In Situ and interactively with Catalyst Simulation Visualization 17

  18. User Perspective # Create the reader and set the filename. Simulation reader = sm.sources.Reader(FileNames=path) Augmented view = sm.CreateRenderView() repr = sm.CreateRepresentation(reader, view) script in reader.UpdatePipeline() input deck. Script Export dataInfo = reader.GetDataInformation() pinfo = dataInfo.GetPointDataInformation() arrayInfo = pInfo.GetArrayInformation( "displacement9") Output Processed Data Polygonal Output Rendered Images Series Data with Field Data 18

  19. GETTING READY TO RUN INTERACTIVELY 19

  20. Two Ways for Live In Situ Analysis and Visualization • Without blocking – Simulation proceeds while the user interacts with the data from a specific time step – “At scale” mode • With blocking (new in ParaView 4.2) – Simulation is blocked while the user interacts with the data – “Debugging” mode • Can switch between interactive and batch during run as well as disconnecting from the run 20

  21. Getting Ready to Run Interactively • From the command shell run – “ ~/insitu_demo/ demo1.sh” • This runs a fake simulation with a prebuilt catalyst pipeline 21

  22. Run Interactively Load ParaView and connect to the simulation 22

  23. Run Interactively Enable Extraction of Contour Visualize the Contour 23

  24. Run Interactively 24

  25. CREATING CATALYST OUTPUT 25

  26. Creating Catalyst Output • ParaView GUI plugin to create Python scripts • Developer generated “canned” scripts – See ParaView Catalyst User’s Guide 26

  27. Create Python Scripts from ParaView Load the Catalyst script generator GUI plugin 27

  28. Create Python Scripts from ParaView Load File ~/Demo2/filename_20_0.vti Create Contour Filter 28

  29. Create Python Scripts from ParaView Using the Writers menu add a writer 29

  30. Create Python Scripts from ParaView 1. Load the Catalyst script generator GUI plugin 2. Load File 3. Create Contour Filter 4. Using the Writers menu add a writer 30

  31. Export Catalyst Live Script Using the CoProcessing menu start the export process 31

  32. Export Catalyst Live Script 1. Using the CoProcessing menu start the export process 2. Select ‘filename_20_0.pvti’ as the simulation inputs 3. Select Live Visualization 32

  33. Other Catalyst Export Options • Options: – Live visualization – Output to Cinema – Output Views 33

  34. Other Catalyst Export Options • Output Views – Image Type – File Name – Write Frequency – Magnification – Fit to Screen – %t for timestep 34

  35. Other Catalyst Export Options • Output to Cinema – Static vs Spherical Camera Θ φ 35

  36. GETTING READY TO RUN OUR SCRIPT 36

  37. Getting Ready to Run Interactively • run ~/insitu_demo/demo2.sh We are running our premade python script, if you want to run the version you made change driver_path variable in demo2.sh 37

  38. Run Interactively Load ParaView and connect to the simulation 38

  39. Run Interactively ( Update with new Images) Enable Extraction of Contour Visualize the Contour 39

  40. Developers Section Overview • Most work is done in creating the adaptor between the simulation code and Catalyst • Small footprint in main simulation code base • Needs to be efficient both in memory and computationally • Fortran, C++ and Python examples : – https://github.com/Kitware/ParaViewCatalystExampleCode 40

  41. Interaction Overview • Simulation has separate data structures from VTK data structures • Use an adaptor to bridge the gap – Try to reuse existing memory – Also responsible for other interactions between simulation code and Catalyst Solver Adaptor 41

  42. Developer Perspective Simulation Adaptor I NITIALIZE () I NITIALIZE (in pipelines ) A DD P IPELINE (in pipeline ) C O P ROCESS (in time , in grid, R EQUEST D ATA D ESCRIPTION (in time , in fields ) out fields ) F INALIZE () C O P ROCESS (in vtkDataSet ) F INALIZE () 42

  43. Online Help • ParaView Catalyst User’s Guide: – http://paraview.org/Wiki/images/4/48/CatalystUsersGuide.pdf • Email list: – paraview@paraview.org • Doxygen: – http://www.vtk.org/doc/nightly/html/classes.html – http://www.paraview.org/ParaView3/Doc/Nightly/html/classes.html • Sphinx: – http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/index.html • Websites: – http://www.paraview.org – http://www.paraview.org/in-situ/ • Examples: – https://github.com/Kitware/ParaViewCatalystExampleCode 43

  44. VTK-m Project Goals • A single place for the visualization community to collaborate, contribute, and leverage massively threaded algorithms. • Reduce the challenges of writing highly concurrent algorithms by using data parallel algorithms

  45. VTK-m Architecture • Combines strengths of multiple projects: – EAVL, Oak Ridge National Laboratory – DAX, Sandia National Laboratory – PISTON, Los Alamos National Laboratory Filters Post Processing DataModel Worklets In-Situ Data Parallel Algorithms Execution Arrays

  46. VTK-m Framework Control Execution Environment Environment Device Grid Topology Cell Operations Worklet Array Handle Field Operations Adapter Invoke Basic Math Allocate Make Cells Transfer Schedule Sort … cont exec

  47. VTK-m Arbitrary Composition • VTK-m allows clients to access different memory layouts through the Array Handle and Dynamic Array Handle. – Allows for efficient in-situ integration – Allows for reduced data transfer Control Environment Execution Environment Transfer Control Environment Execution Environment

  48. struct Sine: public vtkm::worklet::WorkletMapField { typedef void ControlSignature(FieldIn<>, FieldOut<>); typedef _2 ExecutionSignature(_1); template<typename T> VTKM_EXEC_EXPORT T operator()(T x) const { return vtkm::math::Sin(x); } };

  49. struct Sine: public vtkm::worklet::WorkletMapField { typedef void ControlSignature(FieldIn<>, FieldOut<>); typedef _2 ExecutionSignature(_1); template<typename T> VTKM_EXEC_EXPORT T operator()(T x) const { return vtkm::math::Sin(x); } };

  50. struct Sine: public vtkm::worklet::WorkletMapField { typedef void ControlSignature(FieldIn<>, FieldOut<>); typedef _2 ExecutionSignature(_1); template<typename T> VTKM_EXEC_EXPORT T operator()(T x) const { return vtkm::math::Sin(x); } };

  51. struct Sine: public vtkm::worklet::WorkletMapField { typedef void ControlSignature(FieldIn<>, FieldOut<>); typedef _2 ExecutionSignature(_1); template<typename T> VTKM_EXEC_EXPORT T operator()(T x) const { return vtkm::math::Sin(x); } };

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend