Struct sir_ddft::SIRDiffusion1DIVP[][src]

pub struct SIRDiffusion1DIVP { /* fields omitted */ }

Initial value problem for the SIR model with diffusion in one spatial dimension

Note: The model is technically a PDE, but is transformed to a high-dimensional ODE via the finite difference method.

Implementations

impl SIRDiffusion1DIVP[src]

pub fn new(
    sir_params: SIRParameters,
    diff_params: SIRDiffusionParameters,
    state: SIRStateSpatial1D
) -> Self
[src]

Creates a new IVP for the SIR diffusion model

pub fn add_time(&mut self, time: f64)[src]

Increase integration time

pub fn get_result(&self) -> (f64, SIRStateSpatial1DBorrowed<'_>)[src]

Get current time and state

Note that the type of the return value is not SIRStateSpatial1D, but a similar construct with references

Trait Implementations

impl<S> ODEIVP<S> for SIRDiffusion1DIVP[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.