ENH: timeControl - extended use of time and triggers

This commit is contained in:
Andrew Heather
2018-08-21 13:09:21 +01:00
parent 74dc8b3ce1
commit 848f0266eb
2 changed files with 73 additions and 16 deletions

View File

@ -75,6 +75,25 @@ class timeControl
:
public functionObject
{
public:
// Public enumerations
//- Control mode
enum class controlMode
{
TIME,
TRIGGER,
TIME_OR_TRIGGER,
TIME_AND_TRIGGER
};
static const Enum<controlMode> controlModeNames_;
private:
// Private data
//- Reference to the time database
@ -86,6 +105,9 @@ class timeControl
// Optional user inputs
//- Control mode (combination of time/trigger behaviour)
controlMode controlMode_;
//- Activation time - defaults to -VGREAT
scalar timeStart_;