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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::velocityDisplacementMotionSolver
28
29Description
30 Mesh motion solver for a polyMesh. Wraps a displacement motion solver in a
31 velocity motion solver.
32
33SourceFiles
34 velocityDisplacementMotionSolver.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef velocityDisplacementMotionSolver_H
39#define velocityDisplacementMotionSolver_H
40
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48// Forward class declarations
49class displacementMotionSolver;
50
51/*---------------------------------------------------------------------------*\
52 Class velocityDisplacementMotionSolver Declaration
53\*---------------------------------------------------------------------------*/
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
80public:
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// ************************************************************************* //
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:57
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:162
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
A class for managing temporary objects.
Definition: tmp.H:65
Mesh motion solver for a polyMesh. Wraps a displacement motion solver in a velocity motion solver.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
virtual void movePoints(const pointField &)
Update geometry.
virtual void updateMesh(const mapPolyMesh &)
Update topology.
TypeName("velocityDisplacement")
Runtime type information.
Virtual base class for velocity motion solver.
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73