Skip to main content

ImplicitDaeZerothOrderRoot

Trait ImplicitDaeZerothOrderRoot 

Source
pub trait ImplicitDaeZerothOrderRoot<G, Y, U, V, T = Time>
where Y: Differentiate<T> + Tensor, U: TensorVec<Item = Y>, V: TensorVec<Item = Derivative<Y, T>>,
{ // Required method fn integrate( &self, function: impl FnMut(Quantity<T>, &Y, &Derivative<Y, T>) -> Result<G, String>, solver: impl ZerothOrderRootFinding<G, Derivative<Y, T>>, time: &[Quantity<T>], initial_condition: Y, equality_constraint: impl FnMut(Quantity<T>) -> EqualityConstraint, ) -> Result<(Times<T>, U, V), IntegrationError>; }
Expand description

Integrators for implicit differential-algebraic equations using zeroth-order root-finding.

Required Methods§

Source

fn integrate( &self, function: impl FnMut(Quantity<T>, &Y, &Derivative<Y, T>) -> Result<G, String>, solver: impl ZerothOrderRootFinding<G, Derivative<Y, T>>, time: &[Quantity<T>], initial_condition: Y, equality_constraint: impl FnMut(Quantity<T>) -> EqualityConstraint, ) -> Result<(Times<T>, U, V), IntegrationError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I, G, Y, U, V, T> ImplicitDaeZerothOrderRoot<G, Y, U, V, T> for I
where Self: ImplicitDaeVariableStepExplicitZerothOrderRoot<G, Y, U, V, T>, Y: Differentiate<T> + Tensor, Derivative<Y, T>: Mul<Quantity<T>, Output = Y>, U: TensorVec<Item = Y>, V: TensorVec<Item = Derivative<Y, T>>, T: UnitInv, for<'a> &'a Y: Mul<Scalar, Output = Y> + Mul<Quantity<<T as UnitInv>::Output>, Output = Derivative<Y, T>> + Sub<&'a Y, Output = Y>, for<'a> &'a Derivative<Y, T>: Mul<Scalar, Output = Derivative<Y, T>> + Mul<Quantity<T>, Output = Y>,