All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
displacementMotionSolver.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2012-2019 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 public:
65 
66  //- Runtime type information
67  TypeName("displacementMotionSolver");
68 
69 
70  // Constructors
71 
72  //- Construct from mesh and dictionary
74  (
75  const polyMesh&,
76  const dictionary&,
77  const word& type
78  );
79 
80  //- Disallow default bitwise copy construction
82 
83 
84  //- Destructor
85  virtual ~displacementMotionSolver();
86 
87 
88  // Member Functions
89 
90  //- Return reference to the point motion displacement field
92  {
93  return pointDisplacement_;
94  }
95 
96  //- Return const reference to the point motion displacement field
97  const pointVectorField& pointDisplacement() const
98  {
99  return pointDisplacement_;
100  }
101 
102 
103  // Member Operators
104 
105  //- Disallow default bitwise assignment
106  void operator=(const displacementMotionSolver&) = delete;
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #endif
117 
118 // ************************************************************************* //
Virtual base class for displacement motion solver.
TypeName("displacementMotionSolver")
Runtime type information.
pointVectorField pointDisplacement_
Point motion field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
pointVectorField & pointDisplacement()
Return reference to the point motion displacement field.
displacementMotionSolver(const polyMesh &, const dictionary &, const word &type)
Construct from mesh and dictionary.
A class for handling words, derived from string.
Definition: word.H:59
void operator=(const displacementMotionSolver &)=delete
Disallow default bitwise assignment.
virtual ~displacementMotionSolver()
Destructor.
Virtual base class for displacement motion solvers.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Namespace for OpenFOAM.