Stochastic Parachute#

class rocketpy.stochastic.StochasticParachute[source]#

A Stochastic Parachute class that inherits from StochasticModel.

See also

Stochastic Model

Variables:
  • object (Parachute) – Parachute object to be used for validation.

  • cd_s (tuple, list, int, float) – Drag coefficient of the parachute.

  • trigger (list) – List of callables, string “apogee” or ints/floats.

  • sampling_rate (tuple, list, int, float) – Sampling rate of the parachute in seconds.

  • lag (tuple, list, int, float) – Lag of the parachute in seconds.

  • noise (list[tuple]) – List of tuples in the form of (mean, standard deviation, time-correlation).

  • name (list[str]) – List with the name of the parachute object. This cannot be randomized.

  • radius (tuple, list, int, float) – Radius of the parachute in meters.

  • drag_coefficient (tuple, list, int, float) – Drag coefficient of the inflated canopy shape, used only when radius is not provided.

  • height (tuple, list, int, float) – Height of the parachute in meters.

  • porosity (tuple, list, int, float) – Porosity of the parachute.

__init__(parachute, cd_s=None, trigger=None, sampling_rate=None, lag=None, noise=None, radius=None, drag_coefficient=None, height=None, porosity=None)[source]#

Initializes the Stochastic Parachute class.

See also

Stochastic Model

Parameters:
  • parachute (Parachute) – Parachute object to be used for validation.

  • cd_s (tuple, list, int, float) – Drag coefficient of the parachute.

  • trigger (list) – List of callables, string “apogee” or ints/floats.

  • sampling_rate (tuple, list, int, float) – Sampling rate of the parachute in seconds.

  • lag (tuple, list, int, float) – Lag of the parachute in seconds. Pay special attention to ensure the lag will not assume negative values based on its mean and standard deviation.

  • noise (list) – List of tuples in the form of (mean, standard deviation, time-correlation).

  • radius (tuple, list, int, float) – Radius of the parachute in meters.

  • drag_coefficient (tuple, list, int, float) – Drag coefficient of the inflated canopy shape, used only when radius is not provided.

  • height (tuple, list, int, float) – Height of the parachute in meters.

  • porosity (tuple, list, int, float) – Porosity of the parachute.

_validate_trigger(trigger)[source]#

Validates the trigger input. If the trigger input argument is not None, it must be: - a list of callables, string “apogee” or ints/floats - a tuple that will be further validated in the StochasticModel class

_validate_noise(noise)[source]#

Validates the noise input. If the noise input argument is not None, it must be a list of tuples in the form of (mean, standard deviation, time-correlation)

create_object()[source]#

Creates and returns a Parachute object from the randomly generated input arguments.

Returns:

parachute – Parachute object with the randomly generated input arguments.

Return type:

Parachute