meshToMeshAdjustTimeStep.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-2024 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::meshToMeshAdjustTimeStep
26 
27 Description
28  Adjusts time-step for meshToMesh mapping.
29 
30 SourceFiles
31  meshToMeshAdjustTimeStep.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef meshToMeshAdjustTimeStep_H
36 #define meshToMeshAdjustTimeStep_H
37 
38 #include "fvMeshFunctionObject.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace functionObjects
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class meshToMeshAdjustTimeStep 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 objectRegistry& obr
75  );
76 
77  //- Construct from components
79  (
80  const word& name,
81  const Time& runTime,
82  const dictionary& dict
83  );
84 
85  //- Disallow default bitwise copy construction
87  (
89  ) = delete;
90 
91 
92  // Destructor
93  virtual ~meshToMeshAdjustTimeStep();
94 
95 
96  // Member Functions
97 
98  //- Read and reset the timeStep Function1
99  virtual bool read(const dictionary&);
100 
101  //- Return the list of fields required
102  virtual wordList fields() const
103  {
104  return wordList::null();
105  }
106 
107  //- Return the time to the next write
108  virtual scalar timeToNextAction();
109 
110  //- Do nothing
111  virtual bool execute();
112 
113  //- Do nothing
114  virtual bool write();
115 
116 
117  // Member Operators
118 
119  //- Disallow default bitwise assignment
120  void operator=(const meshToMeshAdjustTimeStep&) = delete;
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace functionObjects
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
static const List< word > & 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:76
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
const word & name() const
Return the name of this functionObject.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Adjusts time-step for meshToMesh mapping.
virtual wordList fields() const
Return the list of fields required.
meshToMeshAdjustTimeStep(const word &name, const objectRegistry &obr)
Construct from components.
TypeName("meshToMeshAdjustTimeStep")
Runtime type information.
void operator=(const meshToMeshAdjustTimeStep &)=delete
Disallow default bitwise assignment.
virtual scalar timeToNextAction()
Return the time to the next write.
virtual bool read(const dictionary &)
Read and reset the timeStep Function1.
fvMeshTopoChanger which maps the fields to a new mesh or sequence of meshes
Registry of regIOobjects.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
dictionary dict