Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::functionObjects::writeFreeSurface
28
29Description
30 A function object to write the control points on the free surface
31
32SourceFiles
33 writeFreeSurface.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef Foam_functionObjects_writeFreeSurface_H
38#define Foam_functionObjects_writeFreeSurface_H
39
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46namespace functionObjects
47{
49/*---------------------------------------------------------------------------*\
50 Class writeFreeSurface Declaration
51\*---------------------------------------------------------------------------*/
52
54:
56{
57 // Private Member Functions
58
59 //- Write data unconditionally
60 void writeData();
61
62
63public:
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;
90
91 // Member Functions
92
93 //- Called at each ++ or += of the time-loop
94 virtual bool execute();
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// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition Time.H:75
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual ~writeFreeSurface()=default
Destructor.
writeFreeSurface(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
void operator=(const writeFreeSurface &)=delete
No copy assignment.
writeFreeSurface(const writeFreeSurface &)=delete
No copy construct.
TypeName("writeFreeSurface")
Runtime type information.
virtual bool execute()
Called at each ++ or += of the time-loop.
A class for handling words, derived from Foam::string.
Definition word.H:66
engineTime & runTime
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Namespace for OpenFOAM.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68