pub struct MultiTerminal {
pub h: CMat,
pub leads: Vec<AttachedLead>,
pub region: Option<Region>,
}Expand description
A device Hamiltonian with attached leads.
Fields§
§h: CMatHamiltonian of the device without the leads (orbital layout of region, when built from
a model).
leads: Vec<AttachedLead>The attached leads: leads[p] is lead p of G_pq and T_pq.
region: Option<Region>Sites of the device (orbital layout of h), when built from a model.
Implementations§
Source§impl MultiTerminal
impl MultiTerminal
Sourcepub fn from_model(
device: &Model,
lead: &Model,
region: &Region,
interfaces: &[Interface],
) -> Self
pub fn from_model( device: &Model, lead: &Model, region: &Region, interfaces: &[Interface], ) -> Self
Device from device on region; each lead continues an interface slice outward with the
clean lead model. The lead couples to every device orbital its first cell reaches (not
only the interface slice: slanted bonds, several sublattices).
Sourcepub fn solve(
&self,
energy: f64,
method: SelfEnergyMethod,
) -> Result<MultiSolution, GreenError>
pub fn solve( &self, energy: f64, method: SelfEnergyMethod, ) -> Result<MultiSolution, GreenError>
Self-energies of the leads and the retarded Green’s function of the whole device.
Trait Implementations§
Source§impl Clone for MultiTerminal
impl Clone for MultiTerminal
Source§fn clone(&self) -> MultiTerminal
fn clone(&self) -> MultiTerminal
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 moreAuto Trait Implementations§
impl Freeze for MultiTerminal
impl RefUnwindSafe for MultiTerminal
impl Send for MultiTerminal
impl Sync for MultiTerminal
impl Unpin for MultiTerminal
impl UnsafeUnpin for MultiTerminal
impl UnwindSafe for MultiTerminal
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