pub struct BoundaryCondition<F: 'static + Debug + Copy + PartialOrd> {
pub bc_type: BoundaryConditionType,
pub location: BoundaryLocation,
pub dimension: usize,
pub value: F,
pub coefficients: Option<[F; 3]>,
}Expand description
Struct representing a boundary condition for a PDE
Fields§
§bc_type: BoundaryConditionTypeType of boundary condition
location: BoundaryLocationLocation of the boundary (low or high end of a dimension)
dimension: usizeDimension to which this boundary condition applies
value: FValue for Dirichlet conditions, or derivative value for Neumann conditions
coefficients: Option<[F; 3]>Coefficients for Robin boundary conditions (au + bdu/dn = c) For Robin conditions: [a, b, c]
Trait Implementations§
Source§impl<F: Clone + 'static + Debug + Copy + PartialOrd> Clone for BoundaryCondition<F>
impl<F: Clone + 'static + Debug + Copy + PartialOrd> Clone for BoundaryCondition<F>
Source§fn clone(&self) -> BoundaryCondition<F>
fn clone(&self) -> BoundaryCondition<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F> Freeze for BoundaryCondition<F>where
F: Freeze,
impl<F> RefUnwindSafe for BoundaryCondition<F>where
F: RefUnwindSafe,
impl<F> Send for BoundaryCondition<F>where
F: Send,
impl<F> Sync for BoundaryCondition<F>where
F: Sync,
impl<F> Unpin for BoundaryCondition<F>where
F: Unpin,
impl<F> UnwindSafe for BoundaryCondition<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> 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