Module pair

Module pair 

Source
Expand description

§Non-Bonded Pair Potentials

Two-body interaction potentials for non-bonded atoms.

§Included Potentials

PotentialDescriptionCommon Use
LjLennard-Jones 12-6Van der Waals
MieGeneralized Mie n-mTunable VdW
BuckBuckingham (Exp-6)Ionic systems
CoulCoulomb 1/rElectrostatics
YukawaScreened CoulombIonic screening
GaussGaussianSoft matter (GEM)
SoftSoft spherePurely repulsive

§Example

use potentials::pair::{Lj, Potential2};

// Argon LJ parameters: sigma = 3.4 A, epsilon = 0.238 kcal/mol
let lj = Lj::new(0.238, 3.4);

let r_sq = 4.0 * 4.0; // Distance of 4 A
let energy = lj.energy(r_sq);
let force_factor = lj.force_factor(r_sq);

Re-exports§

pub use crate::base::Potential2;

Structs§

Buck
Buckingham (Exp-6) potential.
Coul
Coulomb (1/r) potential.
Gauss
Gaussian potential.
Lj
Lennard-Jones 12-6 potential.
Mie
Generalized Mie (n-m) potential.
Soft
Soft sphere (power-law repulsion) potential.
Yukawa
Yukawa (screened Coulomb) potential.