Skip to main content

ConservationLaw

Trait ConservationLaw 

Source
pub trait ConservationLaw: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn evaluate(&self, state: &OdeState) -> f64;
}
Expand description

A conservation law to verify during simulation.

Required Methods§

Source

fn name(&self) -> &str

Source

fn evaluate(&self, state: &OdeState) -> f64

Implementors§