SpECTRE  2021.08.02
StepChoosers::Cfl< StepChooserUse, Frame, System > Class Template Reference

Suggests a step size based on the CFL stability criterion. More...

#include <Cfl.hpp>

Classes

struct  SafetyFactor
 

Public Types

using options = tmpl::list< SafetyFactor >
 
using argument_tags = tmpl::list< domain::Tags::MinimumGridSpacing< System::volume_dim, Frame >, ::Tags::TimeStepper<>, typename System::compute_largest_characteristic_speed >
 
using return_tags = tmpl::list<>
 
using compute_tags = tmpl::list< domain::Tags::MinimumGridSpacingCompute< System::volume_dim, Frame >, typename System::compute_largest_characteristic_speed >
 

Public Member Functions

 Cfl (const double safety_factor) noexcept
 
template<typename Metavariables >
std::pair< double, bool > operator() (const double minimum_grid_spacing, const typename Metavariables::time_stepper_tag::type::element_type &time_stepper, const double speed, const double last_step_magnitude, const Parallel::GlobalCache< Metavariables > &) const noexcept
 
void pup (PUP::er &p) noexcept override
 

Static Public Attributes

static constexpr Options::String help
 

Detailed Description

template<typename StepChooserUse, typename Frame, typename System>
class StepChoosers::Cfl< StepChooserUse, Frame, System >

Suggests a step size based on the CFL stability criterion.

Member Data Documentation

◆ help

template<typename StepChooserUse , typename Frame , typename System >
constexpr Options::String StepChoosers::Cfl< StepChooserUse, Frame, System >::help
staticconstexpr
Initial value:
{
"Suggests a step size based on the CFL stability criterion."}