pub struct LennardJonesForce { /* private fields */ }Expand description
A struct representing a Lennard-Jones force, which implements the Force trait.
Trait Implementations§
Source§impl Default for LennardJonesForce
impl Default for LennardJonesForce
Source§fn default() -> Self
fn default() -> Self
The default instance of LennardJonesForce. The parameters are set to the following.
| Parameter | Value |
|---|---|
cutoff_radius | 3.0 |
epsilon | 5.0 |
sigma | 1.0 |
Source§impl Force for LennardJonesForce
impl Force for LennardJonesForce
Source§fn system_name(&self) -> &str
fn system_name(&self) -> &str
Returns Read more
Source§fn potential(&self, particle: &Particle, other: &Particle) -> f64
fn potential(&self, particle: &Particle, other: &Particle) -> f64
Calculates the potential energy between two particles.
Auto Trait Implementations§
impl Freeze for LennardJonesForce
impl RefUnwindSafe for LennardJonesForce
impl Send for LennardJonesForce
impl Sync for LennardJonesForce
impl Unpin for LennardJonesForce
impl UnwindSafe for LennardJonesForce
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more