displacementMotionSolver.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 | Copyright (C) 2012-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::displacementMotionSolver
26 
27 Description
28  Virtual base class for displacement motion solver
29 
30  The boundary displacement is set as a boundary condition
31  on the pointDisplacement pointVectorField.
32 
33 SourceFiles
34  displacementMotionSolver.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef displacementMotionSolver_H
39 #define displacementMotionSolver_H
40 
41 #include "points0MotionSolver.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class displacementMotionSolver Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public points0MotionSolver
55 {
56 protected:
57 
58  // Protected data
59 
60  //- Point motion field
62 
63 
64 private:
65 
66  // Private Member Functions
67 
68  //- Disallow default bitwise copy construct
70 
71  //- Disallow default bitwise assignment
72  void operator=(const displacementMotionSolver&);
73 
74 public:
75 
76  //- Runtime type information
77  TypeName("displacementMotionSolver");
78 
79 
80  // Constructors
81 
82  //- Construct from mesh and dictionary
84  (
85  const polyMesh&,
86  const IOdictionary&,
87  const word& type
88  );
89 
90 
91  //- Destructor
92  virtual ~displacementMotionSolver();
93 
94 
95  // Member Functions
96 
97  //- Return reference to the point motion displacement field
99  {
100  return pointDisplacement_;
101  }
102 
103  //- Return const reference to the point motion displacement field
104  const pointVectorField& pointDisplacement() const
105  {
106  return pointDisplacement_;
107  }
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Virtual base class for displacement motion solver.
TypeName("displacementMotionSolver")
Runtime type information.
pointVectorField pointDisplacement_
Point motion field.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:52
pointVectorField & pointDisplacement()
Return reference to the point motion displacement field.
A class for handling words, derived from string.
Definition: word.H:59
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:485
virtual ~displacementMotionSolver()
Destructor.
Virtual base class for displacement motion solvers.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Namespace for OpenFOAM.