Tempus
Version of the Day
Time Integration
|
TimeEventRange specifies a start, stop and stride time. More...
#include <Tempus_TimeEventRange_decl.hpp>
Public Member Functions | |
TimeEventRange () | |
Default constructor. More... | |
TimeEventRange (std::string name, Scalar start, Scalar stop, Scalar stride, Scalar relTol, bool landOnExactly) | |
Construct with full argument list of data members. More... | |
TimeEventRange (std::string name, Scalar start, Scalar stop, int numEvents, Scalar relTol, bool landOnExactly) | |
Construct with full argument list of data members. More... | |
virtual | ~TimeEventRange () |
Destructor. 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... | |
Accessor methods | |
virtual void | setTimeRange (Scalar start, Scalar stop, Scalar stride) |
virtual void | setTimeRange (Scalar start, Scalar stop, int numEvents) |
virtual Scalar | getTimeStart () const |
virtual void | setTimeStart (Scalar start) |
virtual Scalar | getTimeStop () const |
virtual void | setTimeStop (Scalar stop) |
virtual Scalar | getTimeStride () const |
virtual void | setTimeStride (Scalar stride) |
virtual int | getNumEvents () const |
virtual void | setNumEvents (int numEvents) |
virtual Scalar | getRelTol () const |
virtual void | setRelTol (Scalar relTol) |
virtual Scalar | getAbsTol () const |
virtual bool | getLandOnExactly () const |
virtual void | setLandOnExactly (bool LOE) |
virtual void | describe () const |
Describe member data. 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 | |
Scalar | start_ |
Start of time range. More... | |
Scalar | stop_ |
Stop of time range. More... | |
Scalar | stride_ |
Stride of time range. More... | |
unsigned | numEvents_ |
Number of events in time range. 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... | |
TimeEventRange specifies a start, stop and stride time.
Definition at line 29 of file Tempus_TimeEventRange_decl.hpp.
Tempus::TimeEventRange< Scalar >::TimeEventRange | ( | ) |
Default constructor.
Definition at line 16 of file Tempus_TimeEventRange_impl.hpp.
Tempus::TimeEventRange< Scalar >::TimeEventRange | ( | std::string | name, |
Scalar | start, | ||
Scalar | stop, | ||
Scalar | stride, | ||
Scalar | relTol, | ||
bool | landOnExactly | ||
) |
Construct with full argument list of data members.
Definition at line 32 of file Tempus_TimeEventRange_impl.hpp.
Tempus::TimeEventRange< Scalar >::TimeEventRange | ( | std::string | name, |
Scalar | start, | ||
Scalar | stop, | ||
int | numEvents, | ||
Scalar | relTol, | ||
bool | landOnExactly | ||
) |
Construct with full argument list of data members.
Definition at line 50 of file Tempus_TimeEventRange_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 45 of file Tempus_TimeEventRange_decl.hpp.
|
virtual |
Describe member data.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 204 of file Tempus_TimeEventRange_impl.hpp.
|
virtual |
Test if an event occurs within the time range.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 179 of file Tempus_TimeEventRange_impl.hpp.
|
inlinevirtual |
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 84 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 86 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 78 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 81 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 69 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 72 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 75 of file Tempus_TimeEventRange_decl.hpp.
|
virtual |
Test if time is near a TimeEvent (within tolerance).
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 143 of file Tempus_TimeEventRange_impl.hpp.
|
inlinevirtual |
Definition at line 87 of file Tempus_TimeEventRange_decl.hpp.
|
virtual |
Definition at line 122 of file Tempus_TimeEventRange_impl.hpp.
|
virtual |
Definition at line 135 of file Tempus_TimeEventRange_impl.hpp.
|
inlinevirtual |
Definition at line 64 of file Tempus_TimeEventRange_decl.hpp.
|
inlinevirtual |
Definition at line 66 of file Tempus_TimeEventRange_decl.hpp.
|
protectedvirtual |
Definition at line 90 of file Tempus_TimeEventRange_impl.hpp.
|
virtual |
Definition at line 70 of file Tempus_TimeEventRange_impl.hpp.
|
virtual |
Definition at line 80 of file Tempus_TimeEventRange_impl.hpp.
|
virtual |
Definition at line 104 of file Tempus_TimeEventRange_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 157 of file Tempus_TimeEventRange_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 150 of file Tempus_TimeEventRange_impl.hpp.
|
protected |
Absolute time tolerance, relTol_*timeScale_.
Definition at line 105 of file Tempus_TimeEventRange_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 106 of file Tempus_TimeEventRange_decl.hpp.
|
protected |
Number of events in time range.
Definition at line 101 of file Tempus_TimeEventRange_decl.hpp.
|
protected |
Relative time tolerance for matching time events.
Definition at line 104 of file Tempus_TimeEventRange_decl.hpp.
|
protected |
Start of time range.
Definition at line 98 of file Tempus_TimeEventRange_decl.hpp.
|
protected |
Stop of time range.
Definition at line 99 of file Tempus_TimeEventRange_decl.hpp.
|
protected |
Stride of time range.
Definition at line 100 of file Tempus_TimeEventRange_decl.hpp.
|
protected |
A reference time scale, max(abs(start_,stop_)).
Definition at line 103 of file Tempus_TimeEventRange_decl.hpp.