Post · 3 min read· pp. 1033–1035

aerosandbox.weights.mass_properties_of_shapes

Functions

mass_properties_from_radius_of_gyration(mass[, x_cg, ...])Returns the mass properties of an object, given its radius of gyration.
mass_properties_of_ellipsoid(mass, radius_x, radius_y, ...)Returns the mass properties of an ellipsoid centered on the origin.
mass_properties_of_sphere(mass, radius)Returns the mass properties of a sphere centered on the origin.
mass_properties_of_rectangular_prism(mass, length_x, ...)Returns the mass properties of a rectangular prism centered on the origin.
mass_properties_of_cube(mass, side_length)Returns the mass properties of a cube centered on the origin.

Module Contents

aerosandbox.weights.mass_properties_of_shapes.mass_properties_from_radius_of_gyration(mass, x_cg=0, y_cg=0, z_cg=0, radius_of_gyration_x=0, radius_of_gyration_y=0, radius_of_gyration_z=0) : Returns the mass properties of an object, given its radius of gyration.

code
It’s assumed that the principle axes of the inertia tensor are aligned with the coordinate axes.

This is a shorthand convenience function for common usage of the MassProperties constructor. For more detailed
use, use the MassProperties object directly.

Parameters:
:   - **mass** (*float*) – Mass [kg]
    - **x\_cg** (*float*) – x-position of the center of gravity
    - **y\_cg** (*float*) – y-position of the center of gravity
    - **z\_cg** (*float*) – z-position of the center of gravity
    - **radius\_of\_gyration\_x** (*float*) – Radius of gyration along the x-axis, about the center of gravity [m]
    - **radius\_of\_gyration\_y** (*float*) – Radius of gyration along the y-axis, about the center of gravity [m]
    - **radius\_of\_gyration\_z** (*float*) – Radius of gyration along the z-axis, about the center of gravity [m]

Return type:
:   [aerosandbox.weights.mass\_properties.MassProperties](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_ellipsoid(mass, radius_x, radius_y, radius_z) : Returns the mass properties of an ellipsoid centered on the origin.

code
Parameters:
:   - **mass** (*float*) – Mass [kg]
    - **radius\_x** (*float*) – Radius along the x-axis [m]
    - **radius\_y** (*float*) – Radius along the y-axis [m]
    - **radius\_z** (*float*) – Radius along the z-axis [m]

Return type:
:   [aerosandbox.weights.mass\_properties.MassProperties](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_sphere(mass, radius) : Returns the mass properties of a sphere centered on the origin.

code
Parameters:
:   - **mass** (*float*) – Mass [kg]
    - **radius** (*float*) – Radius [m]

Return type:
:   [aerosandbox.weights.mass\_properties.MassProperties](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_rectangular_prism(mass, length_x, length_y, length_z) : Returns the mass properties of a rectangular prism centered on the origin.

code
Parameters:
:   - **mass** (*float*) – Mass [kg]
    - **length\_x** (*float*) – Side length along the x-axis [m]
    - **length\_y** (*float*) – Side length along the y-axis [m]
    - **length\_z** (*float*) – Side length along the z-axis [m]

Return type:
:   [aerosandbox.weights.mass\_properties.MassProperties](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_cube(mass, side_length) : Returns the mass properties of a cube centered on the origin.

code
Parameters:
:   - **mass** (*float*) – Mass [kg]
    - **side\_length** (*float*) – Side length of the cube [m]

Return type:
:   [aerosandbox.weights.mass\_properties.MassProperties](/u/921f7ad402625b18#aerosandbox-weights-mass-properties-massproperties)

Returns: MassProperties object.