pub struct MagneticImpurities {
pub sites: Vec<Site>,
pub moments: Vec<[f64; 3]>,
}Expand description
Classical magnetic impurities: distinct sites and their unit moments.
Fields§
§sites: Vec<Site>Sites of the impurities, distinct.
moments: Vec<[f64; 3]>Unit moment n = (n_x, n_y, n_z) of each impurity, in the order of sites.
Implementations§
Source§impl MagneticImpurities
impl MagneticImpurities
Sourcepub fn generate(
rng: &mut Xoshiro256,
candidates: &[Site],
n: usize,
moments: Moments,
) -> Self
pub fn generate( rng: &mut Xoshiro256, candidates: &[Site], n: usize, moments: Moments, ) -> Self
n impurities among candidates (see choose_sites), moments drawn from moments.
Sourcepub fn magnetisation(&self) -> [f64; 3]
pub fn magnetisation(&self) -> [f64; 3]
Mean moment.
Trait Implementations§
Source§impl Clone for MagneticImpurities
impl Clone for MagneticImpurities
Source§fn clone(&self) -> MagneticImpurities
fn clone(&self) -> MagneticImpurities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MagneticImpurities
impl Debug for MagneticImpurities
Source§impl PartialEq for MagneticImpurities
impl PartialEq for MagneticImpurities
Source§fn eq(&self, other: &MagneticImpurities) -> bool
fn eq(&self, other: &MagneticImpurities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MagneticImpurities
Auto Trait Implementations§
impl Freeze for MagneticImpurities
impl RefUnwindSafe for MagneticImpurities
impl Send for MagneticImpurities
impl Sync for MagneticImpurities
impl Unpin for MagneticImpurities
impl UnsafeUnpin for MagneticImpurities
impl UnwindSafe for MagneticImpurities
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,
impl<T, U> Imply<T> for U
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