Post · 2 min read· pp. 484–485

aerosandbox.dynamics.point_mass.point_1D.vertical

Attributes

Classes

DynamicsPointMass1DVerticalDynamics instance:

Module Contents

class aerosandbox.dynamics.point_mass.point_1D.vertical.DynamicsPointMass1DVertical(mass_props=None, z_e=0, w_e=0) : Bases: aerosandbox.dynamics.point_mass.point_3D.cartesian.DynamicsPointMass3DCartesian

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

<a id="aerosandbox.dynamics.point_mass.point_1D.vertical.dyn"></a> aerosandbox.dynamics.point\_mass.point\_1D.vertical.dyn