fvMotionSolver.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) 2012-2016 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::fvMotionSolver
28
29Description
30 Base class for fvMesh based motionSolvers.
31
32SourceFiles
33 fvMotionSolver.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef fvMotionSolver_H
38#define fvMotionSolver_H
39
40#include "fvMesh.H"
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46
47/*---------------------------------------------------------------------------*\
48 Class velocityMotionSolver Declaration
49\*---------------------------------------------------------------------------*/
52{
53
54protected:
55
56 // Protected data
57
58 //- The fvMesh to be moved
59 const fvMesh& fvMesh_;
60
61
62 // Protected Member Functions
63
64 //- Create the corresponding patch types for cellMotion from those
65 // of the given pointMotion
66 template<class Type>
68 (
70 Boundary& pmUbf
71 ) const;
72
73public:
74
75 //- Runtime type information
76 ClassName("displacementMotionSolver");
77
78 // Constructors
79
80 //- Construct from polyMesh
82
83
84 // Member Functions
85
86 //- Return reference to the fvMesh to be moved
87 const fvMesh& mesh() const
88 {
89 return fvMesh_;
90 }
91};
92
93
94// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95
96} // End namespace Foam
97
98// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99
100#ifdef NoRepository
102#endif
103
104// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105
106#endif
107
108// ************************************************************************* //
Generic GeometricField class.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Base class for fvMesh based motionSolvers.
const fvMesh & fvMesh_
The fvMesh to be moved.
wordList cellMotionBoundaryTypes(const typename GeometricField< Type, pointPatchField, pointMesh >::Boundary &pmUbf) const
Create the corresponding patch types for cellMotion from those.
ClassName("displacementMotionSolver")
Runtime type information.
const fvMesh & mesh() const
Return reference to the fvMesh to be moved.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
Definition: className.H:67
Namespace for OpenFOAM.