pub struct FEMPoissonSolver { /* private fields */ }Expand description
Finite Element solver for Poisson’s equation
Implementations§
Source§impl FEMPoissonSolver
impl FEMPoissonSolver
Sourcepub fn new(
mesh: TriangularMesh,
source_term: impl Fn(f64, f64) -> f64 + Send + Sync + 'static,
boundary_conditions: Vec<BoundaryCondition<f64>>,
options: Option<FEMOptions>,
) -> PDEResult<Self>
pub fn new( mesh: TriangularMesh, source_term: impl Fn(f64, f64) -> f64 + Send + Sync + 'static, boundary_conditions: Vec<BoundaryCondition<f64>>, options: Option<FEMOptions>, ) -> PDEResult<Self>
Create a new Finite Element solver for Poisson’s equation
Auto Trait Implementations§
impl Freeze for FEMPoissonSolver
impl !RefUnwindSafe for FEMPoissonSolver
impl Send for FEMPoissonSolver
impl Sync for FEMPoissonSolver
impl Unpin for FEMPoissonSolver
impl !UnwindSafe for FEMPoissonSolver
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