Struct sir_ddft::SIRDiffusion2DIVP [−][src]
pub struct SIRDiffusion2DIVP { /* fields omitted */ }
Initial value problem for the SIR model with diffusion in two spatial dimensions
Note: The model is technically a PDE, but is transformed to a high-dimensional ODE via the finite difference method.
Implementations
impl SIRDiffusion2DIVP
[src]
pub fn new(
sir_params: SIRParameters,
diff_params: SIRDiffusionParameters,
state: SIRStateSpatial2D
) -> Self
[src]
sir_params: SIRParameters,
diff_params: SIRDiffusionParameters,
state: SIRStateSpatial2D
) -> Self
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, SIRStateSpatial2DBorrowed<'_>)
[src]
Get current time and state
Note that the type of the return value is not SIRStateSpatial2D
, but a
similar construct with references
Trait Implementations
impl<S> ODEIVP<S> for SIRDiffusion2DIVP
[src]
Auto Trait Implementations
impl RefUnwindSafe for SIRDiffusion2DIVP
impl Send for SIRDiffusion2DIVP
impl Sync for SIRDiffusion2DIVP
impl Unpin for SIRDiffusion2DIVP
impl UnwindSafe for SIRDiffusion2DIVP
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,