pub struct System {
pub unknowns: Vec<Func>,
pub known_unknowns: Vec<Func>,
pub knowns: Vec<Func>,
pub equations: Vec<Equation>,
}Fields§
§unknowns: Vec<Func>§known_unknowns: Vec<Func>§knowns: Vec<Func>§equations: Vec<Equation>Implementations§
Source§impl System
impl System
pub fn new<'a, T: IntoIterator<Item = &'a str>, U: IntoIterator<Item = &'a str>, V: IntoIterator<Item = &'a Equation>>( unknowns: T, knowns: U, equations: V, ) -> Self
pub fn to_first_order_in_time(&self) -> Self
pub fn time_discretized(&self) -> Self
pub fn simplified(&self) -> Result<Self, SystemError>
pub fn factor(&self) -> Self
pub fn matrixify(&self) -> Self
pub fn to_constant_mesh(&self) -> Self
pub fn to_crank_nikolson(&self) -> Self
pub fn to_explicit_euler(&self) -> Self
pub fn to_implicit_euler(&self) -> Self
pub fn subs(&self, substitutions: &[[Box<dyn Expr>; 2]]) -> Self
pub fn expand(&self) -> Self
pub fn simplify(&self) -> Self
pub fn with_equations(&self, equations: Vec<Equation>) -> Self
pub fn vectors(&self) -> impl Iterator<Item = (&dyn Expr, bool)>
pub fn matrixes(&self) -> impl Iterator<Item = &dyn Expr>
pub fn num_vectors(&self) -> usize
pub fn eqs_in_solving_order(&self) -> impl Iterator<Item = &Equation>
pub fn equation_lhs_unknowns( &self, equation: &Equation, ) -> impl Iterator<Item = &dyn Expr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for System
impl !RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl !UnwindSafe for System
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