Skip to main content

Mass

Trait Mass 

Source
pub trait Mass {
    // Required method
    fn mass(&self) -> f64;
}
Expand description

A body’s resistance to change in translational motion: $m$

Mass connects a body’s linear momentum to its linear velocity: $\vec{p} = m \vec{v}$.

hoomd_md does not compute or utilize the mass of sites.

§Units

The units of Mass are $[\mathrm{mass}]$.

Required Methods§

Source

fn mass(&self) -> f64

The mass of this body $[\mathrm{mass}]$.

Implementors§