pub struct ExtendedBoundaryConditions<F: IntegrateFloat> {
pub left: Vec<BoundaryConditionType<F>>,
pub right: Vec<BoundaryConditionType<F>>,
pub is_periodic: bool,
}Expand description
Extended boundary condition specification
Fields§
§left: Vec<BoundaryConditionType<F>>Boundary conditions at left endpoint (x = a)
right: Vec<BoundaryConditionType<F>>Boundary conditions at right endpoint (x = b)
is_periodic: boolWhether the problem has periodic boundary conditions
Implementations§
Source§impl<F: IntegrateFloat> ExtendedBoundaryConditions<F>
impl<F: IntegrateFloat> ExtendedBoundaryConditions<F>
Sourcepub fn dirichlet(_left_values: Vec<F>, rightvalues: Vec<F>) -> Self
pub fn dirichlet(_left_values: Vec<F>, rightvalues: Vec<F>) -> Self
Create Dirichlet boundary conditions
Sourcepub fn neumann(_left_values: Vec<F>, rightvalues: Vec<F>) -> Self
pub fn neumann(_left_values: Vec<F>, rightvalues: Vec<F>) -> Self
Create Neumann boundary conditions
Sourcepub fn robin(left_coeffs: Vec<(F, F, F)>, right_coeffs: Vec<(F, F, F)>) -> Self
pub fn robin(left_coeffs: Vec<(F, F, F)>, right_coeffs: Vec<(F, F, F)>) -> Self
Create Robin boundary conditions: au + bu’ = c
Sourcepub fn mixed(
left: Vec<BoundaryConditionType<F>>,
right: Vec<BoundaryConditionType<F>>,
) -> Self
pub fn mixed( left: Vec<BoundaryConditionType<F>>, right: Vec<BoundaryConditionType<F>>, ) -> Self
Create mixed boundary conditions
Trait Implementations§
Source§impl<F: Clone + IntegrateFloat> Clone for ExtendedBoundaryConditions<F>
impl<F: Clone + IntegrateFloat> Clone for ExtendedBoundaryConditions<F>
Source§fn clone(&self) -> ExtendedBoundaryConditions<F>
fn clone(&self) -> ExtendedBoundaryConditions<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 ExtendedBoundaryConditions<F>
impl<F> RefUnwindSafe for ExtendedBoundaryConditions<F>where
F: RefUnwindSafe,
impl<F> Send for ExtendedBoundaryConditions<F>where
F: Send,
impl<F> Sync for ExtendedBoundaryConditions<F>where
F: Sync,
impl<F> Unpin for ExtendedBoundaryConditions<F>where
F: Unpin,
impl<F> UnwindSafe for ExtendedBoundaryConditions<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