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

Criterion computing time step from velocity divergence. More...

#include <TimeStepCriterion.h>

Inheritance diagram for DivergenceCriterion:
ITimeStepCriterion Polymorphic

Public Member Functions

 DivergenceCriterion (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 computing time step from velocity divergence.

This criterion constrains the time step based on relative velocities of interacting particles.

Definition at line 121 of file TimeStepCriterion.h.

Constructor & Destructor Documentation

◆ DivergenceCriterion()

DivergenceCriterion::DivergenceCriterion ( const RunSettings settings)
explicit

Definition at line 256 of file TimeStepCriterion.cpp.

Member Function Documentation

◆ compute()

TimeStep DivergenceCriterion::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 260 of file TimeStepCriterion.cpp.


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