SPH
|
Time step based on CFL criterion. More...
#include <TimeStepCriterion.h>
Public Member Functions | |
CourantCriterion (const RunSettings &settings) | |
virtual TimeStep | compute (IScheduler &scheduler, Storage &storage, Float maxStep, Statistics &stats) override |
Storage must contain at least positions of particles and sound speed, checked by assert. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Time step based on CFL criterion.
This criterion should be always used as it is necessary for stability of the integration in time. It can be made more restrictive or less restrictive by setting Courant number. Setting values larger than 1 is not recommended.
Definition at line 139 of file TimeStepCriterion.h.
|
explicit |
Definition at line 299 of file TimeStepCriterion.cpp.
|
overridevirtual |
Storage must contain at least positions of particles and sound speed, checked by assert.
Implements ITimeStepCriterion.
Definition at line 304 of file TimeStepCriterion.cpp.