pub struct LaplaceSolver2D { /* private fields */ }Expand description
Laplace’s equation solver for 2D problems
Solves ∇²u = 0, or in expanded form: ∂²u/∂x² + ∂²u/∂y² = 0
This is a specialized version of the Poisson solver with the right-hand side set to zero.
Implementations§
Source§impl LaplaceSolver2D
impl LaplaceSolver2D
Sourcepub fn new(
domain: Domain,
boundary_conditions: Vec<BoundaryCondition<f64>>,
options: Option<EllipticOptions>,
) -> PDEResult<Self>
pub fn new( domain: Domain, boundary_conditions: Vec<BoundaryCondition<f64>>, options: Option<EllipticOptions>, ) -> PDEResult<Self>
Create a new Laplace equation solver for 2D problems
Sourcepub fn solve_sor(&self) -> PDEResult<EllipticResult>
pub fn solve_sor(&self) -> PDEResult<EllipticResult>
Solve Laplace’s equation using Successive Over-Relaxation (SOR)
Sourcepub fn solve_direct(&self) -> PDEResult<EllipticResult>
pub fn solve_direct(&self) -> PDEResult<EllipticResult>
Solve Laplace’s equation using a direct sparse solver
Auto Trait Implementations§
impl Freeze for LaplaceSolver2D
impl !RefUnwindSafe for LaplaceSolver2D
impl Send for LaplaceSolver2D
impl Sync for LaplaceSolver2D
impl Unpin for LaplaceSolver2D
impl !UnwindSafe for LaplaceSolver2D
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