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 -------------------------------------------------------------------------------
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::velocityMotionSolver
29 
30 Description
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 
36 SourceFiles
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 
49 namespace Foam
50 {
51 
52 // Forward Declarations
53 class mapPolyMesh;
54 
55 /*---------------------------------------------------------------------------*\
56  Class velocityMotionSolver Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public motionSolver
62 {
63 protected:
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 
79 public:
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 // ************************************************************************* //
Foam::velocityMotionSolver::operator=
void operator=(const velocityMotionSolver &)=delete
No copy assignment.
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:54
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
motionSolver.H
Foam::velocityMotionSolver::movePoints
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Definition: velocityMotionSolver.C:66
Foam::velocityMotionSolver
Virtual base class for velocity motion solver.
Definition: velocityMotionSolver.H:58
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::velocityMotionSolver::pointMotionU
const pointVectorField & pointMotionU() const
Return const reference to the point motion velocity field.
Definition: velocityMotionSolver.H:108
Foam::Field< vector >
Foam::velocityMotionSolver::updateMesh
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
Definition: velocityMotionSolver.C:72
Foam::velocityMotionSolver::pointMotionU_
pointVectorField pointMotionU_
Point motion field.
Definition: velocityMotionSolver.H:67
Foam::velocityMotionSolver::velocityMotionSolver
velocityMotionSolver(const velocityMotionSolver &)=delete
No copy construct.
Foam::velocityMotionSolver::TypeName
TypeName("velocityMotionSolver")
Runtime type information.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::motionSolver
Virtual base class for mesh motion solver.
Definition: motionSolver.H:58
Foam::type
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:590
Foam::velocityMotionSolver::pointMotionU
pointVectorField & pointMotionU()
Return reference to the point motion velocity field.
Definition: velocityMotionSolver.H:102
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:161
Foam::velocityMotionSolver::~velocityMotionSolver
virtual ~velocityMotionSolver()=default
Destructor.
Foam::GeometricField< vector, pointPatchField, pointMesh >
pointFields.H