pysdic.SDICAnalysis.set_displacement#

SDICAnalysis.set_displacement(frame, displacement)[source]#

Set (or replace) the displacement of the vertices of the mesh at a frame.

Note

A displacement cannot be removed once set: the operators built on the analysis (data terms, regularizations, parametrizations) rely on the frames with a displacement.

Parameters:
  • frame (Integral) – The index of the frame, in \([0, N_f)\).

  • displacement (ArrayLike) – The displacement of the vertices, of shape \((N_v, E)\) (copied).

Raises:
  • IndexError – If frame is out of range.

  • TypeError – If displacement is None.

  • ValueError – If the displacement has a wrong shape or non-finite values.

Return type:

None