SPH
Public Member Functions | Protected Member Functions | List of all members
LeapFrog Class Reference

Leapfrog timestepping. More...

#include <TimeStepping.h>

Inheritance diagram for LeapFrog:
ITimeStepping Polymorphic

Public Member Functions

 LeapFrog (const SharedPtr< Storage > &storage, const RunSettings &settings)
 
- Public Member Functions inherited from ITimeStepping
 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)
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Protected Member Functions

virtual void stepImpl (IScheduler &scheduler, ISolver &solver, Statistics &stats) override
 

Additional Inherited Members

- Protected Attributes inherited from ITimeStepping
SharedPtr< Storagestorage
 Main storage holding all the particles in the run. More...
 
Float timeStep
 Current time step. More...
 
Float maxTimeStep
 Maximal allowed time step. More...
 
AutoPtr< ITimeStepCriterioncriterion
 Criterion used to compute the time step. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LeapFrog()

LeapFrog::LeapFrog ( const SharedPtr< Storage > &  storage,
const RunSettings settings 
)
inline

Definition at line 122 of file TimeStepping.h.

Member Function Documentation

◆ stepImpl()

void LeapFrog::stepImpl ( IScheduler scheduler,
ISolver solver,
Statistics stats 
)
overrideprotectedvirtual
Todo:
this is not LeapFrog !

Implements ITimeStepping.

Definition at line 317 of file TimeStepping.cpp.


The documentation for this class was generated from the following files: