pub struct KineticsProblem {
pub rates: Vec<ArrheniusRate>,
}Expand description
A kinetics problem: a mass-action ReactionSystem whose rate constants are
overwritten with Arrhenius expressions as a function of a supplied
temperature.
Fields§
§rates: Vec<ArrheniusRate>Per-reaction Arrhenius parameters, aligned with the reaction indices of the system it is applied to.
Implementations§
Source§impl KineticsProblem
impl KineticsProblem
Sourcepub fn new(rates: Vec<ArrheniusRate>) -> Result<Self, KineticsError>
pub fn new(rates: Vec<ArrheniusRate>) -> Result<Self, KineticsError>
Construct from one ArrheniusRate per reaction index.
§Errors
Returns KineticsError::InvalidRate if rates is empty.
Sourcepub fn rate_constants(&self, t: f64) -> Vec<f64>
pub fn rate_constants(&self, t: f64) -> Vec<f64>
Resolve every rate constant at temperature t into a vector aligned with
the reaction indices.
Trait Implementations§
Source§impl Clone for KineticsProblem
impl Clone for KineticsProblem
Auto Trait Implementations§
impl Freeze for KineticsProblem
impl RefUnwindSafe for KineticsProblem
impl Send for KineticsProblem
impl Sync for KineticsProblem
impl Unpin for KineticsProblem
impl UnsafeUnpin for KineticsProblem
impl UnwindSafe for KineticsProblem
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