Sets a goal based on the CFL stability criterion, but uses the full size of the element as the length scale in question.
More...
|
|
| ElementSizeCfl (const double safety_factor) |
| |
|
TimeStepRequest | operator() (const TimeStepper &time_stepper, const std::array< double, Dim > &element_size, const double speed, const double last_step) const |
| |
| bool | uses_local_data () const override |
| | Whether the result can differ on different elements, so requiring communication to synchronize the result across the domain. This is ignored for LTS step changing. More...
|
| |
| bool | can_be_delayed () const override |
| | Whether the result can be applied with a delay. More...
|
| |
|
void | pup (PUP::er &p) override |
| |
|
| WRAPPED_PUPable_abstract (StepChooser) |
| |
| virtual bool | uses_local_data () const=0 |
| | Whether the result can differ on different elements, so requiring communication to synchronize the result across the domain. This is ignored for LTS step changing. More...
|
| |
| virtual bool | can_be_delayed () const=0 |
| | Whether the result can be applied with a delay. More...
|
| |
| TimeStepRequest | desired_step (const double last_step, const db::DataBox< DbTags > &box) const |
| | The last_step parameter describes the step size to be adjusted. It may be the step size or the slab size, or may be infinite if the appropriate size cannot be determined. More...
|
| |
|
| WRAPPED_PUPable_abstract (StepChooser) |
| |
| virtual bool | uses_local_data () const=0 |
| | Whether the result can differ on different elements, so requiring communication to synchronize the result across the domain. This is ignored for LTS step changing. More...
|
| |
| virtual bool | can_be_delayed () const=0 |
| | Whether the result can be applied with a delay. More...
|
| |
| TimeStepRequest | desired_step (const double last_step, const db::DataBox< DbTags > &box) const |
| | The last_step parameter describes the step size to be adjusted. It may be the step size or the slab size, or may be infinite if the appropriate size cannot be determined. More...
|
| |
template<size_t Dim, typename System>
class StepChoosers::ElementSizeCfl< Dim, System >
Sets a goal based on the CFL stability criterion, but uses the full size of the element as the length scale in question.
This is useful as a coarse estimate for slabs, or to place a ceiling on another dynamically-adjusted step chooser.