ENH: Initial implementation for FO activation by trigger

This commit is contained in:
Andrew Heather
2018-08-16 12:44:33 +01:00
parent a8fa75246b
commit 21d2d7e6c3
8 changed files with 142 additions and 26 deletions

View File

@ -458,6 +458,15 @@ Foam::autoPtr<Foam::functionObjectList> Foam::functionObjectList::New
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::label Foam::functionObjectList::triggerIndex() const
{
label triggeri = labelMin;
stateDict().readIfPresent("triggerIndex", triggeri);
return triggeri;
}
void Foam::functionObjectList::resetState()
{
// Reset (re-read) the state dictionary