pub struct TimeIntegrator { /* private fields */ }Expand description
Time integrator
Implementations§
Source§impl TimeIntegrator
impl TimeIntegrator
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), PhysicsError>
Sourcepub fn adaptive_step(&mut self, field: &PhysicsField, dt: f64) -> f64
pub fn adaptive_step(&mut self, field: &PhysicsField, dt: f64) -> f64
Compute an adaptive time step for the given field.
If the time-step control is CFL-based, the CFL dt is computed from the
field’s maximum absolute velocity and the field’s spatial resolution
(estimated as 1.0 / n when no explicit dx is available). Otherwise
the fixed dt argument is returned unchanged.
Sourcepub fn get_integrator_type(&self) -> &TimeIntegratorType
pub fn get_integrator_type(&self) -> &TimeIntegratorType
Get the integrator type.
Sourcepub fn set_integrator_type(&mut self, integrator_type: TimeIntegratorType)
pub fn set_integrator_type(&mut self, integrator_type: TimeIntegratorType)
Set the integrator type.
Auto Trait Implementations§
impl Freeze for TimeIntegrator
impl RefUnwindSafe for TimeIntegrator
impl Send for TimeIntegrator
impl Sync for TimeIntegrator
impl Unpin for TimeIntegrator
impl UnsafeUnpin for TimeIntegrator
impl UnwindSafe for TimeIntegrator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more