This repository contains several pieces of pvpython scripts. pvpython is a Paraview python client used to access all kinds of features in Paraview through python scripts.
The two scripts have the same function, but testScript4.py
is valid for Paraview-4.1.0, and testScript5.py
for Paraview-5.1.0.
Functions are listed below:
- Read a 'xxx.foam' with Paraview's OpenFOAMReader
- Make a slice, and then use 'Glyph' fliter on the slice
- Call 'Surface Vectors' filter on the slice to make a Surface Vector source named as 'SurfaceVector'
- Call 'Mask Points' filter on the 'SurfaceVector' to make a Mask Points source named as 'MaskPoint'
- Call the 'Stream Tracer With Custom Source' filter, with the 'SurfaceVector' as Input, and 'MaskPoint' as seed point. This will generate stream line on the slice made at step 2
- Make the stream line visible, and save a screenshot of the view.
- Make the slice and glyph visible, and save a 11 frame animation. The camera of the view circles around the y axis.