pub struct Operator2DCoefficients<S: Scalar> {
pub a: S,
pub b: S,
pub c: S,
pub d: S,
pub e: S,
}Expand description
Coefficients for a general 2D operator: au_xx + bu_yy + cu_x + du_y + e*u
Fields§
§a: SCoefficient for u_xx (second x-derivative)
b: SCoefficient for u_yy (second y-derivative)
c: SCoefficient for u_x (first x-derivative)
d: SCoefficient for u_y (first y-derivative)
e: SCoefficient for u (zeroth order)
Implementations§
Source§impl<S: Scalar> Operator2DCoefficients<S>
impl<S: Scalar> Operator2DCoefficients<S>
Sourcepub fn scaled_laplacian(alpha: S) -> Self
pub fn scaled_laplacian(alpha: S) -> Self
Scaled Laplacian: alpha * (u_xx + u_yy)
Sourcepub fn advection_diffusion(diffusion: S, vx: S, vy: S) -> Self
pub fn advection_diffusion(diffusion: S, vx: S, vy: S) -> Self
Advection-diffusion: D*(u_xx + u_yy) - vxu_x - vyu_y
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Operator2DCoefficients<S>where
S: Freeze,
impl<S> RefUnwindSafe for Operator2DCoefficients<S>where
S: RefUnwindSafe,
impl<S> Send for Operator2DCoefficients<S>
impl<S> Sync for Operator2DCoefficients<S>
impl<S> Unpin for Operator2DCoefficients<S>where
S: Unpin,
impl<S> UnsafeUnpin for Operator2DCoefficients<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Operator2DCoefficients<S>where
S: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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