/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2020-2026 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- 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::timeStep Description Writes the time step Example of function object specification: \verbatim timeStep { type timeStep; libs ("libutilityFunctionObjects.so"); writeControl timeStep; writeInterval 1; } \endverbatim Output data is written to the dir postProcessing/timeStep/\/ See also Foam::functionObject Foam::functionObjects::logFiles SourceFiles timeStep.C \*---------------------------------------------------------------------------*/ #ifndef timeStepFunctionObject_H #define timeStepFunctionObject_H #include "functionObject.H" #include "logFiles.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { namespace functionObjects { /*---------------------------------------------------------------------------*\ Class timeStep Declaration \*---------------------------------------------------------------------------*/ class timeStep : public functionObject, public logFiles { protected: // Protected Member Functions //- Output file header information virtual void writeFileHeader(const label i); public: //- Runtime type information TypeName("timeStep"); // Constructors //- Construct from Time and dictionary timeStep ( const word& name, const Time& runTime, const dictionary& dict ); //- Disallow default bitwise copy construction timeStep(const timeStep&) = delete; //- Destructor virtual ~timeStep(); // Member Functions //- Read the controls virtual bool read(const dictionary&); //- Return the list of fields required virtual wordList fields() const { return wordList::null(); } //- Execute, currently does nothing virtual bool execute(); //- Write the time step value virtual bool write(); // Member Operators //- Disallow default bitwise assignment void operator=(const timeStep&) = delete; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace functionObjects } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //