Manages information about dt tried first, dt actually taken, and dt suggested for the next timestep, along with the explanation (TimestepDecision) for each.
More...
#include <timestep_status.h>
Manages information about dt tried first, dt actually taken, and dt suggested for the next timestep, along with the explanation (TimestepDecision) for each.
Not to be confused with the WxStepperStatus class! The WxStepperStatus is operated on by the host actions and only contains information on step success and an instance of TimestepConstraint. The TimestepStatus, on the other hand, is operated on and used by the WmSolver only, and contains information on the actual values of dt tried and taken.
◆ TimestepStatus()
TimestepStatus::TimestepStatus |
( |
| ) |
|
|
inline |
Create a new dt status object.
◆ bumpTdTaken()
void TimestepStatus::bumpTdTaken |
( |
| ) |
|
|
inline |
For time step with a retryable failure, set _td_taken to _td_next.
- Parameters
-
◆ getConstraint()
◆ getDtNext()
real TimestepStatus::getDtNext |
( |
| ) |
const |
|
inline |
Get dt suggested for next time step.
◆ getDtTaken()
real TimestepStatus::getDtTaken |
( |
| ) |
const |
|
inline |
◆ getDtToTry()
real TimestepStatus::getDtToTry |
( |
| ) |
const |
|
inline |
◆ getNextExplanation()
std::string * TimestepStatus::getNextExplanation |
( |
| ) |
const |
|
inline |
Get explanation of dt suggested for next time step.
◆ getNumTrys()
int TimestepStatus::getNumTrys |
( |
| ) |
|
|
inline |
Get number of attempts this timestep.
◆ getTakenExplanation()
std::string * TimestepStatus::getTakenExplanation |
( |
| ) |
const |
|
inline |
Get explanation of dt taken.
◆ getTdTaken()
◆ getTryExplanation()
std::string * TimestepStatus::getTryExplanation |
( |
| ) |
const |
|
inline |
Get explanation of dt taken.
◆ incrementTrys()
void TimestepStatus::incrementTrys |
( |
| ) |
|
|
inline |
Increment number of trys.
◆ setTdNext()
Set suggeted td for next time step.
- Parameters
-
◆ setTdTaken()
Set td taken to be new value.
- Parameters
-
◆ setTdToTry()
Set TimestepDecision to try this time step.
Only used when setting up a simulation or if not using the suggested dt from a previous time step.
- Parameters
-
◆ updateForNextStep()
void TimestepStatus::updateForNextStep |
( |
| ) |
|
|
inline |
Prepare for next time step.
- Point _td_taken and _td_try to value of _td_next.
- Reset number of iterations.
The documentation for this class was generated from the following file: