Tempus
Version of the Day
Time Integration
|
This class defines time events which can be used to "trigger" an action. Time events are points in time and/or timestep index where an an action should occur, such as, solution output (mesh and solution) diagnostic output, restart, screen dump, in-situ visualization, user-specified, or any other action. More...
#include <Tempus_TimeEventBase.hpp>
Public Member Functions | |
TimeEventBase () | |
Constructor. More... | |
virtual | ~TimeEventBase () |
Destructor. More... | |
Private Attributes | |
std::string | name_ |
const Scalar | defaultTime_ |
const Scalar | defaultTol_ |
const int | defaultIndex_ |
Basic methods | |
virtual bool | isTime (Scalar time) const |
Test if time is near a TimeEvent (within tolerance). More... | |
virtual Scalar | getAbsTol () const |
virtual Scalar | timeToNextEvent (Scalar time) const |
How much time until the next event. Negative indicating the last event is in the past. More... | |
virtual Scalar | timeOfNextEvent (Scalar time) const |
Time of the next event. Negative indicating the last event is in the past. More... | |
virtual bool | eventInRange (Scalar time1, Scalar time2) const |
Test if an event occurs within the time range. More... | |
virtual bool | isIndex (int index) const |
Test if index is a time event. More... | |
virtual int | indexToNextEvent (int index) const |
How many indices until the next event. Negative indicating the last event is in the past. More... | |
virtual int | indexOfNextEvent (int index) const |
Index of the next event. Negative indicating the last event is in the past. More... | |
virtual bool | eventInRangeIndex (int index1, int index2) const |
Test if an event occurs within the time range. More... | |
virtual void | describe () const |
Describe member data. More... | |
Accessor methods | |
virtual std::string | getName () const |
virtual void | setName (std::string name) |
virtual Scalar | getDefaultTime () const |
virtual Scalar | getDefaultTol () const |
virtual int | getDefaultIndex () const |
This class defines time events which can be used to "trigger" an action. Time events are points in time and/or timestep index where an an action should occur, such as, solution output (mesh and solution) diagnostic output, restart, screen dump, in-situ visualization, user-specified, or any other action.
This class will store a collection time events, so that an object may quiry it and take appropriate action. Time events (time and timestep index) can be specified via
Definition at line 35 of file Tempus_TimeEventBase.hpp.
|
inline |
Constructor.
Definition at line 40 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Destructor.
Definition at line 48 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Test if time is near a TimeEvent (within tolerance).
Reimplemented in Tempus::TimeEventRange< Scalar >, Tempus::TimeEventList< Scalar >, and Tempus::TimeEventComposite< Scalar >.
Definition at line 53 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Reimplemented in Tempus::TimeEventRange< Scalar >, and Tempus::TimeEventList< Scalar >.
Definition at line 56 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
How much time until the next event. Negative indicating the last event is in the past.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventRange< Scalar >, and Tempus::TimeEventList< Scalar >.
Definition at line 60 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Time of the next event. Negative indicating the last event is in the past.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventRange< Scalar >, and Tempus::TimeEventList< Scalar >.
Definition at line 64 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Test if an event occurs within the time range.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventRange< Scalar >, and Tempus::TimeEventList< Scalar >.
Definition at line 68 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Test if index is a time event.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventListIndex< Scalar >, and Tempus::TimeEventRangeIndex< Scalar >.
Definition at line 72 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
How many indices until the next event. Negative indicating the last event is in the past.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventListIndex< Scalar >, and Tempus::TimeEventRangeIndex< Scalar >.
Definition at line 76 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Index of the next event. Negative indicating the last event is in the past.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventListIndex< Scalar >, and Tempus::TimeEventRangeIndex< Scalar >.
Definition at line 80 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Test if an event occurs within the time range.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventListIndex< Scalar >, and Tempus::TimeEventRangeIndex< Scalar >.
Definition at line 84 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Describe member data.
Reimplemented in Tempus::TimeEventComposite< Scalar >, Tempus::TimeEventRange< Scalar >, Tempus::TimeEventList< Scalar >, Tempus::TimeEventListIndex< Scalar >, and Tempus::TimeEventRangeIndex< Scalar >.
Definition at line 88 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Definition at line 98 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Definition at line 99 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Definition at line 101 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Definition at line 102 of file Tempus_TimeEventBase.hpp.
|
inlinevirtual |
Definition at line 103 of file Tempus_TimeEventBase.hpp.
|
private |
Definition at line 109 of file Tempus_TimeEventBase.hpp.
|
private |
Definition at line 110 of file Tempus_TimeEventBase.hpp.
|
private |
Definition at line 111 of file Tempus_TimeEventBase.hpp.
|
private |
Definition at line 112 of file Tempus_TimeEventBase.hpp.