[−][src]Struct salva3d::TimestepManager
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
impl RefUnwindSafe for TimestepManager
impl Send for TimestepManager
impl Sync for TimestepManager
impl Unpin for TimestepManager
impl UnwindSafe for TimestepManager
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> 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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub 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>,