visualisation for wsi · 2020. 5. 28. · visualisation in cfd • used to verify simulation...
TRANSCRIPT
![Page 1: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/1.jpg)
Visualisation for WSIRon Fowler
Visualisation GroupSTFC Scientific Computing Department
![Page 2: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/2.jpg)
Outline
• Visualisation and software engineering
• The SoFT project and STFC facilities
• Simple ParaView examples
• Running ParaView remotely and in parallel
• In-situ visualisation
![Page 3: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/3.jpg)
Visualisation in CFD
• Used to verify simulation results
– Are the simulation results correct?
– “Integration testing” level.
• To understand simulation results e.g.
– where the largest forces occur on a structure?
• Monitor long running simulations
– Is the simulation running correctly?
– Should it be aborted?
– “Computational steering”.
![Page 4: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/4.jpg)
Example: wave tank simulation: focused wave
• Hildebrant & Sriram 2014
• Used to compare simulation
and experiment.
• Simulation gives insight to
flow.
![Page 5: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/5.jpg)
Using PyFoam to monitor OF simulation
• Simple dynamic
monitor of run
• Spot errors,
estimate finish
• Job stop/restart if
needed
![Page 6: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/6.jpg)
The SOfT Project
• Project members: MMU, UoP & STFC
• Developing software virtual wave tank environment
• Combining NLFP, incompressible and full NS solvers
• Using parallel HPC and high end visualisation
![Page 7: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/7.jpg)
STFC and Hartree facilities
• Hartree HPC: Blue joule,
dataPlex, phase 2 systems
• Fast parallel file system
• High speed connections to
visualisation rooms
• Large memory visualisation
nodes.
![Page 8: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/8.jpg)
Facilities: 3D stereo and head tracking
• 3D stereo active glasses for room display.
• Head tracking allows immersive VR.
• ParaView supports 3D and immersive displays.
• Oculus rift etc. may be supported in future.
![Page 9: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/9.jpg)
Visualisation tools for CFD
• Commercial tools
– EnSight
– FieldView
– TecPlot
– Matlab
– Avizo Wind
– Etc.
• Open source tools
– ParaView
– VisIT
– VTK
– OpenDX
– SciPython/matplotlib
– Mayavi
![Page 10: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/10.jpg)
ParaView
• Open Source
– Support via KitWare/US
• Readers: 70+:
– OpenFOAM, VTK, EnSight, Fluent, NetCFD, TecPlot…
• Range of filters:
– Isosurfaces, vectors, streamlines, volume vis., derived data, mesh quality
• Animation and video
– To screen and file
• Parallel/remote render
– HPC rendering
• In-situ visualisation
– Catalyst allows visualisation in simulation
![Page 11: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/11.jpg)
BASIC USE OF PARAVIEW
![Page 12: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/12.jpg)
2D Dam break in ParaView & VisIT
![Page 13: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/13.jpg)
![Page 14: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/14.jpg)
Camera animation in ParaView
![Page 15: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/15.jpg)
Wave tank simulation
![Page 16: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/16.jpg)
![Page 17: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/17.jpg)
![Page 18: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/18.jpg)
![Page 19: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/19.jpg)
![Page 20: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/20.jpg)
Using ParaView remotely
• Why remote?
– Focused wave “coarse”: 52 Gbytes
– 2^3 mesh refinement: 416 Gbytes
– 4^3 mesh refinement: 3328 Gbytes
• Too large for local machines
– Need parallel file system, large memory
– Remote rendering possible
– Ideally on same HPC system as simulation
![Page 21: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/21.jpg)
ParaView on HPC
• Simple rendering:
on client
• Heavy rendering:
on server – needs
graphics cards,
X11 or many
nodes (OSMesa)
![Page 22: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/22.jpg)
Remote visualisation: Hartree
• Hartree HPC visualisation nodes:
– 64 Gbytes, 32 cores
– 2 Nvidia Quadro 5000 cards
– Mount parallel file system
• Access to pvserver via ssh:
– Can use parallel readers (MPI)
– User access to remote X11
server for remote rendering
• Examples used client-server
ParaView to desktop
PV client
pvservers (MPI)
ssh
![Page 23: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/23.jpg)
ParaView Catalyst
• Integrate visualisation
into simulation
– Full data dump expensive, slow, large
– Visualisation small, e.g. isosurface << full data
– Add adaptor to code
– Define visualisation as python script
![Page 24: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/24.jpg)
ParaView Catalyst
• Advantages:
– Reduce output data
– Visualisation as
simulation proceeds
– PV scripting for
visualisation pipeline
– Support for
Code_Saturne
• Disadvantages:
– Need adaptor (no OF)
– Define visual pipeline
in advance
– Increase size of HPC
job
![Page 25: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •](https://reader035.vdocuments.us/reader035/viewer/2022062510/61482e1fcee6357ef9252fb5/html5/thumbnails/25.jpg)