System

Struct System 

Source
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

Source

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

Source

pub fn to_first_order_in_time(&self) -> Self

Source

pub fn time_discretized(&self) -> Self

Source

pub fn simplified(&self) -> Result<Self, SystemError>

Source

pub fn factor(&self) -> Self

Source

pub fn matrixify(&self) -> Self

Source

pub fn to_constant_mesh(&self) -> Self

Source

pub fn to_crank_nikolson(&self) -> Self

Source

pub fn to_explicit_euler(&self) -> Self

Source

pub fn to_implicit_euler(&self) -> Self

Source

pub fn subs(&self, substitutions: &[[Box<dyn Expr>; 2]]) -> Self

Source

pub fn expand(&self) -> Self

Source

pub fn simplify(&self) -> Self

Source

pub fn with_equations(&self, equations: Vec<Equation>) -> Self

Source

pub fn vectors(&self) -> impl Iterator<Item = (&dyn Expr, bool)>

Source

pub fn matrixes(&self) -> impl Iterator<Item = &dyn Expr>

Source

pub fn num_vectors(&self) -> usize

Source

pub fn eqs_in_solving_order(&self) -> impl Iterator<Item = &Equation>

Source

pub fn equation_lhs_unknowns( &self, equation: &Equation, ) -> impl Iterator<Item = &dyn Expr>

Trait Implementations§

Source§

impl Clone for System

Source§

fn clone(&self) -> System

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for System

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for System

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.