writeFreeSurface.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2019 Zeljko Tukovic, FSB Zagreb.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::functionObjects::writeFreeSurface
28 
29 Description
30  A function object to write the control points on the free surface
31 
32 SourceFiles
33  writeFreeSurface.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef Foam_functionObjects_writeFreeSurface_H
38 #define Foam_functionObjects_writeFreeSurface_H
39 
40 #include "fvMeshFunctionObject.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace functionObjects
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class writeFreeSurface Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class writeFreeSurface
54 :
56 {
57  // Private Member Functions
58 
59  //- Write data unconditionally
60  void writeData();
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("writeFreeSurface");
67 
68 
69  // Constructors
70 
71  //- Construct from Time and dictionary
73  (
74  const word& name,
75  const Time& runTime,
76  const dictionary& dict
77  );
78 
79 
80  //- No copy construct
81  writeFreeSurface(const writeFreeSurface&) = delete;
82 
83  //- No copy assignment
84  void operator=(const writeFreeSurface&) = delete;
85 
86 
87  //- Destructor
88  virtual ~writeFreeSurface() = default;
89 
90 
91  // Member Functions
92 
93  //- Called at each ++ or += of the time-loop
94  virtual bool execute();
95 
96  //- No-op
97  virtual bool write();
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace functionObjects
104 } // End namespace Foam
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
A function object to write the control points on the free surface.
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
TypeName("writeFreeSurface")
Runtime type information.
engineTime & runTime
virtual ~writeFreeSurface()=default
Destructor.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:69
const word & name() const noexcept
Return the name of this functionObject.
virtual bool execute()
Called at each ++ or += of the time-loop.
A class for handling words, derived from Foam::string.
Definition: word.H:63
writeFreeSurface(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
void operator=(const writeFreeSurface &)=delete
No copy assignment.
Namespace for OpenFOAM.