Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / fvMotionSolver / fvMotionSolvers / displacement / displacementFvMotionSolver / displacementFvMotionSolver.H
blob1f0d7a16011e28bb7023c258a5a4603892268717
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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.
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.
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/>.
24 Class
25     Foam::displacementFvMotionSolver.H
27 Description
28     Base class for fvMotionSolvers which calculate displacement.
30 SourceFiles
31     displacementFvMotionSolver.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef displacementFvMotionSolver_H
36 #define displacementFvMotionSolver_H
38 #include "fvMotionSolver.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46         Class displacementFvMotionSolver Declaration
47 \*---------------------------------------------------------------------------*/
49 class displacementFvMotionSolver
51     public fvMotionSolver
53     // Private data
55         //- Reference point field
56         pointField points0_;
59     // Private Member Functions
61         //- Disallow default bitwise copy construct
62         displacementFvMotionSolver
63         (
64             const displacementFvMotionSolver&
65         );
67         //- Disallow default bitwise assignment
68         void operator=(const displacementFvMotionSolver&);
71 public:
73     //- Runtime type information
74     TypeName("displacementInterpolation");
77     // Constructors
79         //- Construct from polyMesh and data stream
80         displacementFvMotionSolver
81         (
82             const polyMesh&,
83             Istream& msDataUnused
84         );
87     //- Destructor
88     ~displacementFvMotionSolver();
91     // Member Functions
93         //- Return reference to the reference field
94         const pointField& points0() const
95         {
96             return points0_;
97         }
99         //- Update topology
100         virtual void updateMesh(const mapPolyMesh&);
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 } // End namespace Foam
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 #endif
112 // ************************************************************************* //