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/>.
28 Executes system calls, entered in the form of a string list
34 \*---------------------------------------------------------------------------*/
39 #include "stringList.H"
40 #include "pointFieldFwd.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
52 /*---------------------------------------------------------------------------*\
53 Class systemCall Declaration
54 \*---------------------------------------------------------------------------*/
62 //- Name of this set of system calls
65 //- List of calls to execute - every step
66 stringList executeCalls_;
68 //- List of calls to execute when exiting the time-loop
71 //- List of calls to execute - write steps
72 stringList writeCalls_;
75 // Private Member Functions
77 //- Disallow default bitwise copy construct
78 systemCall(const systemCall&);
80 //- Disallow default bitwise assignment
81 void operator=(const systemCall&);
86 //- Runtime type information
87 TypeName("systemCall");
92 //- Construct for given objectRegistry and dictionary.
93 // Allow the possibility to load fields from files
97 const objectRegistry& unused,
99 const bool loadFromFilesUnused = false
104 virtual ~systemCall();
109 //- Return name of the system call set
110 virtual const word& name() const
115 //- Read the system calls
116 virtual void read(const dictionary&);
118 //- Execute the "executeCalls" at each time-step
119 virtual void execute();
121 //- Execute the "endCalls" at the final time-loop
124 //- Write, execute the "writeCalls"
125 virtual void write();
127 //- Update for changes of mesh
128 virtual void updateMesh(const mapPolyMesh&)
131 //- Update for changes of mesh
132 virtual void movePoints(const pointField&)
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 } // End namespace Foam
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 // ************************************************************************* //