dynamicMotionSolverFvMeshAMI.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  Copyright (C) 2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::dynamicMotionSolverFvMeshAMI
29 
30 Description
31  The dynamicMotionSolverFvMeshAMI
32 
33 SourceFiles
34  dynamicMotionSolverFvMeshAMI.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef dynamicMotionSolverFvMeshAMI_H
39 #define dynamicMotionSolverFvMeshAMI_H
40 
41 #include "dynamicFvMesh.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 class motionSolver;
49 
50 /*---------------------------------------------------------------------------*\
51  Class dynamicMotionSolverFvMeshAMI Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public dynamicFvMesh
57 {
58  // Private data
59 
60  autoPtr<motionSolver> motionPtr_;
61 
62 
63  // Private Member Functions
64 
65  //- No copy construct
67  (
69  ) = delete;
70 
71  //- No copy assignment
72  void operator=(const dynamicMotionSolverFvMeshAMI&) = delete;
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("dynamicMotionSolverFvMeshAMI");
79 
80 
81  // Constructors
82 
83  //- Construct from IOobject
85 
86  //- Construct from components without boundary.
87  // Boundary is added using addFvPatches() member function
89  (
90  const IOobject& io,
92  faceList&& faces,
93  labelList&& allOwner,
94  labelList&& allNeighbour,
95  const bool syncPar = true
96  );
97 
98 
99  //- Destructor
100  virtual ~dynamicMotionSolverFvMeshAMI() = default;
101 
102 
103  // Member Functions
104 
105  //- Return the motionSolver
106  const motionSolver& motion() const;
107 
108  //- Update the mesh for both mesh motion and topology change
109  virtual bool update();
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
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::dynamicMotionSolverFvMeshAMI::TypeName
TypeName("dynamicMotionSolverFvMeshAMI")
Runtime type information.
Foam::dynamicFvMesh
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:78
Foam::Field< vector >
Foam::dynamicMotionSolverFvMeshAMI::~dynamicMotionSolverFvMeshAMI
virtual ~dynamicMotionSolverFvMeshAMI()=default
Destructor.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::dynamicMotionSolverFvMeshAMI::motion
const motionSolver & motion() const
Return the motionSolver.
Definition: dynamicMotionSolverFvMeshAMI.C:92
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::dynamicMotionSolverFvMeshAMI::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition: dynamicMotionSolverFvMeshAMI.C:98
Foam::List< face >
dynamicFvMesh.H
Foam::dynamicMotionSolverFvMeshAMI
The dynamicMotionSolverFvMeshAMI.
Definition: dynamicMotionSolverFvMeshAMI.H:53