dynamicMotionSolverFvMesh.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) 2011-2017 OpenFOAM Foundation
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::dynamicMotionSolverFvMesh
28 
29 Description
30  The dynamicMotionSolverFvMesh
31 
32 SourceFiles
33  dynamicMotionSolverFvMesh.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef dynamicMotionSolverFvMesh_H
38 #define dynamicMotionSolverFvMesh_H
39 
40 #include "dynamicFvMesh.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class motionSolver;
48 
49 /*---------------------------------------------------------------------------*\
50  Class dynamicMotionSolverFvMesh Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
55  public dynamicFvMesh
56 {
57  // Private data
58 
59  autoPtr<motionSolver> motionPtr_;
60 
61 
62  // Private Member Functions
63 
64  //- No copy construct
66 
67  //- No copy assignment
68  void operator=(const dynamicMotionSolverFvMesh&) = delete;
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("dynamicMotionSolverFvMesh");
75 
76 
77  // Constructors
78 
79  //- Construct from IOobject
81 
82  //- Construct from components without boundary.
83  // Boundary is added using addFvPatches() member function
85  (
86  const IOobject& io,
88  faceList&& faces,
89  labelList&& allOwner,
90  labelList&& allNeighbour,
91  const bool syncPar = true
92  );
93 
94 
95  //- Destructor
97 
98 
99  // Member Functions
100 
101  //- Return the motionSolver
102  const motionSolver& motion() const;
103 
104  //- Update the mesh for both mesh motion and topology change
105  virtual bool update();
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
Foam::dynamicMotionSolverFvMesh::TypeName
TypeName("dynamicMotionSolverFvMesh")
Runtime type information.
Foam::polyMesh::points
virtual const pointField & points() const
Return raw points.
Definition: polyMesh.C:1038
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
Foam::dynamicMotionSolverFvMesh::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition: dynamicMotionSolverFvMesh.C:93
Foam::dynamicFvMesh
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:78
Foam::dynamicMotionSolverFvMesh::motion
const motionSolver & motion() const
Return the motionSolver.
Definition: dynamicMotionSolverFvMesh.C:87
Foam::Field< vector >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::polyMesh::faces
virtual const faceList & faces() const
Return raw faces.
Definition: polyMesh.C:1063
Foam::motionSolver
Virtual base class for mesh motion solver.
Definition: motionSolver.H:58
Foam::List< face >
dynamicFvMesh.H
Foam::dynamicMotionSolverFvMesh::~dynamicMotionSolverFvMesh
~dynamicMotionSolverFvMesh()
Destructor.
Definition: dynamicMotionSolverFvMesh.C:81
Foam::dynamicMotionSolverFvMesh
The dynamicMotionSolverFvMesh.
Definition: dynamicMotionSolverFvMesh.H:52