get_mass_props_and_unc_and_radii {massProps} | R Documentation |
Get mass properties and uncertainties and radii of gyration
Description
get_mass_props_and_unc_and_radii()
creates a mass properties and uncertainties
and radii of gyration list from a selected row in a data frame.
Usage
get_mass_props_and_unc_and_radii(df, id)
Arguments
df |
A data frame with (at least) these columns: |
id |
The |
Value
A list with the following named elements:
-
mass
Numeric mass. -
center_mass
Numeric 3-vector center of mass. -
point
Logical indicating point mass. The inertia of point masses is excluded from calculations. -
inertia
Numeric 3x3 matrix inertia tensor. The signs of the off-diagonal elements of the inertia tensor are determined byPOIconv
. For example, thexy
element of the inertia tensor isIxy
ifPOIconv
is "-"; it is -Ixy
ifPOIconv
is "+". -
sigma_mass
Numeric mass uncertainty. -
sigma_center_mass
Numeric 3-vector center of mass uncertainties. -
sigma_inertia
Numeric 3x3 matrix inertia tensor uncertainties. -
radii_gyration
Numeric 3-vector radii of gyration.
Examples
mp_table_small_rollup <- rollup_mass_props_and_unc(mp_tree_small, mp_table_small)
radii_table_small <- add_radii_of_gyration(mp_table_small_rollup)
get_mass_props_and_unc_and_radii(radii_table_small, "C.1")