# [−]Struct lumol::energy::Buckingham

Buckingham potential.

$$ V(x) = A \exp \left(\frac{\sigma - r}{\rho} \right) - \frac{C}{r^6} $$

where $A$ and $C$ are energetic constants, and $\rho$ and $\sigma$ are length parameters.

# Examples

let potential = Buckingham { a: 2.0, c: 1.0, rho: 5.3 }; assert_eq!(potential.energy(2.2), 1.3117360696239022); assert_eq!(potential.force(2.2), 0.2251072178835946);

## Fields

`a: f64`

Exponential term energetic constant

`c: f64`

`1/r^6`

term energetic constant

`rho: f64`

Width of the exponential term length constant

## Trait Implementations

`impl Copy for Buckingham`

`impl Clone for Buckingham`

`fn clone(&self) -> Buckingham`

`fn clone_from(&mut self, source: &Self)`

1.0.0[src]

Performs copy-assignment from `source`

. Read more

`impl PairPotential for Buckingham`

`fn tail_energy(&self, rc: f64) -> f64`

`fn tail_virial(&self, rc: f64) -> f64`

`fn virial(&self, r: &Vector3D) -> Matrix3`

Compute the virial contribution corresponding to the distance `r`

between the particles. Read more

`impl Potential for Buckingham`

`impl FromToml for Buckingham`

## Auto Trait Implementations

`impl Send for Buckingham`

`impl Sync for Buckingham`

## Blanket Implementations

`impl<T> From for T`

[src]

`impl<T, U> Into for T where`

U: From<T>,

[src]

U: From<T>,

`impl<T> ToOwned for T where`

T: Clone,

[src]

T: Clone,

`impl<T, U> TryFrom for T where`

T: From<U>,

[src]

T: From<U>,

`type Error = !`

🔬 This is a nightly-only experimental API. (

`try_from`

)The type returned in the event of a conversion error.

`fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`

[src]

`impl<T> Borrow for T where`

T: ?Sized,

[src]

T: ?Sized,

`impl<T> BorrowMut for T where`

T: ?Sized,

[src]

T: ?Sized,

`fn borrow_mut(&mut self) -> &mut T`

[src]

`impl<T, U> TryInto for T where`

U: TryFrom<T>,

[src]

U: TryFrom<T>,

`type Error = <U as TryFrom<T>>::Error`

🔬 This is a nightly-only experimental API. (

`try_from`

)The type returned in the event of a conversion error.

`fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`

[src]

`impl<T> Any for T where`

T: 'static + ?Sized,

[src]

T: 'static + ?Sized,

`fn get_type_id(&self) -> TypeId`

[src]

`impl<P> Potential for P where`

P: 'static + Computation + Clone,

P: 'static + Computation + Clone,