meshToMeshAdjustTimeStepFunctionObject.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Class
25  Foam::functionObjects::meshToMeshAdjustTimeStepFunctionObject
26 
27 Description
28  Adjusts time-step for meshToMesh mapping.
29 
30 SourceFiles
31  meshToMeshAdjustTimeStepFunctionObject.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef functionObjects_meshToMeshAdjustTimeStepFunctionObject_H
36 #define functionObjects_meshToMeshAdjustTimeStepFunctionObject_H
37 
38 #include "fvMeshFunctionObject.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace functionObjects
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class meshToMeshAdjustTimeStepFunctionObject Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
55 {
56  // Private Data
57 
58  //- Reference to the meshToMesh fvMeshTopoChanger
59  const fvMeshTopoChangers::meshToMesh& meshToMesh_;
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("meshToMeshAdjustTimeStep");
66 
67 
68  // Constructors
69 
70  //- Construct from components
72  (
73  const word& name,
74  const Time& runTime,
75  const dictionary& dict
76  );
77 
78  //- Disallow default bitwise copy construction
80  (
82  ) = delete;
83 
84 
85  // Destructor
87 
88 
89  // Member Functions
90 
91  //- Read and reset the timeStep Function1
92  virtual bool read(const dictionary&);
93 
94  //- Return the list of fields required
95  virtual wordList fields() const
96  {
97  return wordList::null();
98  }
99 
100  //- Return the time to the next write
101  virtual scalar timeToNextWrite();
102 
103  //- Do nothing
104  virtual bool execute();
105 
106  //- Do nothing
107  virtual bool write();
108 
109 
110  // Member Operators
111 
112  //- Disallow default bitwise assignment
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace functionObjects
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
dictionary dict
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual bool read(const dictionary &)
Read and reset the timeStep Function1.
static const List< T > & null()
Return a null List.
Definition: ListI.H:118
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:69
TypeName("meshToMeshAdjustTimeStep")
Runtime type information.
A class for handling words, derived from string.
Definition: word.H:59
virtual wordList fields() const
Return the list of fields required.
meshToMeshAdjustTimeStepFunctionObject(const word &name, const Time &runTime, const dictionary &dict)
Construct from components.
fvMeshTopoChanger which maps to new mesh
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
void operator=(const meshToMeshAdjustTimeStepFunctionObject &)=delete
Disallow default bitwise assignment.
Namespace for OpenFOAM.