aerosandbox.weights.mass_properties_of_shapes#

Module Contents#

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.

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)[source]#

Returns the mass properties of an object, given its radius of gyration.

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

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_ellipsoid(mass, radius_x, radius_y, radius_z)[source]#

Returns the mass properties of an ellipsoid centered on the origin.

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

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_sphere(mass, radius)[source]#

Returns the mass properties of a sphere centered on the origin.

Parameters:
  • mass (float) – Mass [kg]

  • radius (float) – Radius [m]

Return type:

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)[source]#

Returns the mass properties of a rectangular prism centered on the origin.

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

Returns: MassProperties object.

aerosandbox.weights.mass_properties_of_shapes.mass_properties_of_cube(mass, side_length)[source]#

Returns the mass properties of a cube centered on the origin.

Parameters:
  • mass (float) – Mass [kg]

  • side_length (float) – Side length of the cube [m]

Return type:

aerosandbox.weights.mass_properties.MassProperties

Returns: MassProperties object.