[−][src]Struct salva3d::TimestepManager
Structure responsible for regulating the timestep length of the simulation.
Methods
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,
N: RefUnwindSafe,
impl<N> Send for TimestepManager<N>
impl<N> Sync for TimestepManager<N>
impl<N> Unpin for TimestepManager<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for TimestepManager<N> where
N: UnwindSafe,
N: UnwindSafe,
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,
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> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,