pub struct ChebyshevSpectralSolver1D { /* private fields */ }Expand description
Chebyshev spectral solver for 1D non-periodic PDEs
Implementations§
Source§impl ChebyshevSpectralSolver1D
impl ChebyshevSpectralSolver1D
Sourcepub fn new(
domain: Domain,
source_term: impl Fn(f64) -> f64 + Send + Sync + 'static,
boundary_conditions: Vec<BoundaryCondition<f64>>,
options: Option<SpectralOptions>,
) -> PDEResult<Self>
pub fn new( domain: Domain, source_term: impl Fn(f64) -> f64 + Send + Sync + 'static, boundary_conditions: Vec<BoundaryCondition<f64>>, options: Option<SpectralOptions>, ) -> PDEResult<Self>
Create a new Chebyshev spectral solver for 1D non-periodic PDEs
Sourcepub fn solve(&self) -> PDEResult<SpectralResult>
pub fn solve(&self) -> PDEResult<SpectralResult>
Solve a 1D non-periodic PDE using Chebyshev spectral method
Solves the equation: d²u/dx² = f(x) with Dirichlet, Neumann, or Robin boundary conditions
Auto Trait Implementations§
impl Freeze for ChebyshevSpectralSolver1D
impl !RefUnwindSafe for ChebyshevSpectralSolver1D
impl Send for ChebyshevSpectralSolver1D
impl Sync for ChebyshevSpectralSolver1D
impl Unpin for ChebyshevSpectralSolver1D
impl !UnwindSafe for ChebyshevSpectralSolver1D
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