velocityDisplacementMotionSolver.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) 2015 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::velocityDisplacementMotionSolver
28 
29 Description
30  Mesh motion solver for a polyMesh. Wraps a displacement motion solver in a
31  velocity motion solver.
32 
33 SourceFiles
34  velocityDisplacementMotionSolver.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef velocityDisplacementMotionSolver_H
39 #define velocityDisplacementMotionSolver_H
40 
41 #include "velocityMotionSolver.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 // Forward class declarations
49 class displacementMotionSolver;
50 
51 /*---------------------------------------------------------------------------*\
52  Class velocityDisplacementMotionSolver Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
58 {
59  // Private data
60 
61  //- Displacement motion solver
62  autoPtr<displacementMotionSolver> displacementMotionSolverPtr_;
63 
64 
65  // Private Member Functions
66 
67  //- No copy construct
69  (
71  ) = delete;
72 
73  //- No copy assignment
74  void operator=(const velocityDisplacementMotionSolver&) = delete;
75 
76  //- Get the boundary condition types for the point displacement
77  wordList pointDisplacementBoundaryTypes() const;
78 
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("velocityDisplacement");
84 
85 
86  // Constructors
87 
88  //- Construct from polyMesh and IOdictionary
90  (
91  const polyMesh&,
92  const IOdictionary&
93  );
94 
95 
96  //- Destructor
98 
99 
100  // Member Functions
101 
102  //- Return point location obtained from the current motion field
103  virtual tmp<pointField> curPoints() const;
104 
105  //- Solve for motion
106  virtual void solve();
107 
108  //- Update geometry
109  virtual void movePoints(const pointField&);
110 
111  //- Update topology
112  virtual void updateMesh(const mapPolyMesh&);
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:54
Foam::velocityDisplacementMotionSolver::movePoints
virtual void movePoints(const pointField &)
Update geometry.
Definition: velocityDisplacementMotionSolver.C:182
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::velocityDisplacementMotionSolver::TypeName
TypeName("velocityDisplacement")
Runtime type information.
Foam::velocityMotionSolver
Virtual base class for velocity motion solver.
Definition: velocityMotionSolver.H:58
Foam::velocityDisplacementMotionSolver::~velocityDisplacementMotionSolver
~velocityDisplacementMotionSolver()
Destructor.
Definition: velocityDisplacementMotionSolver.C:126
velocityMotionSolver.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::velocityDisplacementMotionSolver::curPoints
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
Definition: velocityDisplacementMotionSolver.C:133
Foam::Field< vector >
Foam::velocityDisplacementMotionSolver
Mesh motion solver for a polyMesh. Wraps a displacement motion solver in a velocity motion solver.
Definition: velocityDisplacementMotionSolver.H:54
Foam::velocityDisplacementMotionSolver::solve
virtual void solve()
Solve for motion.
Definition: velocityDisplacementMotionSolver.C:139
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::velocityDisplacementMotionSolver::updateMesh
virtual void updateMesh(const mapPolyMesh &)
Update topology.
Definition: velocityDisplacementMotionSolver.C:191
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::List< word >
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:161