aerosandbox.dynamics.point_mass.point_2D.speed_gamma

Attributes

dyn

Classes

DynamicsPointMass2DSpeedGamma

Dynamics instance:

Module Contents

class aerosandbox.dynamics.point_mass.point_2D.speed_gamma.DynamicsPointMass2DSpeedGamma(mass_props=None, x_e=0, z_e=0, speed=0, gamma=0, alpha=0)[source]

Bases: aerosandbox.dynamics.point_mass.point_3D.speed_gamma_track.DynamicsPointMass3DSpeedGammaTrack

Dynamics instance: * simulating a point mass * in 2D * with velocity parameterized in speed-gamma space.

State variables:

x_e: x-position, in Earth axes. [meters] z_e: z-position, in Earth axes. [meters] speed: Speed; equivalent to u_w, the x-velocity in wind axes. [m/s] gamma: Flight path angle. [rad]

Indirect control variables:

alpha: Angle of attack. [degrees]

Control variables:

Fx_w: Force along the wind-x axis. [N] Fz_w: Force along the wind-z axis. [N]

Parameters:
  • mass_props (aerosandbox.weights.mass_properties.MassProperties) –

  • x_e (Union[float, aerosandbox.numpy.ndarray]) –

  • z_e (Union[float, aerosandbox.numpy.ndarray]) –

  • speed (Union[float, aerosandbox.numpy.ndarray]) –

  • gamma (Union[float, aerosandbox.numpy.ndarray]) –

  • alpha (Union[float, aerosandbox.numpy.ndarray]) –

mass_props[source]

For each state variable, self.state_var = state_var

For each indirect control variable, self.indirect_control_var = indirect_control_var

For each control variable, self.control_var = 0

x_e = 0[source]
y_e = 0[source]
z_e = 0[source]
speed = 0[source]
gamma = 0[source]
track = 0[source]
bank = 0[source]
alpha = 0[source]
beta = 0[source]
Fx_w = 0[source]
Fy_w = 0[source]
Fz_w = 0[source]
property state: Dict[str, float | aerosandbox.numpy.ndarray][source]

Returns the state variables of this Dynamics instance as a Dict.

Keys are strings that give the name of the variables. Values are the variables themselves.

This method should look something like:
>>> {
>>>     "x_e": self.x_e,
>>>     "u_e": self.u_e,
>>>     ...
>>> }
Return type:

Dict[str, Union[float, aerosandbox.numpy.ndarray]]

property control_variables: Dict[str, float | aerosandbox.numpy.ndarray][source]
Return type:

Dict[str, Union[float, aerosandbox.numpy.ndarray]]

state_derivatives()[source]

A function that returns the derivatives with respect to time of the state specified in the state property.

Should return a Dict with the same keys as the state property.

Return type:

Dict[str, Union[float, aerosandbox.numpy.ndarray]]

aerosandbox.dynamics.point_mass.point_2D.speed_gamma.dyn[source]