pub struct HardSphere {
pub diameter: f64,
}Expand description
Model infinitely hard spheres when used with PairwiseCutoff (not differentiable).
HardSphere represents each site as a hard sphere with a diameter given
by the diameter field.
Fields§
§diameter: f64The sphere’s diameter.
Trait Implementations§
Source§impl Clone for HardSphere
impl Clone for HardSphere
Source§fn clone(&self) -> HardSphere
fn clone(&self) -> HardSphere
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardSphere
impl Debug for HardSphere
Source§impl<'de> Deserialize<'de> for HardSphere
impl<'de> Deserialize<'de> for HardSphere
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MaximumInteractionRange for HardSphere
impl MaximumInteractionRange for HardSphere
Source§fn maximum_interaction_range(&self) -> f64
fn maximum_interaction_range(&self) -> f64
The largest distance between two sites where the pairwise interaction may be non-zero.
Source§impl PartialEq for HardSphere
impl PartialEq for HardSphere
Source§impl Serialize for HardSphere
impl Serialize for HardSphere
Source§impl<S, P> SitePairEnergy<S> for HardSphere
impl<S, P> SitePairEnergy<S> for HardSphere
Source§fn site_pair_energy(&self, site_properties_i: &S, site_properties_j: &S) -> f64
fn site_pair_energy(&self, site_properties_i: &S, site_properties_j: &S) -> f64
Compute the energy contribution from a pair of sites.
The interaction energy is infinite when two spheres overlap and zero when they do not.
Source§fn site_pair_energy_initial(
&self,
_site_properties_i: &S,
_site_properties_j: &S,
) -> f64
fn site_pair_energy_initial( &self, _site_properties_i: &S, _site_properties_j: &S, ) -> f64
Evaluate the energy contribution from a pair of sites in the initial state.
Hard shapes are assumed to be non-overlapping in the initial state. This implementation always returns zero.
Source§fn is_only_infinite_or_zero() -> bool
fn is_only_infinite_or_zero() -> bool
Does this potential only ever return infinity or zero? Read more
impl StructuralPartialEq for HardSphere
Auto Trait Implementations§
impl Freeze for HardSphere
impl RefUnwindSafe for HardSphere
impl Send for HardSphere
impl Sync for HardSphere
impl Unpin for HardSphere
impl UnsafeUnpin for HardSphere
impl UnwindSafe for HardSphere
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