pub struct Bond {
pub from: usize,
pub to: usize,
pub images: Vec<i64>,
pub displacement: Vec3,
pub matrix: CMat,
}Expand description
A hopping block ⟨from| H |to'⟩ of a region repeated periodically (Model::bonds):
to' is the image of site to of the region that lies images periods away (one count per
period), at displacement = r_to' − r_from. Hopping terms and Peierls phases are included.
Fields§
§from: usizeIndex of the site from in the region (the rows of matrix).
to: usizeIndex in the region of the site to of which to' is an image (the columns of matrix).
images: Vec<i64>Periods from to to to': to' = to + Σ_l images[l] T_l for the periods T_l given to
Model::bonds (empty if none). The Bloch phase of the block is exp(i Σ_l images[l] k·T_l).
displacement: Vec3r_to' − r_from (Cartesian, in the length unit of the lattice vectors).
matrix: CMatThe block ⟨from| H |to'⟩, with the hopping terms and the Peierls phase, without Bloch phase.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bond
impl RefUnwindSafe for Bond
impl Send for Bond
impl Sync for Bond
impl Unpin for Bond
impl UnsafeUnpin for Bond
impl UnwindSafe for Bond
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