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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::dynamicMotionSolverFvMeshAMI
29
30Description
31 The dynamicMotionSolverFvMeshAMI
32
33SourceFiles
34 dynamicMotionSolverFvMeshAMI.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef dynamicMotionSolverFvMeshAMI_H
39#define dynamicMotionSolverFvMeshAMI_H
40
41#include "dynamicFvMesh.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48class motionSolver;
49
50/*---------------------------------------------------------------------------*\
51 Class dynamicMotionSolverFvMeshAMI Declaration
52\*---------------------------------------------------------------------------*/
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
75public:
76
77 //- Runtime type information
78 TypeName("dynamicMotionSolverFvMeshAMI");
79
80
81 // Constructors
82
83 //- Construct from IOobject
85 (
86 const IOobject& io,
87 const bool doInit=true
88 );
89
90 //- Construct from components without boundary.
91 // Boundary is added using addFvPatches() member function
93 (
94 const IOobject& io,
97 labelList&& allOwner,
98 labelList&& allNeighbour,
99 const bool syncPar = true
100 );
101
102
103 //- Destructor
104 virtual ~dynamicMotionSolverFvMeshAMI() = default;
105
106
107 // Member Functions
108
109 //- Initialise all non-demand-driven data
110 virtual bool init(const bool doInit);
111
112 //- Return the motionSolver
113 const motionSolver& motion() const;
114
115 //- Update the mesh for both mesh motion and topology change
116 virtual bool update();
117};
118
119
120// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122} // End namespace Foam
123
124// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125
126#endif
127
128// ************************************************************************* //
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:81
The dynamicMotionSolverFvMeshAMI.
TypeName("dynamicMotionSolverFvMeshAMI")
Runtime type information.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
virtual bool update()
Update the mesh for both mesh motion and topology change.
virtual ~dynamicMotionSolverFvMeshAMI()=default
Destructor.
const motionSolver & motion() const
Return the motionSolver.
Virtual base class for mesh motion solver.
Definition: motionSolver.H:61
virtual const faceList & faces() const
Return raw faces.
Definition: polyMesh.C:1108
virtual const pointField & points() const
Return raw points.
Definition: polyMesh.C:1083
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73