Trait kidou::orbit::calc::models::model::Model [−][src]
pub trait Model {
fn phi(&self, r: F, z: F) -> F;
fn phi_dr(&self, r: F, z: F) -> F;
fn phi_dz(&self, r: F, z: F) -> F;
}
Expand description
This trait defines that a model needs to provide functions that return the values of Galactic potential and its derivatives.
Required methods
Calculate the value of the Galactic potential $ \Phi(R, Z) $ $[ 100 \, \text{km}^2 \, \text{s}^{-2} ]$
Calculate the value of $ \partial \Phi(R, Z) / \partial R $ $[ 100 \, \text{km} \, \text{s}^{-2} ]$