/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016-2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see .
Class
Foam::functionObjects::runTimeControl
Group
grpUtilitiesFunctionObjects
Description
Controls when the calculation is terminated based on satisfying
user-specified conditions.
Optionally specify a number of write steps before the calculation is
terminated. Here, a write is performed each time that all conditions are
satisfied.
SourceFiles
runTimeControl.C
\*---------------------------------------------------------------------------*/
#ifndef functionObjects_runTimeControl_H
#define functionObjects_runTimeControl_H
#include "fvMeshFunctionObject.H"
#include "Map.H"
#include "Enum.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace functionObjects
{
namespace runTimeControls
{
// Forward declaration of classes
class runTimeCondition;
/*---------------------------------------------------------------------------*\
Class runTimeControl Declaration
\*---------------------------------------------------------------------------*/
class runTimeControl
:
public fvMeshFunctionObject
{
public:
// Public enumerations
enum class satisfiedAction
{
end,
setTrigger
};
static Enum satisfiedActionNames;
private:
// Private data
//- List of conditions to satisfy
PtrList conditions_;
//- Map to define group IDs
Map