fluidimage.postproc.piv#

PIV post-processing (fluidimage.postproc.piv)#

fluidimage.postproc.piv.get_grid_pixel_from_piv_file(path, index_pass=-1)[source]#

Recompute 1d arrays containing the approximate positions of the vectors

Useful to compute a grid on which we can interpolate the displacement fields.

Parameters:
path: str

Path of a PIV file.

index_pass: int

Index of the pass

Returns:
xs1d: np.ndarray

Indices (2nd, direction “x”) of the pixel in the image

ys1d: np.ndarray

Indices (1st, direction “y”) of the pixel in the image

fluidimage.postproc.piv.get_grid_pixel(params, shape_images, index_pass=-1)[source]#

Recompute 1d arrays containing the approximate positions of the vectors

Useful to compute a grid on which we can interpolate the displacement fields.

Parameters:
params: fluiddyn.util.paramcontainer.ParamContainer

Parameters for the class fluidimage.works.piv.multipass.WorkPIV

shape_images: sequence

Shape of the images

index_pass: int

Index of the pass

Returns:
xs1d: np.ndarray

Indices (2nd, direction “x”) of the pixel in the image

ys1d: np.ndarray

Indices (1st, direction “y”) of the pixel in the image

class fluidimage.postproc.piv.PIV2d(x, y, z, vx, vy, vz=nan, namevx='vx', namevy='vy', namevz='vz', unitvx='?', unitvy='?', unitvz='?', namex='x', namey='y', namez='z', unitx='?', unity='?', unitz='?', name='Fluidimage_field', history=['fluidimage'], params: ParamContainer | None = None)[source]#

Bases: VectorFieldOnGrid

class fluidimage.postproc.piv.ArrayPIV(fields=None)[source]#

Bases: ArrayOfVectorFieldsOnGrid

Array of PIV fields on a regular grid.

Functions

get_grid_pixel(params, shape_images[, ...])

Recompute 1d arrays containing the approximate positions of the vectors

get_grid_pixel_from_piv_file(path[, index_pass])

Recompute 1d arrays containing the approximate positions of the vectors

Classes

ArrayPIV([fields])

Array of PIV fields on a regular grid.

PIV2d(x, y, z, vx, vy[, vz, namevx, namevy, ...])