Skip to main content

OdeSystem

Trait OdeSystem 

Source
pub trait OdeSystem: Send + Sync {
    // Required method
    fn derivative(&self, t: f64, y: f64) -> f64;
}
Expand description

Represents a system of first-order ODEs: dy/dt = f(t, y)

For coupled systems (e.g., Boltzmann equations), this represents the right-hand side of the differential equation system.

Required Methods§

Source

fn derivative(&self, t: f64, y: f64) -> f64

Computes the derivative dy/dt at state (t, y)

§Arguments
  • t - Current time/parameter value
  • y - Current state vector (packed into Quin object field)
§Returns

The derivative vector, packed as f64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§