PairPotential

Trait PairPotential 

Source
pub trait PairPotential {
    // Required methods
    fn cutoff(&self) -> f64;
    fn pair_energy(&self, r: f64) -> f64;
    fn pair_force_magnitude(&self, r: f64) -> f64;
    fn name(&self) -> &str;
}

Required Methods§

Source

fn cutoff(&self) -> f64

Source

fn pair_energy(&self, r: f64) -> f64

Source

fn pair_force_magnitude(&self, r: f64) -> f64

Source

fn name(&self) -> &str

Implementors§