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

Time step based on CFL criterion. More...

#include <TimeStepCriterion.h>

Inheritance diagram for CourantCriterion:
ITimeStepCriterion Polymorphic

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ CourantCriterion()

CourantCriterion::CourantCriterion ( const RunSettings settings)
explicit

Definition at line 299 of file TimeStepCriterion.cpp.

Member Function Documentation

◆ compute()

TimeStep CourantCriterion::compute ( IScheduler scheduler,
Storage storage,
Float  maxStep,
Statistics stats 
)
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.


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