SPH
Public Member Functions | List of all members
AccelerationCriterion Class Reference

Criterion setting time step based on computed acceleration of particles. More...

#include <TimeStepCriterion.h>

Inheritance diagram for AccelerationCriterion:
ITimeStepCriterion Polymorphic

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AccelerationCriterion()

AccelerationCriterion::AccelerationCriterion ( const RunSettings settings)
explicit

Definition at line 215 of file TimeStepCriterion.cpp.

Member Function Documentation

◆ compute()

TimeStep AccelerationCriterion::compute ( IScheduler scheduler,
Storage storage,
Float  maxStep,
Statistics stats 
)
overridevirtual

Computes the value of the time step.

Parameters
schedulerScheduler than can be used for parallelization.
storageStorage containing all physical quantities from which the time step is determined.
maxStepMaximal allowed time step.
statsUsed to save statistics of the criterion.
Returns
Computed time step and ID of criterion that determined the value.

Implements ITimeStepCriterion.

Definition at line 219 of file TimeStepCriterion.cpp.


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