pub struct Fdtd1D {
pub ez: Vec<f64>,
pub hy: Vec<f64>,
/* private fields */
}Expand description
A one-dimensional FDTD grid.
Fields§
§ez: Vec<f64>§hy: Vec<f64>η₀ H_y, located half a cell to the right of ez[i].
Implementations§
Source§impl Fdtd1D
impl Fdtd1D
pub fn new(cells: usize, dx: f64, courant: f64) -> Result<Self, ErrorsJSL>
pub fn time_step(&self) -> f64
pub fn time(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fdtd1D
impl RefUnwindSafe for Fdtd1D
impl Send for Fdtd1D
impl Sync for Fdtd1D
impl Unpin for Fdtd1D
impl UnsafeUnpin for Fdtd1D
impl UnwindSafe for Fdtd1D
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