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 -------------------------------------------------------------------------------
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::velocityMotionSolver
28 
29 Description
30  Virtual base class for velocity motion solver
31 
32  The boundary displacement is set as a boundary condition
33  on the pointMotionU pointVectorField.
34 
35 SourceFiles
36  velocityMotionSolver.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef velocityMotionSolver_H
41 #define velocityMotionSolver_H
42 
43 #include "motionSolver.H"
44 #include "pointFields.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 class mapPolyMesh;
52 
53 /*---------------------------------------------------------------------------*\
54  Class velocityMotionSolver Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public motionSolver
60 {
61 protected:
62 
63  // Protected data
64 
65  //- Point motion field
67 
68 private:
69 
70  // Private Member Functions
71 
72  //- No copy construct
74 
75  //- No copy assignment
76  void operator=(const velocityMotionSolver&) = delete;
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("velocityMotionSolver");
82 
83 
84  // Constructors
85 
86  //- Construct from mesh and dictionary
88  (
89  const polyMesh&,
90  const IOdictionary&,
91  const word& type
92  );
93 
94 
95  //- Destructor
96  virtual ~velocityMotionSolver();
97 
98 
99  // Member Functions
100 
101  //- Return reference to the point motion velocity field
103  {
104  return pointMotionU_;
105  }
106 
107  //- Return const reference to the point motion velocity field
108  const pointVectorField& pointMotionU() const
109  {
110  return pointMotionU_;
111  }
112 
113  //- Update local data for geometry changes
114  virtual void movePoints(const pointField&);
115 
116  //- Update local data for topology changes
117  virtual void updateMesh(const mapPolyMesh&);
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
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:62
motionSolver.H
Foam::velocityMotionSolver::movePoints
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Definition: velocityMotionSolver.C:72
Foam::velocityMotionSolver
Virtual base class for velocity motion solver.
Definition: velocityMotionSolver.H:56
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:107
Foam::Field< vector >
Foam::velocityMotionSolver::updateMesh
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
Definition: velocityMotionSolver.C:78
Foam::velocityMotionSolver::pointMotionU_
pointVectorField pointMotionU_
Point motion field.
Definition: velocityMotionSolver.H:65
Foam::velocityMotionSolver::TypeName
TypeName("velocityMotionSolver")
Runtime type information.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::velocityMotionSolver::~velocityMotionSolver
virtual ~velocityMotionSolver()
Destructor.
Definition: velocityMotionSolver.C:66
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:101
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:160
Foam::GeometricField< vector, pointPatchField, pointMesh >
pointFields.H