aerosandbox.dynamics.point_mass.point_1D
Submodules
- aerosandbox.dynamics.point_mass.point_1D.horizontal
- aerosandbox.dynamics.point_mass.point_1D.vertical
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)
: Bases: aerosandbox.dynamics.point_mass.point_3D.cartesian.DynamicsPointMass3DCartesian
code
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** ([*aerosandbox.weights.mass\_properties.MassProperties*](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)) –
- **x\_e** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) –
- **u\_e** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) –
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:
: ```default{ "x_e": self.x_e, "u_e": self.u_e, ... }
code
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()
: 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]]
<a id="aerosandbox.dynamics.point_mass.point_1D.DynamicsPointMass1DVertical"></a> *class* aerosandbox.dynamics.point\_mass.point\_1D.DynamicsPointMass1DVertical(*mass\_props=None*, *z\_e=0*, *w\_e=0*)
: Bases: [`aerosandbox.dynamics.point_mass.point_3D.cartesian.DynamicsPointMass3DCartesian`](/u/b868c3a9353d3d04#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** ([*aerosandbox.weights.mass\_properties.MassProperties*](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)) –
- **z\_e** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) –
- **w\_e** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) –
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:
: ```default
>>> {
>>> "x_e": self.x_e,
>>> "u_e": self.u_e,
>>> ...
>>> }code
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()
: 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]]