[][src]Struct salva3d::TimestepManager

pub struct TimestepManager { /* fields omitted */ }

Structure responsible for regulating the timestep length of the simulation.

Implementations

impl TimestepManager[src]

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

Initialize a new timestep manager with default parameters.

pub fn reset(&mut self, total_step_size: Real)[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) -> Real[src]

The current substep length.

pub fn inv_dt(&self) -> Real[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])[src]

Advance to the next substep.

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> 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>,