ASPECT
|
Static Public Member Functions | |
static void | declare_parameters (ParameterHandler &prm) |
Static Public Member Functions inherited from aspect::Plugins::InterfaceBase | |
static void | declare_parameters (ParameterHandler &prm) |
Static Public Member Functions inherited from aspect::SimulatorAccess< dim > | |
static void | get_composition_values_at_q_point (const std::vector< std::vector< double >> &composition_values, const unsigned int q, std::vector< double > &composition_values_at_q_point) |
Private Attributes | |
double | cut_back_amount |
double | repeat_threshold |
A class that implements a time stepping plugin to repeat a time step if the next time step is significantly smaller than the last step.
Definition at line 40 of file repeat_on_cutback.h.
|
default |
Constructor.
|
overridevirtual |
Execute the logic of the plugin.
This is called after every time step to determine a) What to do (advance, repeat, etc.), see the Reaction enum. b) What timestep size to use.
Implements aspect::TimeStepping::Interface< dim >.
|
overridevirtual |
The main execute() function.
Reimplemented from aspect::TimeStepping::Interface< dim >.
|
static |
|
overridevirtual |
Read the parameters this class declares from the parameter file. The default implementation of this function does not read any parameters. Consequently, derived classes do not have to overload this function if they do not take any runtime parameters. On the other hand, most plugins do have run-time parameters, and they may then overload this function.
Reimplemented from aspect::Plugins::InterfaceBase.
|
private |
Parameter to determine how much smaller the time step should be repeated as.
Definition at line 72 of file repeat_on_cutback.h.
|
private |
Parameter that controls when to repeat a time step. If the newly computed step size is smaller than the last step size multiplied by this factor, the step is repeated.
Definition at line 79 of file repeat_on_cutback.h.