Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / dynamicFvMesh / solidBodyMotionFvMesh / solidBodyMotionFunctions / oscillatingLinearMotion / oscillatingLinearMotion.H
bloba58af6ec481fd86d166299fe3df4095d59f34f2d
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::solidBodyMotionFunctions::oscillatingLinearMotion
27 Description
28     SolidBodyMotionFvMesh 6DoF motion function. Oscillating displacement.
30 SourceFiles
31     oscillatingLinearMotion.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef oscillatingLinearMotion_H
36 #define oscillatingLinearMotion_H
38 #include "solidBodyMotionFunction.H"
39 #include "primitiveFields.H"
40 #include "point.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
46 namespace solidBodyMotionFunctions
49 /*---------------------------------------------------------------------------*\
50                           Class oscillatingLinearMotion Declaration
51 \*---------------------------------------------------------------------------*/
53 class oscillatingLinearMotion
55     public solidBodyMotionFunction
57     // Private data
59         //- Amplitude
60         vector amplitude_;
62         //- Radial velocity
63         scalar omega_;
66     // Private Member Functions
68         //- Disallow copy construct
69         oscillatingLinearMotion(const oscillatingLinearMotion&);
71         //- Disallow default bitwise assignment
72         void operator=(const oscillatingLinearMotion&);
75 public:
77     //- Runtime type information
78     TypeName("oscillatingLinearMotion");
81     // Constructors
83         //- Construct from components
84         oscillatingLinearMotion
85         (
86             const dictionary& SBMFCoeffs,
87             const Time& runTime
88         );
91     //- Destructor
92     virtual ~oscillatingLinearMotion();
95     // Member Functions
97         //- Return the solid-body motion transformation septernion
98         virtual septernion transformation() const;
100         //- Update properties from given dictionary
101         virtual bool read(const dictionary& SBMFCoeffs);
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 } // End namespace solidBodyMotionFunctions
108 } // End namespace Foam
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 #endif
114 // ************************************************************************* //