Public Member Functions | List of all members
SimpleCFL1D Class Reference

Simple CFL time step calculator. More...

#include <simple_cfl_1d.hpp>

Inheritance diagram for SimpleCFL1D:
Inheritance graph
[legend]
Collaboration diagram for SimpleCFL1D:
Collaboration graph
[legend]

Public Member Functions

 SimpleCFL1D (double cfl)
 Class constructor. More...
 
double operator() (const SimulationState1D &ss, const EquationOfState &eos) const
 Calculates the time step. More...
 

Detailed Description

Simple CFL time step calculator.

Definition at line 12 of file simple_cfl_1d.hpp.

Constructor & Destructor Documentation

◆ SimpleCFL1D()

SimpleCFL1D::SimpleCFL1D ( double  cfl)
explicit

Class constructor.

Parameters
cflCFL parameter

Definition at line 5 of file simple_cfl_1d.cpp.

Member Function Documentation

◆ operator()()

double SimpleCFL1D::operator() ( const SimulationState1D ss,
const EquationOfState eos 
) const
virtual

Calculates the time step.

Parameters
ssComputational domain and hydro cells
eosEquation of state
Returns
Time step

Implements TimeStepFunction1D.

Definition at line 12 of file simple_cfl_1d.cpp.

Here is the call graph for this function:

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