19 #ifndef GEOSX_MANAGERS_EVENTS_PERIODICEVENT_HPP_ 20 #define GEOSX_MANAGERS_EVENTS_PERIODICEVENT_HPP_ 38 Group *
const parent );
102 real64 const eventProgress,
112 static constexpr
auto timeFrequencyString =
"timeFrequency";
113 static constexpr
auto cycleFrequencyString =
"cycleFrequency";
114 static constexpr
auto targetExactTimestepString =
"targetExactTimestep";
115 static constexpr
auto functionNameString =
"function";
116 static constexpr
auto functionInputObjectString =
"object";
117 static constexpr
auto functionInputSetnameString =
"set";
118 static constexpr
auto functionSetNamesString =
"setNames";
119 static constexpr
auto functionStatOptionString =
"stat";
120 static constexpr
auto eventThresholdString =
"threshold";
131 } periodicEventViewKeys;
integer m_targetExactTimestep
Whether to target the exact timestep.
real64 m_timeFrequency
The event time frequency.
real64 m_eventThreshold
The event threshold.
string m_functionInputObject
The name of the optional function input object.
integer m_cycleFrequency
The event cycle frequency.
virtual real64 GetEventTypeDtRequest(real64 const time) override
Get event-specifit dt requests.
double real64
64-bit floating point type.
Group::wrapperMap::KeyIndex ViewKey
Type alias for KeyIndexT type used for wrapper lookups.
string m_functionInputSetname
The name of the optional function input set.
void CheckOptionalFunctionThreshold(real64 const time, real64 const dt, integer const cycle, dataRepository::Group *domain)
Determine if an optional function f should be called, and call it if so.
string m_functionName
The optional function's name.
virtual void EstimateEventTiming(real64 const time, real64 const dt, integer const cycle, dataRepository::Group *domain) override
Perform the calculations to estimate the timing of the event.
static string CatalogName()
Catalog name interface.
dataRepository::Group * m_functionTarget
A pointer to an optional function.
std::int32_t integer
Signed integer type.
integer m_functionStatOption
The optional funciton's statistic option.
PeriodicEvent(const std::string &name, Group *const parent)
Constructor.
virtual void Cleanup(real64 const time_n, integer const cycleNumber, integer const eventCounter, real64 const eventProgress, dataRepository::Group *domain) override
Called as the code exits the main run loop.
virtual ~PeriodicEvent() override
Destructor.
std::string string
String type.