SPH
Classes | Enumerations | Functions
TimeStepCriterion.h File Reference

Criteria for computing the time step. More...

#include "common/ForwardDecl.h"
#include "objects/containers/Array.h"
#include "objects/wrappers/AutoPtr.h"
#include "quantities/QuantityIds.h"

Go to the source code of this file.

Classes

struct  TimeStep
 
class  ITimeStepCriterion
 Base class for timestep setters. More...
 
class  DerivativeCriterion
 Criterion setting time step based on value-to-derivative ratio for time-dependent quantities. More...
 
class  AccelerationCriterion
 Criterion setting time step based on computed acceleration of particles. More...
 
class  DivergenceCriterion
 Criterion computing time step from velocity divergence. More...
 
class  CourantCriterion
 Time step based on CFL criterion. More...
 
class  MultiCriterion
 Helper criterion, wrapping multiple criteria under ITimeStepCriterion interface. More...
 

Enumerations

enum class  CriterionId {
  INITIAL_VALUE , MAXIMAL_VALUE , DERIVATIVE , CFL_CONDITION ,
  ACCELERATION , DIVERGENCE , MAX_CHANGE
}
 

Functions

std::ostream & operator<< (std::ostream &stream, const CriterionId id)
 

Detailed Description

Criteria for computing the time step.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file TimeStepCriterion.h.

Enumeration Type Documentation

◆ CriterionId

enum CriterionId
strong
Enumerator
INITIAL_VALUE 

Timestep is not computed, using given initial value.

MAXIMAL_VALUE 

Timestep given by selected maximal value.

DERIVATIVE 

Timestep based on value-to-derivative ratio.

CFL_CONDITION 

Timestep computed using CFL condition.

ACCELERATION 

Timestep constrained by acceleration condition.

DIVERGENCE 

Timestep computed by velocity divergence.

MAX_CHANGE 

Timestep is limited by the maximum allowed change from previous timestep.

Definition at line 17 of file TimeStepCriterion.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const CriterionId  id 
)

Definition at line 12 of file TimeStepCriterion.cpp.