pub struct FieldState1D<S: Scalar> {
pub values: Vec<S>,
pub domain: Domain1D<S>,
}Expand description
Field state for moving boundary problems.
Contains the solution field along with boundary information.
Fields§
§values: Vec<S>Solution values at grid points
domain: Domain1D<S>Domain specification
Implementations§
Source§impl<S: Scalar> FieldState1D<S>
impl<S: Scalar> FieldState1D<S>
Sourcepub fn flux_left(&self) -> S
pub fn flux_left(&self) -> S
Compute boundary flux at left boundary. Uses second-order one-sided difference.
Sourcepub fn flux_right(&self) -> S
pub fn flux_right(&self) -> S
Compute boundary flux at right boundary. Uses second-order one-sided difference.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for FieldState1D<S>where
S: Freeze,
impl<S> RefUnwindSafe for FieldState1D<S>where
S: RefUnwindSafe,
impl<S> Send for FieldState1D<S>
impl<S> Sync for FieldState1D<S>
impl<S> Unpin for FieldState1D<S>where
S: Unpin,
impl<S> UnsafeUnpin for FieldState1D<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FieldState1D<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