pub struct SchrodingerSolver2D {
pub psi: Vec<Vec<Complex>>,
pub potential: Vec<Vec<f64>>,
pub nx: usize,
pub ny: usize,
pub dx: f64,
pub dy: f64,
pub dt: f64,
pub mass: f64,
pub hbar: f64,
}Expand description
2D Schrodinger solver using ADI (alternating direction implicit) method.
Fields§
§psi: Vec<Vec<Complex>>§potential: Vec<Vec<f64>>§nx: usize§ny: usize§dx: f64§dy: f64§dt: f64§mass: f64§hbar: f64Implementations§
Trait Implementations§
Source§impl Clone for SchrodingerSolver2D
impl Clone for SchrodingerSolver2D
Source§fn clone(&self) -> SchrodingerSolver2D
fn clone(&self) -> SchrodingerSolver2D
Returns a duplicate of the value. Read more
1.0.0 · 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 SchrodingerSolver2D
impl RefUnwindSafe for SchrodingerSolver2D
impl Send for SchrodingerSolver2D
impl Sync for SchrodingerSolver2D
impl Unpin for SchrodingerSolver2D
impl UnsafeUnpin for SchrodingerSolver2D
impl UnwindSafe for SchrodingerSolver2D
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.