[][src]Struct salva2d::TimestepManager

pub struct TimestepManager<N: RealField> { /* fields omitted */ }

Structure responsible for regulating the timestep length of the simulation.

Implementations

impl<N: RealField> TimestepManager<N>[src]

pub fn new(particle_radius: N) -> Self[src]

Initialize a new timestep manager with default parameters.

pub fn reset(&mut self, total_step_size: N)[src]

Resets the remaining time of the timestep manager.

pub fn is_done(&self) -> bool[src]

Checks if all the time of this timestep has been consumed.

pub fn dt(&self) -> N[src]

The current substep length.

pub fn inv_dt(&self) -> N[src]

The inverse of the current substep length.

If the substep length is zero, this inverse is also zero.

pub fn advance(&mut self, fluids: &[Fluid<N>])[src]

Advance to the next substep.

Auto Trait Implementations

impl<N> RefUnwindSafe for TimestepManager<N> where
    N: RefUnwindSafe

impl<N> Send for TimestepManager<N>

impl<N> Sync for TimestepManager<N>

impl<N> Unpin for TimestepManager<N> where
    N: Unpin

impl<N> UnwindSafe for TimestepManager<N> where
    N: UnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,