SPH
|
Leapfrog timestepping. More...
#include <TimeStepping.h>
Public Member Functions | |
LeapFrog (const SharedPtr< Storage > &storage, const RunSettings &settings) | |
![]() | |
ITimeStepping (const SharedPtr< Storage > &storage, const RunSettings &settings) | |
Constructs the timestepping, using timestep criteria from parameters in settings. More... | |
ITimeStepping (const SharedPtr< Storage > &storage, const RunSettings &settings, AutoPtr< ITimeStepCriterion > &&criterion) | |
Constructs the timestepping, explicitly specifying the timestep criterion used in the run. More... | |
~ITimeStepping () override | |
INLINE Float | getTimeStep () const |
void | step (IScheduler &scheduler, ISolver &solver, Statistics &stats) |
![]() | |
virtual | ~Polymorphic () |
Protected Member Functions | |
virtual void | stepImpl (IScheduler &scheduler, ISolver &solver, Statistics &stats) override |
Additional Inherited Members | |
![]() | |
SharedPtr< Storage > | storage |
Main storage holding all the particles in the run. More... | |
Float | timeStep |
Current time step. More... | |
Float | maxTimeStep |
Maximal allowed time step. More... | |
AutoPtr< ITimeStepCriterion > | criterion |
Criterion used to compute the time step. More... | |
Leapfrog timestepping.
Uses the drift-kick-drift version of the algorithm for second-order quantities. First-order quantities are integrated using ordinary Euler timestepping.
Definition at line 120 of file TimeStepping.h.
|
inline |
Definition at line 122 of file TimeStepping.h.
|
overrideprotectedvirtual |
Implements ITimeStepping.
Definition at line 317 of file TimeStepping.cpp.