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 | Copyright (C) 2015 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::velocityDisplacementMotionSolver
26 
27 Description
28  Mesh motion solver for a polyMesh. Wraps a displacement motion solver in a
29  velocity motion solver.
30 
31 SourceFiles
32  velocityDisplacementMotionSolver.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef velocityDisplacementMotionSolver_H
37 #define velocityDisplacementMotionSolver_H
38 
39 #include "velocityMotionSolver.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // Forward class declarations
47 class displacementMotionSolver;
48 
49 /*---------------------------------------------------------------------------*\
50  Class velocityDisplacementMotionSolver Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
56 {
57  // Private data
58 
59  //- Displacement motion solver
61 
62 
63  // Private Member Functions
64 
65  //- Disallow default bitwise copy construct
67  (
69  );
70 
71  //- Disallow default bitwise assignment
73 
74  //- Get the boundary condition types for the point displacement
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("velocityDisplacement");
82 
83 
84  // Constructors
85 
86  //- Construct from polyMesh and IOdictionary
88  (
89  const polyMesh&,
90  const IOdictionary&
91  );
92 
93 
94  //- Destructor
96 
97 
98  // Member Functions
99 
100  //- Return point location obtained from the current motion field
101  virtual tmp<pointField> curPoints() const;
102 
103  //- Solve for motion
104  virtual void solve();
105 
106  //- Update geometry
107  virtual void movePoints(const pointField&);
108 
109  //- Update topology
110  virtual void updateMesh(const mapPolyMesh&);
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
Foam::velocityDisplacementMotionSolver::displacementMotionSolverPtr_
autoPtr< displacementMotionSolver > displacementMotionSolverPtr_
Displacement motion solver.
Definition: velocityDisplacementMotionSolver.H:59
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:53
Foam::velocityDisplacementMotionSolver::movePoints
virtual void movePoints(const pointField &)
Update geometry.
Definition: velocityDisplacementMotionSolver.C:180
Foam::velocityDisplacementMotionSolver::operator=
void operator=(const velocityDisplacementMotionSolver &)
Disallow default bitwise assignment.
Foam::velocityDisplacementMotionSolver::pointDisplacementBoundaryTypes
wordList pointDisplacementBoundaryTypes() const
Get the boundary condition types for the point displacement.
Definition: velocityDisplacementMotionSolver.C:49
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::velocityDisplacementMotionSolver::TypeName
TypeName("velocityDisplacement")
Runtime type information.
Foam::velocityDisplacementMotionSolver::velocityDisplacementMotionSolver
velocityDisplacementMotionSolver(const velocityDisplacementMotionSolver &)
Disallow default bitwise copy construct.
Foam::velocityMotionSolver
Virtual base class for velocity motion solver.
Definition: velocityMotionSolver.H:54
Foam::velocityDisplacementMotionSolver::~velocityDisplacementMotionSolver
~velocityDisplacementMotionSolver()
Destructor.
Definition: velocityDisplacementMotionSolver.C:126
velocityMotionSolver.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Foam::velocityDisplacementMotionSolver::curPoints
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
Definition: velocityDisplacementMotionSolver.C:133
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::velocityDisplacementMotionSolver
Mesh motion solver for a polyMesh. Wraps a displacement motion solver in a velocity motion solver.
Definition: velocityDisplacementMotionSolver.H:52
Foam::velocityDisplacementMotionSolver::solve
virtual void solve()
Solve for motion.
Definition: velocityDisplacementMotionSolver.C:139
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::velocityDisplacementMotionSolver::updateMesh
virtual void updateMesh(const mapPolyMesh &)
Update topology.
Definition: velocityDisplacementMotionSolver.C:189
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:158