Changes between Version 4 and Version 5 of Tutorial/AdvancedParticleImagingVelocimetry


Ignore:
Timestamp:
May 4, 2014, 9:20:39 AM (10 years ago)
Author:
sommeria
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial/AdvancedParticleImagingVelocimetry

    v4 v5  
    11[[TracNav(Tutorial/TOC)]]
     2
    23= [wiki:Tutorial] / Advanced Particle Imaging Velocimetry =
    3 
    4 This example illustrates advanced procedures for particle Image Velocimetry (PIV), see ... for a first introduction to PIV.
     4This example illustrates advanced procedures for particle Image Velocimetry (PIV), see [#TutorialParticleImageVelocimetry] for a first introduction to PIV.
    55
    66== Visual check ==
    7 Launch the GUI uvmat and open an image in  /UVMAT_DEMO_FILES/CONVECTION/Dalsa1, for instance 'Dalsa1_100_1.png'. It represents a convection experiment in a box with rectangular vertical cross section, with a heated right hand vertical wall. A plume with small lateral extension is produced near this wall which is a source of difficulty for PIV.
    8 As ususal the first step is a visual observation of the particle motion. Zoom the image on the right hand side and press the button '''movie_pair''', to see the displacement from image index _100_1 to _100_2. We can compare the influence of time interval by selecting the j index pairs 1-2 (100 ms), 2-3 (200 ms) or 1-3 (300 ms). We can notice that the pair 1-3 is needed to clearly see the motion in the interior while it is too large for the displacement in the plume.  The smaller interval 1-2 is then appropriate.
     7Launch the GUI uvmat and open an image in  /UVMAT_DEMO_FILES/CONVECTION/Dalsa1, for instance 'Dalsa1_100_1.png'. It represents a convection experiment in a box with rectangular vertical cross section, with a heated right hand vertical wall. A plume with small lateral extension is produced near this wall which is a source of difficulty for PIV.  As ususal the first step is a visual observation of the particle motion. Zoom the image on the right hand side and press the button '''movie_pair''', to see the displacement from image index _100_1 to _100_2. We can compare the influence of time interval by selecting the j index pairs 1-2 (100 ms), 2-3 (200 ms) or 1-3 (300 ms). We can notice that the pair 1-3 is needed to clearly see the motion in the interior while it is too large for the displacement in the plume.  The smaller interval 1-2 is then appropriate.
    98
    109== Geometric calibration ==
    11 We know that the box width is 58.8 cm while the box height is 55.1 cm. This provides a simple method of calibration by pointing the four corners with the mouse. Open GeometryCalib by the upper bar menu Tools/geometric calibration. Activate the zoom, zoom on on the first corner, then desactivate the zoom to allow for mouse selection on the corner. Move on the other corners by the key board arrows and mark them with the mouse. Then you can see the image coordinates of the four points in the table of the GUI geometry_calib. Complement the table by the corresponding physical coordinates [0 0],[58.8 0],[58.8 55.1],[0 51.1] (choosing the lower left corner as coordinate origin).
    12 Then press APPLY with the simplest option 'rescale'. The quality is not excellent, with an error of about 3 pixels. The quality is improved by selecting the option 'linear' which accounts for a small rotation of the image with respect to the box (error about 1 pixel).
     10We know that the box width is 58.8 cm while the box height is 55.1 cm. This provides a simple method of calibration by pointing the four corners with the mouse. Open GeometryCalib by the upper bar menu Tools/geometric calibration. Activate the zoom, zoom on on the first corner, then desactivate the zoom to allow for mouse selection on the corner. Move on the other corners by the key board arrows and mark them with the mouse. Then you can see the image coordinates of the four points in the table of the GUI geometry_calib. Complement the table by the corresponding physical coordinates [0 0],[58.8 0],[58.8 55.1],[0 51.1] (choosing the lower left corner as coordinate origin). Then press APPLY with the simplest option 'rescale'. The quality is not excellent, with an error of about 3 pixels. The quality is improved by selecting the option 'linear' which accounts for a small rotation of the image with respect to the box (error about 1 pixel).
    1311
    1412== Create mask ==
    15 
    1613== Remove fixed background ==
    17 
    1814== Global PIV ==
    19 
    20 == PIV in two subregions ==
    21 
    22  The PIV computation is launched from the GUI 'civ', opened from uvmat by the upper bar command '''[RUN/PIV(CIV]'''. This GUI can be also directly opened by typing 'civ' in the Matlab command window, and the input  image file then opened by the upper bar command '''[Open/Browse]''', like in the GUI uvmat. The name CIV means Correlation Imaging Velocity to stress that the method relies on image correlations, which detect the displacement of image textures, not necessarily from particles.
     15== PIV in two subregions ==
     16  The PIV computation is launched from the GUI 'civ', opened from uvmat by the upper bar command '''[RUN/PIV(CIV]'''. This GUI can be also directly opened by typing 'civ' in the Matlab command window, and the input  image file then opened by the upper bar command '''[Open/Browse]''', like in the GUI uvmat. The name CIV means Correlation Imaging Velocity to stress that the method relies on image correlations, which detect the displacement of image textures, not necessarily from particles.
    2317
    2418The PIV operation depends on many parameters, but the default values proposed by the GUI provide a good first approach in many cases. Press '''[RUN] ''' to get the result. The button is then colored in grey until the computation is finished. The operation produces a  file with format netcdf, extension '''.nc''', in a subdirectory called ''''CIV' ''' by default. The file name ends with index string '_1-2' indicating that it results from images 1 and 2. The file name and its status is indicated in a new figure '''civ_status'''. Press the file name to open it with uvmat, or use the browser of '''uvmat'''.
     
    3630
    3731== Derived fields ==
    38 
    3932Other field representations are available, selected in the menu '''[Fields]''' at the top of the GUI. For instance the option 'u' provides a (false) color map of the x wise velocity component. A contour plot can be obtained instead of a color map by selecting the option 'contour' in the menu '''[ListContour]''' in the frame''' [Scalar] '''. Then select the contour interval, for instance 0.5. The result is shown in the following figure.  <doc145|center>
    4033
     
    4235
    4336== Superposing image and vectors ==
    44  It can be useful to visually superpose the images to the velocity field. This is done  by selecting the option 'image' in the popup menu '''[Fields_1]''', located just under the popup menu '''[Fields] ''' in the upper frame '''[Input]'''.  To remove the image, select the blank option in '''[Fields_1]''' .
     37  It can be useful to visually superpose the images to the velocity field. This is done  by selecting the option 'image' in the popup menu '''[Fields_1]''', located just under the popup menu '''[Fields] ''' in the upper frame '''[Input]'''.  To remove the image, select the blank option in '''[Fields_1]''' .
    4538
    4639Similarly, the velocity vectors can be superposed to the vorticity field, selecting '''[vort] ''' in '''[Fields_1]''' instead of '''[image '''.
    4740
    4841== Profiles ==
    49  The velocity profile along a line can be obtained by creating a line with the upper menu bar '''[Projection object/line]'''. Then press the left hand side mouse button and draw the line, keeping the button pressed. Release the button to stop the drawing.  The transverse and longitudinal velocity components along this line are then plotted in a new  figure '''view_field'''.
     42  The velocity profile along a line can be obtained by creating a line with the upper menu bar '''[Projection object/line]'''. Then press the left hand side mouse button and draw the line, keeping the button pressed. Release the button to stop the drawing.  The transverse and longitudinal velocity components along this line are then plotted in a new  figure '''view_field'''.
    5043
    5144== Histograms ==
    52  The global histograms of the displayed quantities (vector components  or image brightness) are available in the lower left windows. Histograms limited to a sub-region can be extracted by the menu bar tool '''[Projection object]''', selecting either ['''rectangle]''', '''[ellipse]''' or '''[polygon]''' to define the sub-region. Then draw the contour with the mouse, like for line profiles.
     45  The global histograms of the displayed quantities (vector components  or image brightness) are available in the lower left windows. Histograms limited to a sub-region can be extracted by the menu bar tool '''[Projection object]''', selecting either ['''rectangle]''', '''[ellipse]''' or '''[polygon]''' to define the sub-region. Then draw the contour with the mouse, like for line profiles.