fluidimage.postproc.vector_field#
Post-processing of vector fields (fluidimage.postproc.vector_field
)#
- class fluidimage.postproc.vector_field.VectorFieldOnGrid(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:
object
PIV field on a regular grid.
- Parameters:
- xnp.array (1d)
- ynp.array (1d)
- znumber or np.array (1d)
- vxnp.array (2d)
- vynp.array (2d)
- vznp.array (2d), optional
- namevxstr, ‘vx’
- namevystr, ‘vy’
- namevzstr, ‘vz’
- unitvxstr, ‘?’
- unitvystr, ‘?’
- unitvzstr, ‘?’
- namexstr, ‘x’
- nameystr, ‘y’
- namezstr, ‘z’
- unitxstr, ‘?’
- unitystr, ‘?’
- unitzstr, ‘?’
- property shape#
Shape of the field (
(nz, ny, nx)
or(ny, nx)
)
- classmethod from_file(path, load_params=False)[source]#
Create a PIV2d object from a file
It can be a file representing a LightPIVResults or a PIV2d object.
- display(scale=1, background=None, ax=None, step=None, skip=None)[source]#
Display the vector field
- Parameters:
- scalenumber, default=1
- backgroundunused
- axMatplotlib axes
- stepint, optional
- skiptuple of 2 slices, optional
- class fluidimage.postproc.vector_field.ArrayOfVectorFieldsOnGrid(fields=None)[source]#
Bases:
object
- gaussian_filter(sigma, niter=1, truncate=3, valid=True)[source]#
Return a new array filtered with a gaussian filter
Classes
|
|
|
PIV field on a regular grid. |