1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "functionObjectTemplate.H"
30 //{{{ begin codeInclude
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
41 defineTypeNameAndDebug(${typeName}FunctionObject, 0);
44 // * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * //
51 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
53 const objectRegistry& ${typeName}FunctionObject::obr() const
59 const fvMesh& ${typeName}FunctionObject::mesh() const
61 return refCast<const fvMesh>(obr_);
65 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
67 ${typeName}FunctionObject::${typeName}FunctionObject
70 const objectRegistry& obr,
71 const dictionary& dict,
82 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
84 ${typeName}FunctionObject::~${typeName}FunctionObject()
88 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
90 void ${typeName}FunctionObject::read(const dictionary& dict)
92 if (${verbose:-false})
94 Info<<"read ${typeName} sha1: ${SHA1sum}\n";
103 void ${typeName}FunctionObject::execute()
105 if (${verbose:-false})
107 Info<<"execute ${typeName} sha1: ${SHA1sum}\n";
116 void ${typeName}FunctionObject::end()
118 if (${verbose:-false})
120 Info<<"end ${typeName} sha1: ${SHA1sum}\n";
129 void ${typeName}FunctionObject::write()
131 if (${verbose:-false})
133 Info<<"write ${typeName} sha1: ${SHA1sum}\n";
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
146 // ************************************************************************* //