pub struct ModelInput {Show 16 fields
pub preset: Option<String>,
pub continuum: Option<String>,
pub lattice: Option<LatticeInput>,
pub spacing: Option<Num>,
pub a: Option<Num>,
pub b: Option<Num>,
pub c: Option<Num>,
pub d: Option<Num>,
pub mass: Option<Num>,
pub lambda: Option<Num>,
pub t: Option<Num>,
pub m: Option<Num>,
pub spin: bool,
pub onsite: Vec<OnsiteInput>,
pub hoppings: Vec<HoppingInput>,
pub field: Option<Num>,
}Expand description
The clean model, [model]: exactly one of preset, continuum and lattice, and the terms
added to it.
Fields§
§preset: Option<String>bhz, bhz-up, bhz-down, graphene, chain, square, cubic, qwz.
continuum: Option<String>A k·p Hamiltonian discretised on a chain, square or cubic lattice of constant spacing.
lattice: Option<LatticeInput>A lattice of one’s own, with onsite and hopping entries.
spacing: Option<Num>Lattice constant (continuum, chain, square, cubic) or nearest-neighbour distance (graphene). Default 1.
a: Option<Num>BHZ parameters (defaults: the HgTe values of the thesis).
b: Option<Num>BHZ B, of the mass M − B k² (default −0.376406).
c: Option<Num>BHZ C, a uniform energy shift (default 0).
d: Option<Num>BHZ D, of the term C − D k² common to both orbitals (default −0.280933).
mass: Option<Num>BHZ mass M (default −0.137, the inverted regime M/B > 0).
lambda: Option<Num>BHZ λ, a spin-orbit coupling between the spin blocks (default 0).
t: Option<Num>Hopping energy of the graphene, chain, square and cubic presets (−t between neighbours,
default 1).
m: Option<Num>Mass of the qwz preset (default 1; a Chern insulator for 0 < |m| < 2).
spin: boolSpin degeneracy for the graphene, chain, square and cubic presets (two orbitals per site, spin fastest).
onsite: Vec<OnsiteInput>On-site matrices: set for a lattice of one’s own, added to a preset.
hoppings: Vec<HoppingInput>Hoppings added to the model.
field: Option<Num>Uniform magnetic field: phase per unit area (the flux quantum is 2π).
Trait Implementations§
Source§impl Clone for ModelInput
impl Clone for ModelInput
Source§fn clone(&self) -> ModelInput
fn clone(&self) -> ModelInput
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 ModelInput
impl Debug for ModelInput
Source§impl Default for ModelInput
impl Default for ModelInput
Source§fn default() -> ModelInput
fn default() -> ModelInput
Source§impl<'de> Deserialize<'de> for ModelInput
impl<'de> Deserialize<'de> for ModelInput
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 ModelInput
impl RefUnwindSafe for ModelInput
impl Send for ModelInput
impl Sync for ModelInput
impl Unpin for ModelInput
impl UnsafeUnpin for ModelInput
impl UnwindSafe for ModelInput
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