pub struct MultiSymplecticIntegrator { /* private fields */ }Expand description
Multi-symplectic integrator for PDEs
Implementations§
Source§impl MultiSymplecticIntegrator
impl MultiSymplecticIntegrator
Sourcepub fn new(
spatial_dim: usize,
n_fields: usize,
k: Array2<f64>,
l: Array2<f64>,
) -> Self
pub fn new( spatial_dim: usize, n_fields: usize, k: Array2<f64>, l: Array2<f64>, ) -> Self
Create a new multi-symplectic integrator
Sourcepub fn preissman_step(
&self,
z: &Array2<f64>,
s: &dyn Fn(&ArrayView1<'_, f64>) -> Array1<f64>,
dt: f64,
dx: f64,
) -> IntegrateResult<Array2<f64>>
pub fn preissman_step( &self, z: &Array2<f64>, s: &dyn Fn(&ArrayView1<'_, f64>) -> Array1<f64>, dt: f64, dx: f64, ) -> IntegrateResult<Array2<f64>>
Preissman box scheme
Auto Trait Implementations§
impl Freeze for MultiSymplecticIntegrator
impl RefUnwindSafe for MultiSymplecticIntegrator
impl Send for MultiSymplecticIntegrator
impl Sync for MultiSymplecticIntegrator
impl Unpin for MultiSymplecticIntegrator
impl UnwindSafe for MultiSymplecticIntegrator
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> 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