pub enum Limiter {
Upwind,
Linear,
VanLeer,
Minmod,
}Expand description
Slope / flux limiter for MUSCL reconstruction.
λ(r) blends between first-order upwind (λ = 0) and central differencing
(λ = 1); TVD limiters choose λ(r) from the local slope ratio r so the
reconstruction stays monotone (no new extrema) near discontinuities.
Variants§
Upwind
First-order upwind: λ = 0.
Linear
Unlimited central differencing (2nd order, may oscillate): λ = 1.
VanLeer
van Leer TVD limiter: λ(r) = (r + |r|) / (1 + |r|).
Minmod
minmod TVD limiter: λ(r) = max(0, min(r, 1)).
Trait Implementations§
impl Copy for Limiter
impl Eq for Limiter
impl StructuralPartialEq for Limiter
Auto Trait Implementations§
impl Freeze for Limiter
impl RefUnwindSafe for Limiter
impl Send for Limiter
impl Sync for Limiter
impl Unpin for Limiter
impl UnsafeUnpin for Limiter
impl UnwindSafe for Limiter
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