OpenPIV examples that you can execute in your browser

#OpenPIV-examples-that-you-can-execute-in-your-browser

Thanks to the great service of mybinder.org

Import what is necessary from OpenPIV

#Import-what-is-necessary-from-OpenPIV

Read a pair of PIV images

#Read-a-pair-of-PIV-images

Show them using matplotlib

#Show-them-using-matplotlib
Loading output library...
Loading output library...

Define the PIV analysis parameters

#Define-the-PIV-analysis-parameters
  • Size of the interrogation window in frame A (winsize),
  • Size of the search window in frame B (searchsize is larger or equal to winsize),
  • overlap between the neighbouring windows (overlap),
  • time interval of the PIV recording (@@0@@)
  • type of the peak quality (signal-to-noise ratio)

Run the OpenPIV (fast code, precompiled in Cython)

#Run-the-OpenPIV-(fast-code,-precompiled-in-Cython)

Get a list of coordinates for the vector field

#Get-a-list-of-coordinates-for-the-vector-field

Clean the peaks that are below a quality threshold

#Clean-the-peaks-that-are-below-a-quality-threshold

Replace those that are masked as bad vectors with local interpolation

#Replace-those-that-are-masked-as-bad-vectors-with-local-interpolation

Scale the results from pix/dt to mm/sec

#Scale-the-results-from-pix/dt-to-mm/sec

store the result in a text file

#store-the-result-in-a-text-file

plot the data stored in the text file

#plot-the-data-stored-in-the-text-file
Loading output library...

Another example

#Another-example

Use any pair of images that you can access via URL

#Use-any-pair-of-images-that-you-can-access-via-URL

For instance we can use images from PIV Challenge http://www.pivchallenge.org/

Loading output library...
Loading output library...
Loading output library...
Loading output library...

How to use IpyWidgets to get an interactive GUI

#How-to-use-IpyWidgets-to-get-an-interactive-GUI

Import ipywidgets

#Import-ipywidgets

read more about those on https://ipywidgets.readthedocs.io/en/stable/index.html

Press Run interact to get PIV output for the values in the list

#Press-Run-interact-to-get-PIV-output-for-the-values-in-the-list
Loading output library...
Loading output library...

Let's say you want this GIF motion from the excellent JPIV website

#Let's-say-you-want-this-GIF-motion-from-the-excellent-JPIV-website
Loading output library...
Loading output library...
Loading output library...
Loading output library...