1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 RBFMotionFunctionObject
29 FunctionObject specifying motion of control points using RBF
32 Frank Bos, TU Delft. All rights reserved.
35 RBFMotionFunctionObject.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef RBFMotionFunctionObject_H
40 #define RBFMotionFunctionObject_H
42 #include "functionObject.H"
43 #include "dictionary.H"
44 #include "pointField.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class RBFMotionFunctionObject Declaration
53 \*---------------------------------------------------------------------------*/
55 class RBFMotionFunctionObject
61 //- Reference to main object registry
67 scalar rotationAmplitude_;
68 scalar rotationFrequency_;
69 vector translationAmplitude_;
70 vector translationFrequency_;
71 vector initialRotationOrigin_;
74 pointField statPoints_;
77 // Private Member Functions
79 //- Disallow default bitwise copy construct
80 RBFMotionFunctionObject(const RBFMotionFunctionObject&);
82 //- Disallow default bitwise assignment
83 void operator=(const RBFMotionFunctionObject&);
88 //- Runtime type information
89 TypeName("RBFMotion");
94 //- Construct from components
95 RBFMotionFunctionObject
105 //- start is called at the start of the time-loop
106 virtual bool start();
108 //- execute is called at each ++ or += of the time-loop
109 virtual bool execute();
111 //- Read and set the function object if its data has changed
112 virtual bool read(const dictionary& dict);
114 //- Update for changes of mesh
115 virtual void movePoints(const pointField&)
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 } // End namespace Foam
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 // ************************************************************************* //