1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::solidBodyMotionFunctions
28 Namespace for solid-body motions
31 Foam::solidBodyMotionFunction
34 Base class for defining solid-body motions
37 solidBodyMotionFunction.C
40 \*---------------------------------------------------------------------------*/
42 #ifndef solidBodyMotionFunction_H
43 #define solidBodyMotionFunction_H
45 #include "objectRegistry.H"
47 #include "dictionary.H"
48 #include "septernion.H"
50 #include "runTimeSelectionTables.H"
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 /*---------------------------------------------------------------------------*\
58 Class solidBodyMotionFunction Declaration
59 \*---------------------------------------------------------------------------*/
61 class solidBodyMotionFunction
67 //- Solid bodi motion coefficients dictionary
68 dictionary SBMFCoeffs_;
76 // Private Member Functions
78 //- Disallow default bitwise copy construct
79 solidBodyMotionFunction(const solidBodyMotionFunction&);
81 //- Disallow default bitwise assignment
82 void operator=(const solidBodyMotionFunction&);
87 //- Runtime type information
88 TypeName("solidBodyMotionFunction");
91 // Declare run-time constructor selection table
93 declareRunTimeSelectionTable
96 solidBodyMotionFunction,
98 (const dictionary& SBMFCoeffs, const Time& runTime),
105 //- Construct from the SBMFCoeffs dictionary and Time
106 solidBodyMotionFunction
108 const dictionary& SBMFCoeffs,
115 //- Select constructed from the SBMFCoeffs dictionary and Time
116 static autoPtr<solidBodyMotionFunction> New
118 const dictionary& SBMFCoeffs,
125 virtual ~solidBodyMotionFunction();
130 //- Return the solid-body motion transformation septernion
131 // Transformation returns new point position with reference to
132 // original (default) position
133 virtual septernion transformation() const = 0;
135 //- Return the solid-body motion velocity septernion
136 // Velocity returns point motion velocity
137 virtual septernion velocity() const = 0;
139 //- Update properties from given dictionary
140 virtual bool read(const dictionary& SBMFCoeffs) = 0;
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 } // End namespace Foam
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 // ************************************************************************* //