SPH
|
Criterion setting time step based on computed acceleration of particles. More...
#include <TimeStepCriterion.h>
Public Member Functions | |
AccelerationCriterion (const RunSettings &settings) | |
virtual TimeStep | compute (IScheduler &scheduler, Storage &storage, Float maxStep, Statistics &stats) override |
Computes the value of the time step. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Criterion setting time step based on computed acceleration of particles.
This criterion is somewhat similar to DerivativeCriterion; the time step is computed from the ratio of smoothing length and particle acceleration (or square root of the ratio, to be exact).
Definition at line 105 of file TimeStepCriterion.h.
|
explicit |
Definition at line 215 of file TimeStepCriterion.cpp.
|
overridevirtual |
Computes the value of the time step.
scheduler | Scheduler than can be used for parallelization. |
storage | Storage containing all physical quantities from which the time step is determined. |
maxStep | Maximal allowed time step. |
stats | Used to save statistics of the criterion. |
Implements ITimeStepCriterion.
Definition at line 219 of file TimeStepCriterion.cpp.