combine_mass_props_unc: Combine mass properties uncertainties

View source: R/massprops.R

combine_mass_props_uncR Documentation

Combine mass properties uncertainties

Description

combine_mass_prop_unc() calculates the mass properties uncertainties of an aggregate from the mass properties and uncertainties of its constituents and the mass properties of the aggregate.

Usage

combine_mass_props_unc(mpl, amp)

Arguments

mpl

A list of mass properties and uncertainties lists, each of which contains 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.

  • sigma_mass mass uncertainty

  • sigma_center_mass center of mass uncertainty (3-dimensional numeric)

  • sigma_inertia Inertia tensor uncertainty (3x3 numeric matrix)

amp

A named list of mass properties for the aggregate containing 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.

Details

See vignette("massProps", package = "massProps") for details on the algorithms employed.

Value

The mass properties and uncertainties of the aggregate. A list with the same elements as members of mpl.

Examples

leaves <- names(igraph::neighbors(sawe_tree, "Combined", mode = "in"))
mpl <- Map(f = function(id) get_mass_props_and_unc(sawe_table, id), leaves)
combine_mass_props_unc(mpl, amp = get_mass_props(sawe_table, "Combined"))


massProps documentation built on April 4, 2025, 1:45 a.m.