pub struct DisorderInput {
pub kind: String,
pub strength: Option<Num>,
pub concentration: Option<Num>,
pub exchange: Option<Num>,
pub moments: Option<String>,
pub mz: Option<Num>,
pub theta0: Option<Num>,
pub spin: Option<SpinInput>,
pub cells: Option<CellsInput>,
pub sublattices: Option<Vec<usize>>,
pub seed: Option<u64>,
}Expand description
A disorder term, [[disorder]], drawn anew for each configuration on its cells and
sublattices.
Fields§
§kind: Stringanderson or magnetic.
strength: Option<Num>Anderson: on-site energies uniform in [−W/2, W/2].
concentration: Option<Num>Magnetic: fraction of the sites carrying a moment, exchange J (J n·S).
exchange: Option<Num>Magnetic: exchange energy J of the coupling J n·S of a moment n (required).
moments: Option<String>isotropic, polarized (mean mz along z) or cone (half-angle theta0, degrees).
mz: Option<Num>Polarized moments: mean n_z in [0, 1], n_z uniform in [2 mz − 1, 1] (default 1).
theta0: Option<Num>Cone moments: half-angle around z (degrees; required).
spin: Option<SpinInput>Spin matrices S: same-g or opposite-g (BHZ), pauli (two orbitals), or three
matrix expressions.
cells: Option<CellsInput>Cells where the disorder lies: [first, end) per lattice direction (x, y, z).
sublattices: Option<Vec<usize>>Sublattices that carry it (all by default).
seed: Option<u64>Seed of the first configuration; configuration c uses seed + c.
Trait Implementations§
Source§impl Clone for DisorderInput
impl Clone for DisorderInput
Source§fn clone(&self) -> DisorderInput
fn clone(&self) -> DisorderInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DisorderInput
impl Debug for DisorderInput
Source§impl<'de> Deserialize<'de> for DisorderInput
impl<'de> Deserialize<'de> for DisorderInput
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>,
Auto Trait Implementations§
impl Freeze for DisorderInput
impl RefUnwindSafe for DisorderInput
impl Send for DisorderInput
impl Sync for DisorderInput
impl Unpin for DisorderInput
impl UnsafeUnpin for DisorderInput
impl UnwindSafe for DisorderInput
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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