visualisation for wsi · 2020. 5. 28. · visualisation in cfd • used to verify simulation...

25
Visualisation for WSI Ron Fowler Visualisation Group STFC Scientific Computing Department

Upload: others

Post on 30-Aug-2021

6 views

Category:

Documents


0 download

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. •

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. •

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. •

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. •

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. •

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. •

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. •

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. •

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. •

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. •

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. •

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. •

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. •
Page 14: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •

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. •

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. •
Page 17: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •
Page 18: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •
Page 19: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •
Page 20: Visualisation for WSI · 2020. 5. 28. · Visualisation in CFD • Used to verify simulation results – Are the simulation results correct? – “Integration testing” level. •

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. •

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. •

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. •

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. •

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. •