pub struct AMRSolver<F: IntegrateFloat> { /* private fields */ }Expand description
AMR-enhanced PDE solver
Implementations§
Source§impl<F: IntegrateFloat> AMRSolver<F>
impl<F: IntegrateFloat> AMRSolver<F>
Sourcepub fn new(grid: AMRGrid<F>, criteria: RefinementCriteria<F>) -> Self
pub fn new(grid: AMRGrid<F>, criteria: RefinementCriteria<F>) -> Self
Create new AMR solver
Sourcepub fn set_max_amr_cycles(&mut self, maxcycles: usize)
pub fn set_max_amr_cycles(&mut self, maxcycles: usize)
Set maximum AMR cycles
Sourcepub fn solve_adaptive<ProblemFn>(
&mut self,
problem: ProblemFn,
initial_solution: Array2<F>,
) -> PDEResult<Array2<F>>
pub fn solve_adaptive<ProblemFn>( &mut self, problem: ProblemFn, initial_solution: Array2<F>, ) -> PDEResult<Array2<F>>
Solve PDE with adaptive mesh refinement
Sourcepub fn grid_statistics(&self) -> AMRStatistics
pub fn grid_statistics(&self) -> AMRStatistics
Get grid statistics
Auto Trait Implementations§
impl<F> Freeze for AMRSolver<F>where
F: Freeze,
impl<F> RefUnwindSafe for AMRSolver<F>where
F: RefUnwindSafe,
impl<F> Send for AMRSolver<F>where
F: Send,
impl<F> Sync for AMRSolver<F>where
F: Sync,
impl<F> Unpin for AMRSolver<F>where
F: Unpin,
impl<F> UnwindSafe for AMRSolver<F>where
F: UnwindSafe,
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