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

Predictor-corrector second-order timestepping. More...

#include <TimeStepping.h>

Inheritance diagram for PredictorCorrector:
ITimeStepping Polymorphic

Public Member Functions

 PredictorCorrector (const SharedPtr< Storage > &storage, const RunSettings &settings)
 
 ~PredictorCorrector () override
 
- 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
 
void makePredictions (IScheduler &scheduler)
 
void makeCorrections (IScheduler &scheduler)
 

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

Predictor-corrector second-order timestepping.

Definition at line 97 of file TimeStepping.h.

Constructor & Destructor Documentation

◆ PredictorCorrector()

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

Definition at line 237 of file TimeStepping.cpp.

◆ ~PredictorCorrector()

PredictorCorrector::~PredictorCorrector ( )
overridedefault

Member Function Documentation

◆ makeCorrections()

void PredictorCorrector::makeCorrections ( IScheduler scheduler)
protected

Definition at line 267 of file TimeStepping.cpp.

◆ makePredictions()

void PredictorCorrector::makePredictions ( IScheduler scheduler)
protected
Todo:
this is currently incompatible with NBodySolver, because we advance positions by 0.5 adt^2 ...

Definition at line 251 of file TimeStepping.cpp.

◆ stepImpl()

void PredictorCorrector::stepImpl ( IScheduler scheduler,
ISolver solver,
Statistics stats 
)
overrideprotectedvirtual

Implements ITimeStepping.

Definition at line 289 of file TimeStepping.cpp.


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