Tempus
Version of the Day
Time Integration
|
TimeEventList specifies a list of time events. More...
#include <Tempus_TimeEventList_decl.hpp>
Public Member Functions | |
TimeEventList () | |
Default constructor. More... | |
TimeEventList (std::string name, std::vector< Scalar > timeList, Scalar relTol, bool landOnExactly) | |
Construct with full argument list of data members. More... | |
virtual | ~TimeEventList () |
Destructor. More... | |
Public Member Functions inherited from Tempus::TimeEventBase< Scalar > | |
TimeEventBase () | |
Constructor. More... | |
virtual | ~TimeEventBase () |
Destructor. 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 std::string | getName () const |
virtual void | setName (std::string name) |
virtual Scalar | getDefaultTime () const |
virtual Scalar | getDefaultTol () const |
virtual int | getDefaultIndex () const |
Protected Member Functions | |
virtual void | setTimeScale () |
Protected Attributes | |
std::vector< Scalar > | timeList_ |
Sorted and unique list of time events. More... | |
Scalar | timeScale_ |
A reference time scale, max(abs(start_,stop_)). More... | |
Scalar | relTol_ |
Relative time tolerance for matching time events. More... | |
Scalar | absTol_ |
Absolute time tolerance, relTol_*timeScale_. More... | |
bool | landOnExactly_ |
Should these time events be landed on exactly, i.e, adjust the timestep to hit time event, versus stepping over and keeping the time step unchanged. More... | |
Basic methods | |
virtual bool | isTime (Scalar time) const |
Test if time is near a TimeEvent (within tolerance). More... | |
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 void | describe () const |
Describe member data. More... | |
Accessor methods | |
virtual std::vector< Scalar > | getTimeList () const |
virtual void | setTimeList (std::vector< Scalar > timeList) |
virtual void | addTime (Scalar time) |
virtual void | clearTimeList () |
virtual Scalar | getRelTol () const |
virtual void | setRelTol (Scalar relTol) |
virtual Scalar | getAbsTol () const |
virtual bool | getLandOnExactly () const |
virtual void | setLandOnExactly (bool LOE) |
TimeEventList specifies a list of time events.
Definition at line 30 of file Tempus_TimeEventList_decl.hpp.
Tempus::TimeEventList< Scalar >::TimeEventList | ( | ) |
Default constructor.
Definition at line 16 of file Tempus_TimeEventList_impl.hpp.
Tempus::TimeEventList< Scalar >::TimeEventList | ( | std::string | name, |
std::vector< Scalar > | timeList, | ||
Scalar | relTol, | ||
bool | landOnExactly | ||
) |
Construct with full argument list of data members.
Definition at line 26 of file Tempus_TimeEventList_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 42 of file Tempus_TimeEventList_decl.hpp.
|
virtual |
Test if time is near a TimeEvent (within tolerance).
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 109 of file Tempus_TimeEventList_impl.hpp.
|
virtual |
How much time until the next event. Negative indicating the last event is in the past.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 116 of file Tempus_TimeEventList_impl.hpp.
|
virtual |
Time of the next event. Negative indicating the last event is in the past.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 123 of file Tempus_TimeEventList_impl.hpp.
|
virtual |
Test if an event occurs within the time range.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 147 of file Tempus_TimeEventList_impl.hpp.
|
virtual |
Describe member data.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 175 of file Tempus_TimeEventList_impl.hpp.
|
inlinevirtual |
Definition at line 64 of file Tempus_TimeEventList_decl.hpp.
|
virtual |
Definition at line 60 of file Tempus_TimeEventList_impl.hpp.
|
virtual |
Definition at line 68 of file Tempus_TimeEventList_impl.hpp.
|
inlinevirtual |
Definition at line 67 of file Tempus_TimeEventList_decl.hpp.
|
inlinevirtual |
Definition at line 69 of file Tempus_TimeEventList_decl.hpp.
|
virtual |
Definition at line 101 of file Tempus_TimeEventList_impl.hpp.
|
inlinevirtual |
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 72 of file Tempus_TimeEventList_decl.hpp.
|
inlinevirtual |
Definition at line 74 of file Tempus_TimeEventList_decl.hpp.
|
inlinevirtual |
Definition at line 75 of file Tempus_TimeEventList_decl.hpp.
|
protectedvirtual |
Definition at line 39 of file Tempus_TimeEventList_impl.hpp.
|
protected |
Sorted and unique list of time events.
Definition at line 83 of file Tempus_TimeEventList_decl.hpp.
|
protected |
A reference time scale, max(abs(start_,stop_)).
Definition at line 85 of file Tempus_TimeEventList_decl.hpp.
|
protected |
Relative time tolerance for matching time events.
Definition at line 86 of file Tempus_TimeEventList_decl.hpp.
|
protected |
Absolute time tolerance, relTol_*timeScale_.
Definition at line 87 of file Tempus_TimeEventList_decl.hpp.
|
protected |
Should these time events be landed on exactly, i.e, adjust the timestep to hit time event, versus stepping over and keeping the time step unchanged.
Definition at line 88 of file Tempus_TimeEventList_decl.hpp.