velocityMotionSolver.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) 2012-2016 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::velocityMotionSolver
29
30Description
31 Virtual base class for velocity motion solver
32
33 The boundary displacement is set as a boundary condition
34 on the pointMotionU pointVectorField.
35
36SourceFiles
37 velocityMotionSolver.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef velocityMotionSolver_H
42#define velocityMotionSolver_H
43
44#include "motionSolver.H"
45#include "pointFields.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51
52// Forward Declarations
53class mapPolyMesh;
54
55/*---------------------------------------------------------------------------*\
56 Class velocityMotionSolver Declaration
57\*---------------------------------------------------------------------------*/
60:
61 public motionSolver
62{
63protected:
64
65 // Protected Data
66
67 //- Point motion field
69
70
71 // Protected Member Functions
72
73 //- No copy construct
75
76 //- No copy assignment
77 void operator=(const velocityMotionSolver&) = delete;
78
79public:
80
81 //- Runtime type information
82 TypeName("velocityMotionSolver");
83
84
85 // Constructors
86
87 //- Construct from mesh and dictionary
89 (
90 const polyMesh&,
91 const IOdictionary&,
92 const word& type
93 );
94
95
96 //- Destructor
97 virtual ~velocityMotionSolver() = default;
98
99
100 // Member Functions
101
102 //- Return reference to the point motion velocity field
104 {
105 return pointMotionU_;
106 }
107
108 //- Return const reference to the point motion velocity field
109 const pointVectorField& pointMotionU() const
110 {
111 return pointMotionU_;
112 }
113
114 //- Update local data for geometry changes
115 virtual void movePoints(const pointField&);
116
117 //- Update local data for topology changes
118 virtual void updateMesh(const mapPolyMesh&);
119};
120
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124} // End namespace Foam
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128#endif
129
130// ************************************************************************* //
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:57
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:162
Virtual base class for mesh motion solver.
Definition: motionSolver.H:61
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
Virtual base class for velocity motion solver.
velocityMotionSolver(const velocityMotionSolver &)=delete
No copy construct.
virtual ~velocityMotionSolver()=default
Destructor.
void operator=(const velocityMotionSolver &)=delete
No copy assignment.
TypeName("velocityMotionSolver")
Runtime type information.
const pointVectorField & pointMotionU() const
Return const reference to the point motion velocity field.
pointVectorField pointMotionU_
Point motion field.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
pointVectorField & pointMotionU()
Return reference to the point motion velocity field.
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:598
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73