aerosandbox.dynamics.point_mass.point_1D

Submodules

Classes

DynamicsPointMass1DHorizontal

Dynamics instance:

DynamicsPointMass1DVertical

Dynamics instance:

Package Contents

class aerosandbox.dynamics.point_mass.point_1D.DynamicsPointMass1DHorizontal(mass_props=None, x_e=0, u_e=0)[source]

Bases: aerosandbox.dynamics.point_mass.point_3D.cartesian.DynamicsPointMass3DCartesian

Dynamics instance: * simulating a point mass * in 1D, oriented horizontally (i.e., the .add_gravity() method will have no effect)

State variables:

x_e: x-position, in Earth axes. [meters] u_e: x-velocity, in Earth axes. [m/s]

Control variables:

Fx_e: Force along the Earth-x axis. [N]

Parameters:
mass_props

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
y_e = 0
z_e = 0
u_e = 0
v_e = 0
w_e = 0
alpha = 0
beta = 0
bank = 0
Fx_e = 0
Fy_e = 0
Fz_e = 0
property state: Dict[str, float | aerosandbox.numpy.ndarray]

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]
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]]

class aerosandbox.dynamics.point_mass.point_1D.DynamicsPointMass1DVertical(mass_props=None, z_e=0, w_e=0)[source]

Bases: aerosandbox.dynamics.point_mass.point_3D.cartesian.DynamicsPointMass3DCartesian

Dynamics instance: * simulating a point mass * in 1D, oriented vertically (i.e., the .add_gravity() method will have an effect)

State variables:

z_e: z-position, in Earth axes. [meters] w_e: z-velocity, in Earth axes. [m/s]

Control variables:

Fz_e: Force along the Earth-x axis. [N]

Parameters:
mass_props

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
y_e = 0
z_e = 0
u_e = 0
v_e = 0
w_e = 0
alpha = 0
beta = 0
bank = 0
Fx_e = 0
Fy_e = 0
Fz_e = 0
property state: Dict[str, float | aerosandbox.numpy.ndarray]

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]
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]]