[]Trait lumol::energy::AnglePotential

pub trait AnglePotential: Potential + BoxCloneAngle { }

Marker trait for potentials that can be used for molecular angles.

Example

use lumol_core::energy::{Potential, AnglePotential};

// A no-op potential
#[derive(Clone)]
struct Null;

impl Potential for Null {
    fn energy(&self, x: f64) -> f64 {0.0}
    fn force(&self, x: f64) -> f64 {0.0}
}

// Now we can use the Null potential for angles
impl AnglePotential for Null {}

Implementors

impl AnglePotential for CosineHarmonic

impl AnglePotential for Harmonic

impl AnglePotential for Morse

impl AnglePotential for NullPotential

Loading content...