Beruflich Dokumente
Kultur Dokumente
ParaView
Visualization Technology Workshop
SuperComputing 20014
November 17, 2014
Bill Sherman
shermanw@iu.edu
Advanced Visualization Lab
Indiana University
The Visualization Process
The Visualization Process
Visualization dichotomy
• Interactive:
• Explorative
• Immediate feedback
• Performance constraints
• Batch:
• Pre-determined
• Big-data / big-processing vs.
• HPC-ready
bigred2%
qsub
render-‐data.pbs
Visualization dichotomy
Visualization process
• Batch vs. Interactive
• Interactive è Batch
• Interactive:
• Explore
• Reduced data
• Batch:
• Guided by exploration then
• Full data / high-res
bigred2%
qsub
render-‐data.pbs
What is ParaView?
Multi-block
Hierarchical Adaptive
Mesh Refinement
(AMR)
Hierarchical Uniform
Polygonal Unstructured Grid AMR
(vtkPolyData) (vtkUnstructuredGrid) Octree
Supported Data Types
• ParaView
Data
(.pvd)
• Dyna3D(.dyn)
• Miranda
(.mir,
.raw)
• SLAC
netCDF
par>cle
data
• VTK
(.vtp,
.vtu,
.v>,
.vts,
.vtr)
• EnSight
(.case,
.sos)
• Mul>level
3d
Plasma
(.m3d,
.h5)
• Silo
(.silo,
.pdb)
• VTK
Legacy
(.vtk)
• Enzo
boundary
and
hierarchy
• NASTRAN
(.nas,
.f06)
• Spheral
(.spheral,
.sv)
• VTK
Mul>
Block
• ExodusII
(.g,
.e,
.exe,
.ex2,
.ex2v..,
etc)
• Nek5000
Files
• SpyPlot
CTH
(.vtm,.vtmb,.vtmg,.vthd,.vthb)
• ExtrudedVol
(.exvol)
• Nrrd
Raw
Image
(.nrrd,
.nhdr)
• Spy
Plot
(.case)
• Par>>oned
VTK
• FVCOM
(MTMD,
MTSD,
Par>cle,
• OpenFOAM
Files
(.foam)
• Stereo
Lithography
(.stl)
(.pvtu,
.pv>,
.pvts,
.pvtr)
STSD)
• PATRAN
(.neu)
• TFT
Files
• ADAPT
(.nc,
.cdf,
.elev,
.ncd)
• Facet
Polygonal
Data
• PFLOTRAN
(.h5)
• TIFF
Image
Files
• ANALYZE
(.img,
.hdr)
• Flash
mul>block
files
• PLOT2D
(.p2d)
• TSurf
Files
• ANSYS
(.inp)
• Fluent
Case
Files
(.cas)
• PLOT3D
(.xyz,
.q,
.x,
.vp3d)
• Tecplot
ASCII
(.tec,
.tp)
• AVS
UCD
(.inp)
• GGCM
(.3df,
.mer)
• PLY
Polygonal
File
Format
• Tecplot
Binary
(.plt)
• BOV
(.bov)
• GTC
(.h5)
• PNG
Image
Files
• Tetrad
(.hdf5,
.h5)
• BYU
(.g)
• GULP
(.trg)
• POP
Ocean
Files
• UNIC
(.h5)
• CCSM
MTSD
(.nc,
.cdf,
.elev,
.ncd)
• Gadget
(.gadget)
• ParaDIS
Files
• VASP
CHGCA
(.CHG)
• CCSM
STSD
(.nc,
.cdf,
.elev,
.ncd)
• Gaussian
Cube
File
(.cube)
• Phasta
Files
(.pht)
• VASP
OUT
(.OUT)
• CEAucd
(.ucd,
.inp)
• JPG
Image
(.jpg,
.jpeg)
• Pixie
Files
(.h5)
• VASP
POSTCAR
(.POS)
• CMAT
(.cmat)
• LAMPPS
Dump
(.dump)
• ProSTAR
(.cel,
.vrt)
• VPIC
(.vpc)
• CTRL
(.ctrl)
• LAMPPS
Structure
Files
• Protein
Data
Bank
(.pdb,
.ent,
.pdb)
• VRML
(.wrl)
• Chombo
(.hdf5,
.h5)
• LODI
(.nc,
.cdf,
.elev,
.ncd)
• Raw
Image
Files
• Velodyne
(.vld,
.rst)
• Claw
(.claw)
• LODI
Par>cle
(.nc,
.cdf,
.elev,
.ncd)
• Raw
NRRD
image
files
(.nrrd)
• VizSchema
(.h5,
.vsh5)
• Comma
Separated
Values
(.csv)
• LS-‐DYNA
(.k,
.lsdyna,
.d3plot,
d3plot)
• SAMRAI
(.samrai)
• Wavefront
Polygonal
Data
(.obj)
• Cosmology
Files
• M3DCl
(.h5)
• SAR
(.SAR,
.sar)
• WindBlade
(.wind)
(.cosmo,
.gadget2)
• MFIX
Unstructred
Grid
(.RES)
• SAS
(.sasgeom,
.sas,
.sasdata)
• XDMF
and
hdf5
(.xmf,
.xdmf)
• Curve2D
(.curve,
.ultra,
.ult,
.u)
• MM5
(.mm5)
• SESAME
Tables
• XMol
Molecule
• DDCMD
(.ddcmd)
• MPAS
NetCDF
(.nc)
• SLAC
netCDF
mesh
and
mode
data
• Digital
Eleva>on
Map
(.dem)
• Meta
Image
(.mhd,
.mha)
Basic User Interface
Menu Bar
Toolbars
Pipeline Browser
Object Inspector
3D View
Geometry Representations
Calculator Glyph
Extract
Subset
Filters Menu
Multiple simultaneous data views:
ParaView usage at Indiana University
• Three methods:
• start_cue(self)
• tick(self)
• end_cue(self)
Animated Python script “Cue”
def start_cue(self):
print 'Animation starting'
print 'NumberOfFrames = ' + str(scene.NumberOfFrames)
def tick(self):
i = int(scene.TimeKeeper.Time)
print "time is " + str(i)
view.ViewTime = i
scene.AnimationTime = i
Render()
def end_cue(self):
print 'Animation ending'
Batch Animations with Python script
def tick(self):
i = int(scene.TimeKeeper.Time)
print "time is " + str(i)
view.ViewTime = i
scene.AnimationTime = i
Render()
def end_cue(self):
print 'Animation ending'
""”
scene.Cues.append(PythonAnimationCue1)
Batch Animations with Python script (cont)
Tweak and Render
# Make some tweaks to the visualization
sphere=FindSource('Glyph5').GlyphType
sphere.PhiResolution=9
sphere.ThetaResolution=9
• 2D vs. 3D
• Camera control
• Normalized time
• Start at the beginning
• Rendering speed
2D vs. 3D
• Crude solution …
Camera Control: rendering camera data
• Bill’s workaround
• vim & vimscript
Start at the beginning
• ONLY!