dynamicMotionSolverFvMesh.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) 2011-2019 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::dynamicMotionSolverFvMesh
26 
27 Description
28  The dynamicMotionSolverFvMesh
29 
30 SourceFiles
31  dynamicMotionSolverFvMesh.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef dynamicMotionSolverFvMesh_H
36 #define dynamicMotionSolverFvMesh_H
37 
38 #include "dynamicFvMesh.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 class motionSolver;
46 
47 /*---------------------------------------------------------------------------*\
48  Class dynamicMotionSolverFvMesh Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public dynamicFvMesh
54 {
55  // Private Data
56 
57  autoPtr<motionSolver> motionPtr_;
58 
59  //- Optional list of vectorFields to update for mesh motion
60  // For modern solvers using Uf and correctPhi to update the flux
61  // after motion it is not necessary to specify a "velocityFields" list
62  velocityMotionCorrection velocityMotionCorrection_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("dynamicMotionSolverFvMesh");
69 
70 
71  // Constructors
72 
73  //- Construct from IOobject
75 
76  //- Disallow default bitwise copy construction
78 
79 
80  //- Destructor
82 
83 
84  // Member Functions
85 
86  //- Return the motionSolver
87  const motionSolver& motion() const;
88 
89  //- Update the mesh for both mesh motion and topology change
90  virtual bool update();
91 
92 
93  // Write
94 
95  //- Write the underlying polyMesh and other data
96  virtual bool writeObject
97  (
101  const bool write = true
102  ) const;
103 
104 
105  // Member Operators
106 
107  //- Disallow default bitwise assignment
108  void operator=(const dynamicMotionSolverFvMesh&) = delete;
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write the underlying polyMesh and other data.
virtual bool update()
Update the mesh for both mesh motion and topology change.
dynamicMotionSolverFvMesh(const IOobject &io)
Construct from IOobject.
Virtual base class for mesh motion solver.
Definition: motionSolver.H:55
virtual bool write(const bool write=true) const
Write mesh using IO settings from time.
Definition: fvMesh.C:1093
Helper class to update the velocity boundary conditions.
Definition: dynamicFvMesh.H:85
streamFormat
Enumeration for the format of data in the stream.
Definition: IOstream.H:86
compressionType
Enumeration for the format of data in the stream.
Definition: IOstream.H:193
void operator=(const dynamicMotionSolverFvMesh &)=delete
Disallow default bitwise assignment.
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:49
Version number type.
Definition: IOstream.H:96
const motionSolver & motion() const
Return the motionSolver.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
The dynamicMotionSolverFvMesh.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92
TypeName("dynamicMotionSolverFvMesh")
Runtime type information.
Namespace for OpenFOAM.