frispy.trajectory

The Trajectory is the interface to the differential equation solver for the disc trajectory.

Module Contents

Classes

Trajectory

Class for computing the disc flight trajectory. Takes initial values

Functions

rotation_matrix(phi: float, theta: float) → numpy.ndarray

Compute the (partial) rotation matrix that transforms from the

frispy.trajectory.rotation_matrix(phi: float, theta: float) numpy.ndarray[source]

Compute the (partial) rotation matrix that transforms from the lab frame to the disc frame. Note that because of azimuthal symmetry, the azimuthal angle (gamma) is not used.

class frispy.trajectory.Trajectory[source]

Class for computing the disc flight trajectory. Takes initial values and interfaces with an ODE solver.

Units are meters [m] for length, kilograms [kg] for mass, seconds [s] for time, and radians [rad] for angles.

Parameters
  • x (float) – horizontal position; default is 0 m

  • y (float) – horizontal position; default is 0 m

  • z (float) – vertical position; default is 1 m

  • vx (float) – x-velocity; default is 10 m/s

  • vy (float) – y-velocity; default is 0 m/s

  • vz (float) – z-velocity; default is 0 m/s

  • phi (float) – 1st Euler angle (pitch); default is 0 rad

  • theta (float) – 2nd Euler angle (roll); default is 0 rad

  • gamma (float) – 3rd Euler angle (spin); default is 0 rad

  • phidot (float) – phi angular velocity; default is 0 rad/s

  • thetadot (float) – theta angular velocity; default is 0 rad/s

  • gammadot (float) – gamma angular velocity; default is 50 rad/s

x :float = 0
y :float = 0
z :float = 1
vx :float = 10
vy :float = 0
vz :float = 0
phi :float = 0
theta :float = 0
gamma :float = 0
phidot :float = 0
thetadot :float = 0
gammadot :float = 50
__post_init__(self)[source]
reset(self) None[source]
property velocity(self) numpy.ndarray
property angular_velocity(self) numpy.ndarray
derived_quantities(self) Dict[str, Union[float, numpy.ndarray, Dict[str, numpy.ndarray]]][source]

Compute intermediate quantities on the way to computing the time derivatives of the kinematic variables.