gigablochs.flow.constant

Contents

gigablochs.flow.constant#

gigablochs.flow.constant(start=0, stop=2, num=1000, velocity=0.2, **kwargs)[source]#

Generate a constant velocity flow profile.

Parameters:
  • start (float) – The starting time in seconds. Default is 0.

  • stop (float) – The ending time in seconds. Default is 2.

  • num (int) – The number of time steps. Default is 1000.

  • velocity (float) – The constant velocity in m/s. Default is 0.2.

  • **kwargs (optional) – Additional keyword arguments to be passed to the integrate_trajectory function for calculating position.

Returns:

  • time_steps (ndarray) – Array of time steps in seconds.

  • velocity (ndarray) – Velocity waveform in m/s.

  • position (ndarray) – Position waveform in m.