pub enum ShiftMode {
None,
EnergyShift,
ForceShift,
}Expand description
How a Truncated potential is made to vanish at the cutoff.
Variants§
None
Plain truncation: U(r), F(r) inside, both jump to 0 at r_c.
EnergyShift
U(r) − U(r_c); the force is unchanged and jumps at r_c.
ForceShift
Shifted force: U(r) − U(r_c) + (r − r_c) F(r_c) and F(r) − F(r_c);
both vanish at r_c.
Trait Implementations§
impl Copy for ShiftMode
impl Eq for ShiftMode
impl StructuralPartialEq for ShiftMode
Auto Trait Implementations§
impl Freeze for ShiftMode
impl RefUnwindSafe for ShiftMode
impl Send for ShiftMode
impl Sync for ShiftMode
impl Unpin for ShiftMode
impl UnsafeUnpin for ShiftMode
impl UnwindSafe for ShiftMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more