Post · 2 min read· pp. 518–519

aerosandbox.dynamics.rigid_body.common_rigid_body

Classes

_DynamicsRigidBodyBaseClassHelper class that provides a standard way to create an ABC using

Module Contents

class aerosandbox.dynamics.rigid_body.common_rigid_body._DynamicsRigidBodyBaseClass(mass_props=None, **state_variables_and_indirect_control_variables) : Bases: aerosandbox.dynamics.point_mass.common_point_mass._DynamicsPointMassBaseClass, abc.ABC

code
Helper class that provides a standard way to create an ABC using
inheritance.

Parameters:
:   **mass\_props** ([*aerosandbox.MassProperties*](/u/e98c1a890dad6c0c#aerosandbox-massproperties)) –

*abstract* add\_moment(*Mx=0*, *My=0*, *Mz=0*, *axes='body'*)
:   Adds a moment (in whichever axis system you choose) to this Dynamics instance.

    Parameters:
    :   - **Mx** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) – Moment about the x-axis in the axis system chosen. Assumed these moments are applied about the center of mass. [Nm]
        - **My** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) – Moment about the y-axis in the axis system chosen. Assumed these moments are applied about the center of mass. [Nm]
        - **Mz** (*Union**[**float**,* *aerosandbox.numpy.ndarray**]*) – Moment about the z-axis in the axis system chosen. Assumed these moments are applied about the center of mass. [Nm]
        - **axes** – The axis system that the specified moment is in. One of:
          \* “geometry”
          \* “body”
          \* “wind”
          \* “stability”
          \* “earth”

    Return type:
    :   None

    Returns: None (in-place)

*property* op\_point
:   Returns an OperatingPoint object that represents the current state of the dynamics instance.

    This OperatingPoint object is effectively a subset of the state variables, and is used to compute aerodynamic
    forces and moments.

*property* alpha
:   The angle of attack, in degrees.

*property* beta
:   The sideslip angle, in degrees.

*property* rotational\_kinetic\_energy
:   Computes the kinetic energy [J] from rotational motion.

    KE = 0.5 \* I \* w^2

    Returns:
    :   Kinetic energy [J]

*property* kinetic\_energy
:   Computes the kinetic energy [J] from translational and rotational motion.

    KE = 0.5 \* m \* v^2 + 0.5 \* I \* w^2

    Returns:
    :   Kinetic energy [J]