pub struct WaveEquation1D {
pub c: f64,
}Expand description
1-D wave equation solver: d²u/dt² = c² * d²u/dx².
Fields§
§c: f64Wave speed.
Implementations§
Source§impl WaveEquation1D
impl WaveEquation1D
Sourcepub fn courant_number(&self, dx: f64, dt: f64) -> f64
pub fn courant_number(&self, dx: f64, dt: f64) -> f64
Compute the Courant number: c * dt / dx.
Auto Trait Implementations§
impl Freeze for WaveEquation1D
impl RefUnwindSafe for WaveEquation1D
impl Send for WaveEquation1D
impl Sync for WaveEquation1D
impl Unpin for WaveEquation1D
impl UnsafeUnpin for WaveEquation1D
impl UnwindSafe for WaveEquation1D
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