1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2005 OpenCFD Ltd.
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 excentreRotationFvMesh
29 Automatic motion of the mesh for the shaking motion. Also allows
30 the use of acceleration phase.
31 Specify rpm, time0, time1, rotAxis, eccentricty
34 excentreRotationFvMesh.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef excentreRotationFvMesh_H
39 #define excentreRotationFvMesh_H
41 #include "dynamicFvMesh.H"
42 #include "dimensionedTypes.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class excentreRotationFvMesh Declaration
52 \*---------------------------------------------------------------------------*/
54 class excentreRotationFvMesh
60 //- Moving mesh dictionary
61 dictionary dynamicMeshCoeffs_;
64 //- Rotational speed in rotations per minute
67 //- Ecentricity in metres
71 //- Rotation Axis of the body
77 //- Acceleration interval
81 // Private Member Functions
83 //- Disallow default bitwise copy construct
84 excentreRotationFvMesh(const excentreRotationFvMesh&);
86 //- Disallow default bitwise assignment
87 void operator=(const excentreRotationFvMesh&);
92 //- Runtime type information
93 TypeName("excentreRotationFvMesh");
98 //- Construct from IOobject
99 excentreRotationFvMesh(const IOobject& io);
104 ~excentreRotationFvMesh();
109 //- Update the mesh for both mesh motion and topology change
110 virtual bool update();
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 } // End namespace Foam
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 // ************************************************************************* //